Problem | lunchbox |
---|---|
User | Water |
Submission Time | 2023-09-16 23:22:30 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lunchbox.cpp: In function ‘void merge(int*, int, int, int)’:
lunchbox.cpp:9:12: error: structured binding declaration cannot have type ‘int’
9 | int[] brr= new int[r-l+1];
| ^~
lunchbox.cpp:9:12: note: type must be cv-qualified ‘auto’ or reference to cv-qualified ‘auto’
lunchbox.cpp:9:12: error: empty structured binding declaration
lunchbox.cpp:9:15: error: expected initializer before ‘brr’
9 | int[] brr= new int[r-l+1];
| ^~~
lunchbox.cpp:13:17: error: ‘brr’ was not declared in this scope; did you mean ‘arr’?
13 | brr[k]= arr[i];
| ^~~
| arr
lunchbox.cpp:16:17: error: ‘brr’ was not declared in this scope; did you mean ‘arr’?
16 | brr[k]= arr[j];
| ^~~
| arr
lunchbox.cpp:26:17: error: ‘brr’ was not declared in this scope; did you mean ‘arr’?
26 |