Problem | runaway |
---|---|
User | CKCodeBreaker55 |
Submission Time | 2024-12-16 13:37:17 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
runaway.cpp: In function ‘int main()’:
runaway.cpp:33:25: error: cannot convert ‘__gnu_cxx::__normal_iterator<long long int*, std::vector<long long int> >’ to ‘long long int*’ in initialization
33 | int* it = lower_bound(clones.begin(), clones.end(), I);
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| __gnu_cxx::__normal_iterator<long long int*, std::vector<long long int> >
runaway.cpp:34:19: error: no match for ‘operator!=’ (operand types are ‘long long int*’ and ‘std::vector<long long int>::iterator’ {aka ‘__gnu_cxx::__normal_iterator<long long int*, std::vector<long long int> >’})
34 | int left = (it != clones.begin()) ? *(it - 1) : LLONG_MAX;
| ~~ ^~ ~~~~~~~~~~~~~~
| | |
| long long int* std::vector<long long int>::iterator {aka _