| Problem | sorting2 |
|---|---|
| User | bribritt |
| Submission Time | 2025-12-10 22:15:48 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
sorting2.cpp: In function ‘void sort_questions(int, int, int*)’:
sorting2.cpp:3:7: error: ‘iota’ is not a member of ‘std’
3 | std::iota(A,A+N,1);
| ^~~~
sorting2.cpp:4:13: error: ‘compare_difficulty’ was not declared in this scope
4 | sort(A,A+N,compare_difficulty);
| ^~~~~~~~~~~~~~~~~~
sorting2.cpp:4:2: error: ‘sort’ was not declared in this scope; did you mean ‘std::sort’?
4 | sort(A,A+N,compare_difficulty);
| ^~~~
| std::sort
In file included from /usr/include/c++/9/algorithm:71,
from sorting2.cpp:1:
/usr/include/c++/9/pstl/glue_algorithm_defs.h:296:1: note: ‘std::sort’ declared here
296 | sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last);
| ^~~~