Problem guessqueue
User AlphanumericUsername
Submission Time 2023-11-14 14:17:53
Score 0
Max Time N/A
Max Memory N/A

Compile Error

guessqueue.cpp: In function ‘int32_t main()’:
guessqueue.cpp:44:35: error: no matching function for call to ‘std::multiset<long long int>::erase(std::multiset<long long int>::reverse_iterator)’
44 | if(state){m.erase(m.rbegin());}
| ^
In file included from /usr/include/c++/9/set:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:87,
from guessqueue.cpp:1:
/usr/include/c++/9/bits/stl_multiset.h:639:7: note: candidate: ‘std::multiset<_Key, _Compare, _Alloc>::iterator std::multiset<_Key, _Compare, _Alloc>::erase(std::multiset<_Key, _Compare, _Alloc>::const_iterator) [with _Key = long long int; _Compare = std::less<long long int>; _Alloc = std::allocator<long long int>; std::multiset<_Key, _Compare, _Alloc>::iterator = std::_Rb_tree_const_iterator<long long int>; std::multiset<_Key, _Compare, _Alloc>::const_iterator = st