dungeons.cpp: In function 'void init(int32_t, std::vector<int>, std::vector<int>, std::vector<int>, std::vector<int>)':
dungeons.cpp:52:84: error: no matching function for call to 'min(long long int&, int32_t&)'
52 | int nxt_mnt = (nxt.mnt == MXS) ? MXS : (nxt.mnt-min(me.sum, nxt.mnt));
| ^
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:52:84: note: deduced conflicting types for parameter 'const _Tp' ('long long int' and 'int32_t' {aka 'int'})
52 | int nxt_mnt = (nxt.mnt == MXS) ? MXS : (nxt.mnt-min(me.sum, nxt.mnt));
| ^
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:52:84: note: deduced conflicting types for parameter 'const _Tp' ('long long int' and 'int32_t' {aka 'int'})
52 | int nxt_mnt = (nxt.mnt == MXS) ? MXS : (nxt.mnt-min(me.sum, nxt.mnt));
| ^
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:2:
/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:52:84: note: mismatched types 'std::initializer_list<_Tp>' and 'long long int'
52 | int nxt_mnt = (nxt.mnt == MXS) ? MXS : (nxt.mnt-min(me.sum, nxt.mnt));
| ^
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:2:
/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:52:84: note: mismatched types 'std::initializer_list<_Tp>' and 'long long int'
52 | int nxt_mnt = (nxt.mnt == MXS) ? MXS : (nxt.mnt-min(me.sum, nxt.mnt));
| ^
dungeons.cpp:53:56: error: no matching function for call to 'min(int32_t&, long long int&)'
53 | binjmps[i][j][k] = {min(me.mnt, nxt_mnt), me.sum+nxt.sum, nxt.v};
| ^
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:53:56: note: deduced conflicting types for parameter 'const _Tp' ('int' and 'long long int')
53 | binjmps[i][j][k] = {min(me.mnt, nxt_mnt), me.sum+nxt.sum, nxt.v};
| ^
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:53:56: note: deduced conflicting types for parameter 'const _Tp' ('int' and 'long long int')
53 | binjmps[i][j][k] = {min(me.mnt, nxt_mnt), me.sum+nxt.sum, nxt.v};
| ^
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:2:
/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:53:56: note: mismatched types 'std::initializer_list<_Tp>' and 'int'
53 | binjmps[i][j][k] = {min(me.mnt, nxt_mnt), me.sum+nxt.sum, nxt.v};
| ^
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:2:
/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:53:56: note: mismatched types 'std::initializer_list<_Tp>' and 'int'
53 | binjmps[i][j][k] = {min(me.mnt, nxt_mnt), me.sum+nxt.sum, nxt.v};
| ^
dungeons.cpp:53:80: error: no match for 'operator=' (operand types are 'Data' and '<brace-enclosed initializer list>')
53 | binjmps[i][j][k] = {min(me.mnt, nxt_mnt), me.sum+nxt.sum, nxt.v};
| ^
dungeons.cpp:12:8: note: candidate: 'constexpr Data& Data::operator=(const Data&)'
12 | struct Data {
| ^~~~
dungeons.cpp:12:8: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const Data&'
dungeons.cpp:12:8: note: candidate: 'constexpr Data& Data::operator=(Data&&)'
dungeons.cpp:12:8: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'Data&&'