Problem problemsetter
User FIips
Submission Time 2024-07-21 21:10:55
Score 0
Max Time N/A
Max Memory N/A

Compile Error

problemsetter.cpp: In function ‘int32_t main()’:
problemsetter.cpp:33:9: error: no match for ‘operator!=’ (operand types are ‘long int’ and ‘std::vector<std::pair<long long int, long long int> >::iterator’ {aka ‘__gnu_cxx::__normal_iterator<std::pair<long long int, long long int>*, std::vector<std::pair<long long int, long long int> > >’})
33 | if(it != pq.end()) cout << lower_bound(pq.begin(), pq.end(), query) -pq.begin() << " ";
| ~~ ^~ ~~~~~~~~
| | |
| long int std::vector<std::pair<long long int, long long int> >::iterator {aka __gnu_cxx::__normal_iterator<std::pair<long long int, long long int>*, std::vector<std::pair<long long int, long long 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 problemsetter.cpp:1:
/