| Problem | arrayfind |
|---|---|
| User | Red123 |
| Submission Time | 2026-10-11 19:23:47 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
arrayfind.cpp: In function ‘int main()’:
arrayfind.cpp:18:17: error: cannot convert ‘__gnu_cxx::__normal_iterator<long long int*, std::vector<long long int> >’ to ‘long long int’ in initialization
18 | int lower = l - 1;
| ~~^~~
| |
| __gnu_cxx::__normal_iterator<long long int*, std::vector<long long int> >
arrayfind.cpp:21:17: error: no match for ‘operator-’ (operand types are ‘long long int’ and ‘__gnu_cxx::__normal_iterator<long long int*, std::vector<long long int> >’)
21 | int upper = n - u;
| ~ ^ ~
| | |
| | __gnu_cxx::__normal_iterator<long long int*, std::vector<long long int> >
| long long int
In file included from /usr/include/c++/9/bits/stl_algobase.h:67,
from /usr/include/c++/9/bits/specfun.h:45,