Problem | prefixsums |
---|---|
User | kashsinghal |
Submission Time | 2023-11-09 15:39:35 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
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:1: note: in expansion of macro ‘int’
16 | int ss [n+1];
| ^~~
prefixsums.cpp:17:1: error: ‘ss’ was not declared in this scope
17 |