lokahia.cpp: In function 'int FindBase(int)':
lokahia.cpp:55:26: error: no matching function for call to 'std::multiset<std::pair<int, int> >::erase(std::multiset<std::pair<int, int> >::reverse_iterator)'
st3.erase(st3.rbegin());
^
In file included from /usr/include/c++/7/set:62:0,
from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:87,
from lokahia.cpp:1:
/usr/include/c++/7/bits/stl_multiset.h:629:7: note: candidate: std::multiset<_Key, _Compare, _Alloc>::iterator std::multiset<_Key, _Compare, _Alloc>::erase(std::multiset<_Key, _Compare, _Alloc>::const_iterator) [with _Key = std::pair<int, int>; _Compare = std::less<std::pair<int, int> >; _Alloc = std::allocator<std::pair<int, int> >; std::multiset<_Key, _Compare, _Alloc>::iterator = std::_Rb_tree_const_iterator<std::pair<int, int> >; std::multiset<_Key, _Compare, _Alloc>::const_iterator = std::_Rb_tree_const_iterator<std::pair<int, int> >]
erase(const_iterator __position)
^~~~~
/usr/include/c++/7/bits/stl_multiset.h:629:7: note: no known conversion for argument 1 from 'std::multiset<std::pair<int, int> >::reverse_iterator {aka std::reverse_iterator<std::_Rb_tree_const_iterator<std::pair<int, int> > >}' to 'std::multiset<std::pair<int, int> >::const_iterator {aka std::_Rb_tree_const_iterator<std::pair<int, int> >}'
/usr/include/c++/7/bits/stl_multiset.h:659:7: note: candidate: std::multiset<_Key, _Compare, _Alloc>::size_type std::multiset<_Key, _Compare, _Alloc>::erase(const key_type&) [with _Key = std::pair<int, int>; _Compare = std::less<std::pair<int, int> >; _Alloc = std::allocator<std::pair<int, int> >; std::multiset<_Key, _Compare, _Alloc>::size_type = long unsigned int; std::multiset<_Key, _Compare, _Alloc>::key_type = std::pair<int, int>]
erase(const key_type& __x)
^~~~~
/usr/include/c++/7/bits/stl_multiset.h:659:7: note: no known conversion for argument 1 from 'std::multiset<std::pair<int, int> >::reverse_iterator {aka std::reverse_iterator<std::_Rb_tree_const_iterator<std::pair<int, int> > >}' to 'const key_type& {aka const std::pair<int, int>&}'
/usr/include/c++/7/bits/stl_multiset.h:681:7: note: candidate: std::multiset<_Key, _Compare, _Alloc>::iterator std::multiset<_Key, _Compare, _Alloc>::erase(std::multiset<_Key, _Compare, _Alloc>::const_iterator, std::multiset<_Key, _Compare, _Alloc>::const_iterator) [with _Key = std::pair<int, int>; _Compare = std::less<std::pair<int, int> >; _Alloc = std::allocator<std::pair<int, int> >; std::multiset<_Key, _Compare, _Alloc>::iterator = std::_Rb_tree_const_iterator<std::pair<int, int> >; std::multiset<_Key, _Compare, _Alloc>::const_iterator = std::_Rb_tree_const_iterator<std::pair<int, int> >]
erase(const_iterator __first, const_iterator __last)
^~~~~
/usr/include/c++/7/bits/stl_multiset.h:681:7: note: candidate expects 2 arguments, 1 provided