Problem prefixsums
User fueh
Submission Time 2024-04-18 12:15:52
Score 0
Max Time N/A
Max Memory N/A

Compile Error

prefixsums.cpp:10:1: error: ‘cin’ does not name a type; did you mean ‘sin’?
10 | cin >> arraysize > queries;
| ^~~
| sin
prefixsums.cpp:11:19: error: array bound is not an integer constant before ‘]’ token
11 | int wawa[arraysize];
| ^
prefixsums.cpp:12:1: error: expected unqualified-id before ‘for’
12 | for (int i = 0; i < arraysize; i++) {
| ^~~
prefixsums.cpp:12:17: error: ‘i’ does not name a type
12 | for (int i = 0; i < arraysize; i++) {
| ^
prefixsums.cpp:12:32: error: ‘i’ does not name a type
12 | for (int i = 0; i < arraysize; i++) {
| ^
prefixsums.cpp:16:1: error: expected unqualified-id before ‘for’
16 | for (int x = 0; x < queries< x++) {
| ^~~
prefixsums.cpp:16:17: error: ‘x’ does not name a type
16 | for (int x = 0; x < queries< x++) {
|