Problem | arrayfind |
---|---|
User | meowmeow |
Submission Time | 2023-06-12 20:51:54 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
arrayfind.cpp: In function ‘int main()’:
arrayfind.cpp:19:24: error: cannot convert ‘__gnu_cxx::__normal_iterator<int*, std::vector<int> >’ to ‘int’ in initialization
19 | int low = lower_bound(arr.begin(),arr.end(),x);
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
| |
| __gnu_cxx::__normal_iterator<int*, std::vector<int> >
arrayfind.cpp:20:25: error: cannot convert ‘__gnu_cxx::__normal_iterator<int*, std::vector<int> >’ to ‘int’ in initialization
20 | int high = upper_bound(arr.begin(),arr.end(),x);
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
| |
| __gnu_cxx::__normal_iterator<int*, std::vector<int> >