Problem ballot
User YSH2020
Submission Time 2025-01-17 15:07:59
Score 0
Max Time N/A
Max Memory N/A

Compile Error

In file included from /usr/include/c++/9/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from ballot.cpp:1:
/usr/include/c++/9/bits/stl_algo.h: In instantiation of ‘void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = std::_Rb_tree_const_iterator<std::pair<long long int, long long int> >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool (*)(std::pair<int, int>, std::pair<int, int>)>]’:
/usr/include/c++/9/bits/stl_algo.h:4905:18: required from ‘void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = std::_Rb_tree_const_iterator<std::pair<long long int, long long int> >; _Compare = bool (*)(std::pair<int, int>, std::pair<int, int>)]’
ballot.cpp:17:41: required from here
/usr/include/c++/9/bits/stl_algo.h:1974:22: error: no match for ‘operator-’ (operand types are ‘std::_Rb_tree_const_iterator<std::p