Problem inspections
User Xiaoyang
Submission Time 2023-12-26 02:13:44
Score 0
Max Time N/A
Max Memory N/A

Compile Error

inspections.cpp: In function ‘int main()’:
inspections.cpp:102:8: error: no match for ‘operator!=’ (operand types are ‘std::_Rb_tree_iterator<std::pair<const long long int, long long int> >’ and ‘std::set<std::pair<std::pair<long long int, long long int>, long long int> >::iterator’ {aka ‘std::_Rb_tree_const_iterator<std::pair<std::pair<long long int, long long int>, long long int> >’})
102 | if(it!=s.begin())it--;
| ~~^~~~~~~~~~~
| | |
| | std::set<std::pair<std::pair<long long int, long long int>, long long int> >::iterator {aka std::_Rb_tree_const_iterator<std::pair<std::pair<long long int, long long int>, long long int> >}
| std::_Rb_tree_iterator<std::pair<const long long int, long long int> >
In file included from /usr/include/c++/9/regex:62,
from /usr/include/x86_64-linux-gnu/c++