Problem stepgame
User BigEd15
Submission Time 2025-04-30 17:43:03
Score 0
Max Time N/A
Max Memory N/A

Compile Error

stepgame.cpp: In function ‘int main()’:
stepgame.cpp:9:9: error: ‘N’ was not declared in this scope
9 | cin >> N;
| ^
stepgame.cpp:13:2: error: ‘pre’ was not declared in this scope
13 | pre[0]=0;
| ^~~
stepgame.cpp:14:2: error: ‘premax’ was not declared in this scope
14 | premax[0]=0;
| ^~~~~~
stepgame.cpp:17:10: error: ‘arr’ was not declared in this scope
17 | cin >> arr[i];
| ^~~
stepgame.cpp:24:3: error: ‘NewValue’ was not declared in this scope
24 | NewValue = pre[i]-premax[i-1];
| ^~~~~~~~