Problem skips
User redline
Submission Time 2025-06-16 20:35:49
Score 0
Max Time N/A
Max Memory N/A

Compile Error

skips.cpp:5:1: error: ‘cin’ does not name a type
5 | cin >> n;
| ^~~
skips.cpp:6:10: error: array bound is not an integer constant before ‘]’ token
6 | int arr[n];
| ^
skips.cpp:7:1: error: expected unqualified-id before ‘for’
7 | for(int i = 0; i < n; ++i) cin >> arr[i];
| ^~~
skips.cpp:7:16: error: ‘i’ does not name a type
7 | for(int i = 0; i < n; ++i) cin >> arr[i];
| ^
skips.cpp:7:23: error: expected unqualified-id before ‘++’ token
7 | for(int i = 0; i < n; ++i) cin >> arr[i];
| ^~
skips.cpp: In function ‘int path(int, int, int)’:
skips.cpp:10:13: error: ‘m’ was not declared in this scope
10 | int fuel = m[start];
| ^