Problem descsort
User elsatanyixin
Submission Time 2026-02-28 11:06:49
Score 0
Max Time N/A
Max Memory N/A

Compile Error

descsort.cpp:1:1: error: ‘include’ does not name a type
1 | include <bits/stdc++.h>
| ^~~~~~~
descsort.cpp: In function ‘int main()’:
descsort.cpp:5:5: error: ‘cin’ was not declared in this scope
5 | cin >> N;
| ^~~
descsort.cpp:12:25: error: ‘greater’ was not declared in this scope
12 | sort (array,array+N,greater<int>());
| ^~~~~~~
descsort.cpp:12:33: error: expected primary-expression before ‘int’
12 | sort (array,array+N,greater<int>());
| ^~~
descsort.cpp:12:5: error: ‘sort’ was not declared in this scope; did you mean ‘short’?
12 | sort (array,array+N,greater<int>());
| ^~~~
| short
descsort.cpp:15:9: error: ‘cout’ was not declared in this scope
15 | cout << array[i]<< " ";
| ^~~~