Problem prefixsums
User Elaine
Submission Time 2023-01-28 20:21:19
Score 0
Max Time N/A
Max Memory N/A

Compile Error

prefixsums.cpp: In function ‘int main()’:
prefixsums.cpp:23:27: error: expected ‘;’ before ‘}’ token
23 | X[i] = SS[Y] - SS[Z-1]
| ^
| ;
24 | }
| ~
prefixsums.cpp: At global scope:
prefixsums.cpp:26:3: error: expected unqualified-id before ‘for’
26 | for (long long i = 0; i < Q; i++){
| ^~~
prefixsums.cpp:26:25: error: ‘i’ does not name a type
26 | for (long long i = 0; i < Q; i++){
| ^
prefixsums.cpp:26:32: error: ‘i’ does not name a type
26 | for (long long i = 0; i < Q; i++){
| ^
prefixsums.cpp:29:1: error: expected declaration before ‘}’ token
29 | }
| ^