Problem sorting2
User PlayVoltz
Submission Time 2024-12-06 08:59:19
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sorting2.cpp: In function ‘void sort_questions(int, int, int*)’:
sorting2.cpp:11:48: error: could not convert ‘std::swap<int>((* a), (*(a + 4)))’ from ‘void’ to ‘bool’
11 | if (n==2)!compare_difficulty(a[0], a[1])&&swap(a[0], a[1]);
| ~~~~^~~~~~~~~~~~