Problem prefixsums
User Subz3r0
Submission Time 2024-07-26 16:45:39
Score 0
Max Time N/A
Max Memory N/A

Compile Error

prefixsums.cpp: In function ‘int main()’:
prefixsums.cpp:9:31: error: ‘a’ was not declared in this scope
9 | for (long long i = 0; i < a; i++) {
| ^
prefixsums.cpp:15:34: error: expected ‘;’ before ‘}’ token
15 | cout << presum[r] - presum[l-1]
| ^
| ;
16 | }
| ~
prefixsums.cpp: At global scope:
prefixsums.cpp:19:1: error: expected declaration before ‘}’ token
19 | }
| ^