Problem prefixsums
User jonellaaa
Submission Time 2023-11-09 15:44:53
Score 0
Max Time N/A
Max Memory N/A

Compile Error

prefixsums.cpp: In function ‘int32_t main()’:
prefixsums.cpp:11:5: error: expected initializer before ‘for’
11 | for (int i=1; i<=n; i++){
| ^~~
prefixsums.cpp:11:19: error: ‘i’ was not declared in this scope
11 | for (int i=1; i<=n; i++){
| ^
prefixsums.cpp:17:32: error: ‘arr’ was not declared in this scope
17 | ss[i] = ss [i-1] + arr[i];
| ^~~