Problem skillmoves
User hwy
Submission Time 2023-06-19 00:29:42
Score 0
Max Time N/A
Max Memory N/A

Compile Error

skillmoves.cpp: In function ‘int main()’:
skillmoves.cpp:17:31: error: no match for ‘operator!=’ (operand types are ‘std::reverse_iterator<std::_Rb_tree_const_iterator<std::pair<int, int> > >’ and ‘std::multiset<std::pair<int, int> >::iterator’ {aka ‘std::_Rb_tree_const_iterator<std::pair<int, int> >’})
17 | for (auto j = M.rbegin(); j != M.begin(); --j) {
| ~ ^~ ~~~~~~~~~
| | |
| | std::multiset<std::pair<int, int> >::iterator {aka std::_Rb_tree_const_iterator<std::pair<int, int> >}
| std::reverse_iterator<std::_Rb_tree_const_iterator<std::pair<int, int> > >
In file included from /usr/include/c++/9/regex:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:110,
from skillmoves.c