Problem sorting2
User bribritt
Submission Time 2025-12-10 22:15:25
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: ‘iota’ was not declared in this scope
2 | iota(A,A+N,1);
| ^~~~
sorting2.cpp:3:13: error: ‘compare_difficulty’ was not declared in this scope
3 | sort(A,A+N,compare_difficulty);
| ^~~~~~~~~~~~~~~~~~
sorting2.cpp:3:2: error: ‘sort’ was not declared in this scope; did you mean ‘short’?
3 | sort(A,A+N,compare_difficulty);
| ^~~~
| short