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

Compile Error

descsort.cpp: In function ‘int main()’:
descsort.cpp:2:14: error: ‘cin’ is not a member of ‘std’
2 | int N; std::cin >> N;
| ^~~
descsort.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | int main(){
descsort.cpp:5:8: error: ‘cin’ is not a member of ‘std’
5 | std::cin >> Arr[i];
| ^~~
descsort.cpp:5:8: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
descsort.cpp:7:7: error: ‘sort’ is not a member of ‘std’
7 | std::sort(Arr,Arr + N);
| ^~~~
descsort.cpp:9:8: error: ‘cout’ is not a member of ‘std’
9 | std::cout << Arr[N-y] << " ";
| ^~~~
descsort.cpp:9:8: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?