Problem | arrayproblem |
---|---|
User | ethanlinHoucheng |
Submission Time | 2025-08-21 21:36:00 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
arrayproblem.cpp:6:11: error: structured binding declaration cannot have type ‘long long int’
6 | long long [mxN];
| ^~~~~
arrayproblem.cpp:6:11: note: type must be cv-qualified ‘auto’ or reference to cv-qualified ‘auto’
arrayproblem.cpp:6:12: error: conflicting declaration ‘auto mxN’
6 | long long [mxN];
| ^~~
arrayproblem.cpp:4:11: note: previous declaration as ‘const int mxN’
4 | const int mxN=300000;
| ^~~
arrayproblem.cpp:6:16: error: expected initializer before ‘;’ token
6 | long long [mxN];
| ^
arrayproblem.cpp: In function ‘void solve()’:
arrayproblem.cpp:17:5: error: ‘suff’ was not declared in this scope
17 | suff[n-1]=arr[n-1];
| ^~~~