Problem cyberland_apio23
User Shadow1
Submission Time 2025-05-03 14:50:10
Score 0
Max Time N/A
Max Memory N/A

Compile Error

cyberland_apio23.cpp: In function ‘double solve(int, int, int, int, std::vector<int>, std::vector<int>, std::vector<int>, std::vector<int>)’:
cyberland_apio23.cpp:39:19: error: no matching function for call to ‘min(ll&, int)’
39 | k = min(k, 100);
| ^
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:39:19: note: deduced conflicting types for parameter ‘const _Tp’ (‘long long int’ and ‘int’)
39 | k = min(k, 100);
| ^
In file included from /u