Problem seagame
User PlayVoltz
Submission Time 2023-12-15 22:58:41
Score 0
Max Time N/A
Max Memory N/A

Compile Error

seagame.cpp: In function ‘void bal()’:
seagame.cpp:13:27: error: no matching function for call to ‘std::multiset<int>::erase(std::multiset<int>::reverse_iterator)’
13 | down.erase(down.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 seagame.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 = int; _Compare = std::less<int>; _Alloc = std::allocator<int>; std::multiset<_Key, _Compare, _Alloc>::iterator = std::_Rb_tree_const_iterator<int>; std::multiset<_Key, _Compare, _Alloc>::const_iterator = std::_Rb_tree_const_iterator<int>]’
639 | erase(const_iterator __position)<