Problem prefixsums
User yoshiokalili
Submission Time 2026-02-09 10:18:43
Score 0
Max Time N/A
Max Memory N/A

Compile Error

prefixsums.cpp: In function ‘int main()’:
prefixsums.cpp:16:21: error: ‘i’ was not declared in this scope
16 | for (int j=0; j<2; i++) {
| ^
prefixsums.cpp:19:54: error: expected ‘;’ before ‘}’ token
19 | cout << accumulate(arr + l, arr + r + 1, 0) << "\n"
| ^
| ;
20 | }
| ~