Problem prefixsums
User JoelToh
Submission Time 2026-08-03 17:37:34
Score 0
Max Time N/A
Max Memory N/A

Compile Error

prefixsums.cpp: In function ‘int main()’:
prefixsums.cpp:6:12: error: expected ‘;’ before ‘int’
6 | cin.tie(0)
| ^
| ;
7 | int n, q;
| ~~~
prefixsums.cpp:8:12: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
8 | cin >> n >> q;
| ^
| yn
prefixsums.cpp:8:17: error: ‘q’ was not declared in this scope
8 | cin >> n >> q;
| ^