Problem stepgame
User Teeskit
Submission Time 2025-08-24 15:06:31
Score 0
Max Time N/A
Max Memory N/A

Compile Error

stepgame.cpp: In function ‘int main()’:
stepgame.cpp:8:6: error: conflicting declaration ‘int presum [0]’
8 | int presum[0] = 0;
| ^~~~~~
stepgame.cpp:7:12: note: previous declaration as ‘long long int presum’
7 | long long presum(N+1);
| ^~~~~~
stepgame.cpp:10:11: error: invalid types ‘long long int[int]’ for array subscript
10 | presum[i] = presum[i-1] + presum[i];
| ^
stepgame.cpp:10:25: error: invalid types ‘long long int[int]’ for array subscript
10 | presum[i] = presum[i-1] + presum[i];
| ^
stepgame.cpp:10:38: error: invalid types ‘long long int[int]’ for array subscript
10 | presum[i] = presum[i-1] + presum[i];
| ^
stepgame.cpp:15:16: error: invalid types ‘long long int[int]’ for array subscript
15 | if (presum[j] - presum[i] < lowest) {
| ^
stepgame.