Problem runaway
User CKCodeBreaker55
Submission Time 2024-12-16 13:35:56
Score 0
Max Time N/A
Max Memory N/A

Compile Error

runaway.cpp: In function ‘int main()’:
runaway.cpp:32:25: error: cannot convert ‘__gnu_cxx::__normal_iterator<int*, std::vector<int> >’ to ‘int*’ in initialization
32 | int* it = lower_bound(clones.begin(), clones.end(), I);
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| __gnu_cxx::__normal_iterator<int*, std::vector<int> >
runaway.cpp:33:19: error: no match for ‘operator!=’ (operand types are ‘int*’ and ‘std::vector<int>::iterator’ {aka ‘__gnu_cxx::__normal_iterator<int*, std::vector<int> >’})
33 | int left = (it != clones.begin()) ? *(it - 1) : LLONG_MAX;
| ~~ ^~ ~~~~~~~~~~~~~~
| | |
| int* std::vector<int>::iterator {aka __gnu_cxx::__normal_iterator<int*, std::vector<int> >}
In file included from /usr/incl