Problem | beareatrabbit |
---|---|
User | loyaltypollution |
Submission Time | 2025-09-26 18:18:14 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
beareatrabbit.cpp: In function ‘int main()’:
beareatrabbit.cpp:12:14: error: no matching function for call to ‘max(int, long long int&)’
12 | l = max(0, K);
| ^
In file included from /usr/include/c++/9/algorithm:61,
from beareatrabbit.cpp:2:
/usr/include/c++/9/bits/stl_algobase.h:222:5: note: candidate: ‘template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)’
222 | max(const _Tp& __a, const _Tp& __b)
| ^~~
/usr/include/c++/9/bits/stl_algobase.h:222:5: note: template argument deduction/substitution failed:
beareatrabbit.cpp:12:14: note: deduced conflicting types for parameter ‘const _Tp’ (‘int’ and ‘long long int’)
12 | l = max(0, K);
| ^
In file included from /usr/include/c++/9/algorithm:61,
from beareatrabbit.cpp:2:
/usr/include/c++/9/bits/stl_algobase.h:268:5: note: candidate: ‘template<class _Tp, class _Compare&g