Problem prefixsums
User dev1634
Submission Time 2023-02-16 07:45:18
Score 0
Max Time N/A
Max Memory N/A

Compile Error

prefixsums.cpp: In function ‘int main()’:
prefixsums.cpp:8:1: error: expected initializer before ‘for’
8 | for (int a = 0; a < num; a ++) {
| ^~~
prefixsums.cpp:8:17: error: ‘a’ was not declared in this scope
8 | for (int a = 0; a < num; a ++) {
| ^
prefixsums.cpp:18:10: error: ‘arr’ was not declared in this scope
18 | total += arr[x1];
| ^~~