Problem travel
User PlayVoltz
Submission Time 2023-08-24 22:26:20
Score 0
Max Time N/A
Max Memory N/A

Compile Error

travel.cpp: In function ‘int main()’:
travel.cpp:17:24: error: ‘h0’ was not declared in this scope; did you mean ‘y0’?
17 | int maxTime = max(abs(h0 - vect[0]), abs(h0 - vect[n - 1]));
| ^~
| y0
travel.cpp:22:22: error: ‘maxtime’ was not declared in this scope; did you mean ‘maxTime’?
22 | cout<<minisum<<" "<<maxtime;
| ^~~~~~~
| maxTime