Problem nostatement
User dzuizz
Submission Time 2023-01-28 17:58:20
Score 0
Max Time N/A
Max Memory N/A

Compile Error

nostatement.cpp: In function ‘int main()’:
nostatement.cpp:40:55: error: no match for ‘operator-’ (operand types are ‘__gnu_cxx::__normal_iterator<long long int*, std::vector<long long int> >’ and ‘std::vector<long long int>’)
40 | ll r = lower_bound(primes.begin(), primes.end(), n) - primes;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~
| | |
| | std::vector<long long int>
| __gnu_cxx::__normal_iterator<long long int*, std::vector<long long int> >
In file included from /usr/include/c++/9/bits/stl_algobase.h:67,
from /usr/include/c++/9/algorithm:61,
from nostatement.cpp:1:
/usr/include/c++/9/bits/stl_iterator.h:864:7: note: candidate: ‘__gnu_cxx::__normal_iterator<_Iterator, _Container> __gnu_cxx::__normal_it