Problem prefixsums
User kashsinghal
Submission Time 2023-11-09 15:39:50
Score 0
Max Time N/A
Max Memory N/A

Compile Error

prefixsums.cpp: In function ‘int32_t main()’:
prefixsums.cpp:11:19: error: expected ‘;’ before ‘<=’ token
11 | for (int i=1,i<=n, i++){
| ^~
| ;
prefixsums.cpp:11:19: error: expected primary-expression before ‘<=’ token
11 | for (int i=1,i<=n, i++){
| ^~
prefixsums.cpp:11:27: error: expected ‘;’ before ‘)’ token
11 | for (int i=1,i<=n, i++){
| ^
| ;
prefixsums.cpp:12:21: error: ‘arr’ cannot be used as a function
12 | cin >> arr(i);
| ^
prefixsums.cpp:3:13: error: expected initializer before ‘long’
3 | #define int long long
| ^~~~
prefixsums.cpp:16:3: note: in expansion of macro ‘int’
16 | int ss
| ^~~
prefixsums.cpp:18:1: error: ‘ss’ was not declared in this scope
18 | ss[