Problem sorting2
User PrunJuice
Submission Time 2025-04-28 13:47:35
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sorting2.cpp: In function ‘void sort_questions(int, int, int*)’:
sorting2.cpp:2:2: error: ‘fori’ was not declared in this scope
2 | fori(N)A[i]=i+1;
| ^~~~
sorting2.cpp:3:20: error: ‘compare_difficulty’ was not declared in this scope
3 | stable_sort(A,A+N,compare_difficulty);
| ^~~~~~~~~~~~~~~~~~
sorting2.cpp:3:2: error: ‘stable_sort’ was not declared in this scope
3 | stable_sort(A,A+N,compare_difficulty);
| ^~~~~~~~~~~