Problem toxic
User chenweilian
Submission Time 2025-02-06 22:25:14
Score 0
Max Time N/A
Max Memory N/A

Compile Error

toxic.cpp: In function ‘bool checkunknown(vi)’:
toxic.cpp:69:30: error: no matching function for call to ‘min(std::deque<int, std::allocator<int> >::size_type, int)’
69 | int cnt = min(an.size(), 8-l);
| ^
In file included from /usr/include/c++/9/vector:60,
from toxic.h:1,
from toxic.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:
toxic.cpp:69:30: note: deduced conflicting types for parameter ‘const _Tp’ (‘long unsigned int’ and ‘int’)
69 | int cnt = min(an.size(), 8-l);
| ^
In file included from /usr/include/c++/9/vector:60,
from toxi