Problem prefixsums
User YEethui
Submission Time 2023-10-15 11:41:26
Score 0
Max Time N/A
Max Memory N/A

Compile Error

prefixsums.cpp: In function ‘int main()’:
prefixsums.cpp:12:5: error: expected initializer before ‘for’
12 | for(int i = 0; i < q; i++){
| ^~~
prefixsums.cpp:12:20: error: ‘i’ was not declared in this scope
12 | for(int i = 0; i < q; i++){
| ^
prefixsums.cpp:24:28: error: ‘queriesEnd’ was not declared in this scope
24 | cout << prefixSums[queriesEnd[i] + 1] - prefixSums[queriesStart[i]] << endl;
| ^~~~~~~~~~