Problem cyberland_apio23
User PlayVoltz
Submission Time 2023-11-23 13:52:57
Score 0
Max Time N/A
Max Memory N/A

Compile Error

cyberland_apio23.cpp: In function ‘double solve(int32_t, int32_t, int32_t, int32_t, std::vector<int>, std::vector<int>, std::vector<int>, std::vector<int>)’:
cyberland_apio23.cpp:60:58: error: no matching function for call to ‘min(double&, long long int)’
60 | for (int i=0; i<=k; ++i)minnum=min(minnum, (int)dj[h][i]);
| ^
In file included from /usr/include/c++/9/vector:60,
from cyberland_apio23.h:1,
from cyberland_apio23.cpp:1:
/usr/include/c++/9/bits/stl_algobase.h:198:5: note: candidate: ‘template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)’
198 | min(const _Tp& __a, const _Tp& __b)
| ^~~
/usr/include/c++/9/bits/stl_algobase.h:198:5: note: template argument deduction/substitution failed:
cyberland_apio23.cpp:60:58: note: deduced conflicting types for parameter ‘const _Tp’ (‘doubl