Problem stepgame
User wongethan8192
Submission Time 2023-02-24 16:33:51
Score 0
Max Time N/A
Max Memory N/A

Compile Error

stepgame.cpp: In function ‘int main()’:
stepgame.cpp:7:15: error: ‘n’ was not declared in this scope
7 | for(int o=0;o<n;o++){sum=min(array[i], sum +V[i]);
| ^
stepgame.cpp:7:22: error: ‘sum’ was not declared in this scope
7 | for(int o=0;o<n;o++){sum=min(array[i], sum +V[i]);
| ^~~
stepgame.cpp:7:35: error: missing template arguments before ‘[’ token
7 | for(int o=0;o<n;o++){sum=min(array[i], sum +V[i]);
| ^
stepgame.cpp:7:36: error: ‘i’ was not declared in this scope
7 | for(int o=0;o<n;o++){sum=min(array[i], sum +V[i]);
| ^