Problem | prefixsums |
---|---|
User | Fuhrer101 |
Submission Time | 2023-11-15 14:32:21 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
prefixsums.cpp:2:1: error: ‘cin’ does not name a type
2 | cin >> n >> q;
| ^~~
prefixsums.cpp:3:20: error: array bound is not an integer constant before ‘]’ token
3 | long long arr[n + 1], pre[n + 1];
| ^
prefixsums.cpp:3:32: error: array bound is not an integer constant before ‘]’ token
3 | long long arr[n + 1], pre[n + 1];
| ^
prefixsums.cpp:4:1: error: ‘pre’ does not name a type
4 | pre[0] = 0;
| ^~~
prefixsums.cpp:5:1: error: expected unqualified-id before ‘for’
5 | for (int i = 1; i <= n; i++) {
| ^~~
prefixsums.cpp:5:17: error: ‘i’ does not name a type
5 | for (int i = 1; i <= n; i++) {
| ^
prefixsums.cpp:5:25: error: ‘i’ does not name a type
5 | for (int i = 1; i <= n; i++) {
| ^
prefixsums.cpp:9:1: error: expected unqualified-id before ‘w