Problem ljubomora
User lololol
Submission Time 2024-02-16 12:53:52
Score 0
Max Time N/A
Max Memory N/A

Compile Error

ljubomora.cpp: In function ‘int main()’:
ljubomora.cpp:15:24: error: no matching function for call to ‘std::multiset<int>::erase(std::multiset<int>::reverse_iterator)’
15 | ms.erase(ms.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 ljubomora.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)<