Problem prefixsums
User blob
Submission Time 2023-11-17 13:32:00
Score 0
Max Time N/A
Max Memory N/A

Compile Error

prefixsums.cpp: In function ‘int main()’:
prefixsums.cpp:11:17: error: ‘k’ was not declared in this scope
11 | for (int i=0;i<k;i++){
| ^
prefixsums.cpp:12:36: error: invalid types ‘int [n][<unresolved overloaded function type>]’ for array subscript
12 | while (!dq.empty() && arr[dq.back] >= arr[i])
| ^
prefixsums.cpp:17:19: error: ‘k’ was not declared in this scope
17 | for (int i=0;i<n-k+1;i++){
| ^
prefixsums.cpp:25:2: error: expected ‘}’ at end of input
25 | }
| ^
prefixsums.cpp:3:11: note: to match this ‘{’
3 | int main(){
| ^