Problem | prefixsums |
---|---|
User | jonellaaa |
Submission Time | 2023-11-09 15:44:02 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
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:15:18: error: expected ‘;’ before ‘for’
15 | ss[0] = 0
| ^
| ;
16 | for (int i=1; i<=n; ++i){
| ~~~
prefixsums.cpp:22:31: error: expected ‘;’ before ‘}’ token
22 | cout <<ss[b]-ss[a-1]<<'\n'
| ^
| ;
23 | }
| ~