Problem | skillmoves |
---|---|
User | hwy |
Submission Time | 2023-06-19 00:30:22 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
skillmoves.cpp: In function ‘int main()’:
skillmoves.cpp:20:14: error: no matching function for call to ‘std::multiset<std::pair<int, int> >::erase(std::reverse_iterator<std::_Rb_tree_const_iterator<std::pair<int, int> > >&)’
20 | M.erase(j);
| ^
In file included from /usr/include/c++/9/set:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:87,
from skillmoves.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 = 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::m