Problem descsort
User ToiletBrIcker
Submission Time 2024-06-19 09:29:53
Score 0
Max Time N/A
Max Memory N/A

Compile Error

descsort.cpp: In function ‘int main()’:
descsort.cpp:9:2: error: ‘sort’ was not declared in this scope; did you mean ‘std::sort’?
9 | sort(Arr,Arr + N);
| ^~~~
| 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 descsort.cpp:2:
/usr/include/c++/9/pstl/glue_algorithm_defs.h:296:1: note: ‘std::sort’ declared here
296 | sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last);
| ^~~~