Problem nostatement
User hmm
Submission Time 2023-01-02 21:14:20
Score 0
Max Time N/A
Max Memory N/A

Compile Error

nostatement.cpp: In function ‘int main()’:
nostatement.cpp:25:24: error: cannot convert ‘__gnu_cxx::__normal_iterator<int*, std::vector<int> >’ to ‘int’ in initialization
25 | int pos = upper_bound(primes.begin(), primes.end(), n);
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| __gnu_cxx::__normal_iterator<int*, std::vector<int> >