Problem fuel
User YH
Submission Time 2024-02-05 15:02:04
Score 0
Max Time N/A
Max Memory N/A

Compile Error

fuel.cpp: In function ‘int determine_stops(int, int*, int)’:
fuel.cpp:9:24: error: ‘n’ was not declared in this scope
9 | for (int it = 0; it < n; it++) {
| ^
fuel.cpp:25:27: error: ‘dist’ was not declared in this scope; did you mean ‘dists’?
25 | else if (it == n-1 && l-dist[it] > m) {
| ^~~~
| dists