Problem | carpark |
---|---|
User | oiu890 |
Submission Time | 2024-03-24 17:22:54 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
carpark.cpp: In function ‘int main()’:
carpark.cpp:16:18: error: cannot convert ‘__gnu_cxx::__normal_iterator<int*, std::vector<int> >’ to ‘int’ in initialization
16 | int start = find(cars.begin(),cars.end(),1);
| ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| __gnu_cxx::__normal_iterator<int*, std::vector<int> >
carpark.cpp:17:16: error: cannot convert ‘__gnu_cxx::__normal_iterator<int*, std::vector<int> >’ to ‘int’ in initialization
17 | int end = find(cars.end(),cars.begin(),1);
| ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| __gnu_cxx::__normal_iterator<int*, std::vector<int> >