Problem skips
User MrPuddleVon
Submission Time 2025-06-16 22:29:53
Score 0
Max Time N/A
Max Memory N/A

Compile Error

skips.cpp: In function ‘int main()’:
skips.cpp:8:8: error: ‘n’ was not declared in this scope
8 | int m[n];
| ^
skips.cpp:13:10: error: ‘m’ was not declared in this scope
13 | cin >> m[i];
| ^
skips.cpp:16:9: error: ‘m’ was not declared in this scope
16 | fuel = m[1];
| ^
skips.cpp:18:8: error: expected ‘(’ before ‘fuel’
18 | while fuel > 0 {
| ^~~~
| (
skips.cpp:18:16: error: expected ‘)’ before ‘{’ token
18 | while fuel > 0 {
| ~~~~ ^~
| )