Problem stepgame
User boaznumberd5555
Submission Time 2025-02-15 21:14:13
Score 0
Max Time N/A
Max Memory N/A

Compile Error

stepgame.cpp: In function ‘int main()’:
stepgame.cpp:11:1: error: expected initializer before ‘for’
11 | for(int i = 0; i<n; i++) cin>>arr[i];
| ^~~
stepgame.cpp:11:16: error: ‘i’ was not declared in this scope
11 | for(int i = 0; i<n; i++) cin>>arr[i];
| ^
stepgame.cpp:19:15: error: ‘arr’ was not declared in this scope
19 | cur = min(cur+arr[i], 0);
| ^~~