Problem robotbombs
User G92
Submission Time 2024-12-30 14:10:44
Score 0
Max Time N/A
Max Memory N/A

Compile Error

robotbombs.cpp: In function ‘int main()’:
robotbombs.cpp:77:11: error: overloaded function with no contextual type information
77 | max =-1;
| ^
robotbombs.cpp:83:31: error: no matching function for call to ‘max(std::set<std::pair<long long int, long long int> >::size_type, long long int&)’
83 | max1 = max(b1.size(), max1);
| ^
In file included from /usr/include/c++/9/bits/specfun.h:45,
from /usr/include/c++/9/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:41,
from robotbombs.cpp:1:
/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:
robotb