Problem | coinjourney |
---|---|
User | FIips |
Submission Time | 2024-07-21 21:11:08 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
coinjourney.cpp: In function ‘int32_t main()’:
coinjourney.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 coinjourney.cpp:1:
/usr/in