Problem stepgame
User StormyGood
Submission Time 2024-12-09 15:41:47
Score 0
Max Time N/A
Max Memory N/A

Compile Error

stepgame.cpp: In function ‘int main()’:
stepgame.cpp:18:34: error: invalid types ‘int[int]’ for array subscript
18 | prefix[i] = prefix[i-1] + a[i-1];
| ^
stepgame.cpp:19:34: error: ‘max’ cannot be used as a function
19 | max[i] = max(max[i-1],prefix[i]);
| ^
stepgame.cpp:25:20: error: ‘max’ cannot be used as a function
25 | maxx=max(maxx,ans);
| ^