Problem toxic
User PlayVoltz
Submission Time 2024-12-27 03:13:48
Score 0
Max Time N/A
Max Memory N/A

Compile Error

toxic.cpp: In function ‘void p1(std::vector<int>)’:
toxic.cpp:16:55: error: no matching function for call to ‘min(std::vector<int>::size_type, int)’
16 | for (int i=0, tt=sr.size(); i<min(8-c.size(), (int)tt); ++i){
| ^
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:16:55: note: deduced conflicting types for parameter ‘const _Tp’ (‘long unsigned int’ and ‘int’)
16 | for (int i=0, tt=sr.size(); i<min(8-c.size(), (int)tt); ++i){
|