Problem | prefixsums |
---|---|
User | AliLam |
Submission Time | 2025-06-17 16:25:59 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
prefixsums.cpp: In function ‘int main()’:
prefixsums.cpp:17:15: error: expected ‘;’ before ‘int’
17 | cin >> b >> c
| ^
| ;
18 | int psum[N + 1];
| ~~~
prefixsums.cpp:19:2: error: ‘psum’ was not declared in this scope
19 | psum[0] = 0;
| ^~~~
prefixsums.cpp:21:30: error: ‘arr’ was not declared in this scope
21 | psum[b] = psum[b - 1] + arr[b - 1];
| ^~~
prefixsums.cpp:23:25: error: ‘i’ was not declared in this scope
23 | cout << psum[c] - psum[i - 1] << "\n";
| ^