| Problem | sorting2 |
|---|---|
| User | AlphanumericUsername |
| Submission Time | 2025-11-19 15:34:58 |
| 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:9:3: error: ‘sort’ was not declared in this scope; did you mean ‘std::sort’?
9 | sort(A, A + N, compare_difficulty);
| ^~~~
| std::sort
In file included from /usr/include/c++/9/algorithm:71,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from sorting2.cpp:3:
/usr/include/c++/9/pstl/glue_algorithm_defs.h:296:1: note: ‘std::sort’ declared here
296 | sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last);
| ^~~~