| Problem | ballot |
|---|---|
| User | TheGhostKing |
| Submission Time | 2023-06-04 10:21:10 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
ballot.cpp: In function ‘int main()’:
ballot.cpp:28:47: error: no matching function for call to ‘std::set<std::pair<long long int, long long int> >::lower_bound(long long int&, bool (&)(std::pair<long long int, long long int>, long long int))’
28 | auto it = s.lower_bound(choose[i],comp);
| ^
In file included from /usr/include/c++/9/set:61,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:87,
from ballot.cpp:1:
/usr/include/c++/9/bits/stl_set.h:829:7: note: candidate: ‘std::set<_Key, _Compare, _Alloc>::iterator std::set<_Key, _Compare, _Alloc>::lower_bound(const key_type&) [with _Key = std::pair<long long int, long long int>; _Compare = std::less<std::pair<long long int, long long int> >; _Alloc = std::allocator<std::pair<long long int, long long int> >; std::set<_Key, _Compare, _Alloc>::iterator =