Problem goofyarray
User PlayVoltz
Submission Time 2024-08-03 16:33:13
Score 0
Max Time N/A
Max Memory N/A

Compile Error

goofyarray.cpp: In function ‘int32_t main()’:
goofyarray.cpp:42:20: error: cannot convert ‘__gnu_cxx::__normal_iterator<long long int*, std::vector<long long int> >’ to ‘long long int’ in initialization
42 | int i=upper_bound(temp.begin(), temp.end(), a);
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| __gnu_cxx::__normal_iterator<long long int*, std::vector<long long int> >