Problem skips
User thatlycheeoolongdrink
Submission Time 2025-06-16 20:29:43
Score 0
Max Time N/A
Max Memory N/A

Compile Error

skips.cpp: In function ‘int main()’:
skips.cpp:8:16: error: invalid types ‘int[int]’ for array subscript
8 | fuel += arr[i];
| ^
skips.cpp:9:13: error: ‘d’ was not declared in this scope
9 | if(fuel - d < 0) {
| ^
skips.cpp:12:11: error: ‘d’ was not declared in this scope
12 | fuel -= d;
| ^
skips.cpp:15:18: error: ‘d’ was not declared in this scope
15 | block += fuel / d * 2;
| ^
skips.cpp:19:16: error: invalid types ‘int[int]’ for array subscript
19 | fuel += arr[i];
| ^