Problem prefixsums
User nivay210
Submission Time 2023-11-10 09:37:53
Score 0
Max Time N/A
Max Memory N/A

Compile Error

prefixsums.cpp: In function ‘int32_t main()’:
prefixsums.cpp:6:12: error: expected primary-expression before ‘:’ token
6 | ios_base: : sync_with_stdio(0); cin_tie(0);
| ^
prefixsums.cpp:6:34: error: ‘cin_tie’ was not declared in this scope
6 | ios_base: : sync_with_stdio(0); cin_tie(0);
| ^~~~~~~
prefixsums.cpp:10:29: error: expected ‘;’ before ‘)’ token
10 | for (int i = 1; i <= n, i++){
| ^
| ;
prefixsums.cpp:20:19: error: expected ‘;’ before ‘<’ token
20 | for (int i = 0, i < q, i++){
| ^~
| ;
prefixsums.cpp:20:20: error: expected primary-expression before ‘<’ token
20 | for (int i = 0, i < q, i++){
| ^
prefixsums.cpp:20:28: error: expected ‘;’ before ‘)’ token
20 | for (int i = 0, i < q, i