Problem sorting2
User ensonchew
Submission Time 2025-12-10 16:30:06
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sorting2.cpp: In function ‘void sort_questions(int, int, int*)’:
sorting2.cpp:4:34: error: too few arguments to function ‘bool compare_difficulty(int, int)’
4 | sort(A, A+N, compare_difficulty());
| ^
In file included from sorting2.cpp:1:
sorting2.h:2:6: note: declared here
2 | bool compare_difficulty(int X, int Y);
| ^~~~~~~~~~~~~~~~~~
sorting2.cpp:4:2: error: ‘sort’ was not declared in this scope; did you mean ‘short’?
4 | sort(A, A+N, compare_difficulty());
| ^~~~
| short