Problem stepgame
User Elyssa278
Submission Time 2023-02-24 16:26:29
Score 0
Max Time N/A
Max Memory N/A

Compile Error

stepgame.cpp: In function ‘int main()’:
stepgame.cpp:6:25: error: ‘n’ was not declared in this scope
6 | for (int i = 0; i < n; i++) {
| ^
stepgame.cpp:7:23: error: missing template arguments before ‘[’ token
7 | sum = max(array[i], sum + array[i]);
| ^
stepgame.cpp:7:39: error: missing template arguments before ‘[’ token
7 | sum = max(array[i], sum + array[i]);
| ^