dungeons.cpp: In function 'void init(int, std::vector<int>, std::vector<int>, std::vector<int>, std::vector<int>)':
dungeons.cpp:55:35: warning: narrowing conversion of 'win_n[x]' from 'long long int' to 'int' [-Wnarrowing]
55 | tkd[i][x][0]=edge({win_n[x],win_s[x],(ll)1e9});
| ~~~~~~~^
dungeons.cpp:58:36: warning: narrowing conversion of 'lose_n[x]' from 'long long int' to 'int' [-Wnarrowing]
58 | tkd[i][x][0]=edge({lose_n[x],lose_s[x],win_s[x]});
| ~~~~~~~~^
dungeons.cpp:58:55: warning: narrowing conversion of 'win_s[x]' from 'long long int' to 'int' [-Wnarrowing]
58 | tkd[i][x][0]=edge({lose_n[x],lose_s[x],win_s[x]});
| ~~~~~~~^
dungeons.cpp:61:36: warning: narrowing conversion of 'lose_n[x]' from 'long long int' to 'int' [-Wnarrowing]
61 | tkd[i][x][0]=edge({lose_n[x],lose_s[x],(ll)1e9});
| ~~~~~~~~^
dungeons.cpp:74:66: error: no matching function for call to 'min(int&, long long int)'
74 | min(tkd[i][x][y].mx,tkd[i][temp][y].mx-tkd[i][x][y].sum)
| ^
In file included from /usr/include/c++/10/vector:60,
from dungeons.h:1,
from dungeons.cpp:1:
/usr/include/c++/10/bits/stl_algobase.h:230:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)'
230 | min(const _Tp& __a, const _Tp& __b)
| ^~~
/usr/include/c++/10/bits/stl_algobase.h:230:5: note: template argument deduction/substitution failed:
dungeons.cpp:74:66: note: deduced conflicting types for parameter 'const _Tp' ('int' and 'long long int')
74 | min(tkd[i][x][y].mx,tkd[i][temp][y].mx-tkd[i][x][y].sum)
| ^
In file included from /usr/include/c++/10/vector:60,
from dungeons.h:1,
from dungeons.cpp:1:
/usr/include/c++/10/bits/stl_algobase.h:278:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
278 | min(const _Tp& __a, const _Tp& __b, _Compare __comp)
| ^~~
/usr/include/c++/10/bits/stl_algobase.h:278:5: note: template argument deduction/substitution failed:
dungeons.cpp:74:66: note: deduced conflicting types for parameter 'const _Tp' ('int' and 'long long int')
74 | min(tkd[i][x][y].mx,tkd[i][temp][y].mx-tkd[i][x][y].sum)
| ^
In file included from /usr/include/c++/10/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from dungeons.cpp:3:
/usr/include/c++/10/bits/stl_algo.h:3468:5: note: candidate: 'template<class _Tp> constexpr _Tp std::min(std::initializer_list<_Tp>)'
3468 | min(initializer_list<_Tp> __l)
| ^~~
/usr/include/c++/10/bits/stl_algo.h:3468:5: note: template argument deduction/substitution failed:
dungeons.cpp:74:66: note: mismatched types 'std::initializer_list<_Tp>' and 'int'
74 | min(tkd[i][x][y].mx,tkd[i][temp][y].mx-tkd[i][x][y].sum)
| ^
In file included from /usr/include/c++/10/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from dungeons.cpp:3:
/usr/include/c++/10/bits/stl_algo.h:3474:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::min(std::initializer_list<_Tp>, _Compare)'
3474 | min(initializer_list<_Tp> __l, _Compare __comp)
| ^~~
/usr/include/c++/10/bits/stl_algo.h:3474:5: note: template argument deduction/substitution failed:
dungeons.cpp:74:66: note: mismatched types 'std::initializer_list<_Tp>' and 'int'
74 | min(tkd[i][x][y].mx,tkd[i][temp][y].mx-tkd[i][x][y].sum)
| ^
dungeons.cpp:75:10: error: no matching function for call to 'edge::edge(<brace-enclosed initializer list>)'
75 | });
| ^
dungeons.cpp:28:8: note: candidate: 'edge::edge()'
28 | struct edge{
| ^~~~
dungeons.cpp:28:8: note: candidate expects 0 arguments, 1 provided
dungeons.cpp:28:8: note: candidate: 'constexpr edge::edge(const edge&)'
dungeons.cpp:28:8: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const edge&'
dungeons.cpp:28:8: note: candidate: 'constexpr edge::edge(edge&&)'
dungeons.cpp:28:8: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'edge&&'