Problem | prefixsums |
---|---|
User | Rainny |
Submission Time | 2024-06-18 14:17:11 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
prefixsums.cpp: In function ‘int main()’:
prefixsums.cpp:5:2: error: expected initializer before ‘cin’
5 | cin >> n >> q;
| ^~~
prefixsums.cpp:15:17: error: ‘q’ was not declared in this scope
15 | for(int i=0; i<q; i++){
| ^
prefixsums.cpp:17:36: error: expected ‘}’ at end of input
17 | cout << psum[r]-psum[l-1] << "/n";
| ^
prefixsums.cpp:15:24: note: to match this ‘{’
15 | for(int i=0; i<q; i++){
| ^
prefixsums.cpp:17:36: error: expected ‘}’ at end of input
17 | cout << psum[r]-psum[l-1] << "/n";
| ^
prefixsums.cpp:3:11: note: to match this ‘{’
3 | int main(){
| ^