Problem sorting2
User YSH2020
Submission Time 2025-03-28 13:27:31
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sorting2.cpp:6:4: error: structured binding declaration cannot have type ‘int’
6 | int[] solve(int[] cur, int n) {
| ^~
sorting2.cpp:6:4: note: type must be cv-qualified ‘auto’ or reference to cv-qualified ‘auto’
sorting2.cpp:6:4: error: empty structured binding declaration
sorting2.cpp:6:7: error: expected initializer before ‘solve’
6 | int[] solve(int[] cur, int n) {
| ^~~~~
sorting2.cpp: In function ‘void sort_questions(int, int, int*)’:
sorting2.cpp:26:2: error: ‘solve’ was not declared in this scope
26 | solve(A, N);
| ^~~~~