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

Compile Error

stepgame.cpp:1:1: error: ‘include’ does not name a type
1 | include <bits/stdc.Z++h>
| ^~~~~~~
stepgame.cpp: In function ‘int main()’:
stepgame.cpp:4:2: error: ‘ios’ has not been declared
4 | ios::sync_with_stdio(0);
| ^~~
stepgame.cpp:5:2: error: ‘cin’ was not declared in this scope
5 | cin.tie(0);
| ^~~
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: in