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

Compile Error

runaway.cpp: In function ‘int main()’:
runaway.cpp:25:34: error: cannot convert ‘__gnu_cxx::__normal_iterator<int*, std::vector<int> >’ to ‘int*’ in initialization
25 | int* it = lower_bound(clones.begin(), clones.end(), I);
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| __gnu_cxx::__normal_iterator<int*, std::vector<int> >
runaway.cpp:26:28: error: no match for ‘operator!=’ (operand types are ‘int*’ and ‘std::vector<int>::iterator’ {aka ‘__gnu_cxx::__normal_iterator<int*, std::vector<int> >’})
26 | int left = (it != clones.begin()) ? *(it - 1) : INT_MAX;
| ~~ ^~ ~~~~~~~~~~~~~~
| | |
| int* std::vector<int>::iterator {aka __gnu_cxx::__normal_iterator<