Problem fuel
User JhoCyber
Submission Time 2025-01-03 21:14:57
Score 0
Max Time N/A
Max Memory N/A

Compile Error

fuel.cpp: In function ‘int32_t main()’:
fuel.cpp:8:14: error: expected initializer before ‘n’
8 | int main n,l,t;
| ^
fuel.cpp:9:12: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
9 | cin >> n >> l >> t;
| ^
| yn
fuel.cpp:9:17: error: ‘l’ was not declared in this scope
9 | cin >> n >> l >> t;
| ^
fuel.cpp:9:22: error: ‘t’ was not declared in this scope; did you mean ‘tm’?
9 | cin >> n >> l >> t;
| ^
| tm
fuel.cpp:24:16: error: expected ‘;’ before ‘}’ token
24 | i++
| ^
| ;
25 | }
| ~
fuel.cpp:26:41: error: lvalue required as left operand of assignment
26 | if(i==0||previous_distance=f[i-1]){