Problem descsort
User elsatanyixin
Submission Time 2026-02-28 11:05:15
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:2: error: ‘cin’ was not declared in this scope
5 | cin >> n;
| ^~~
descsort.cpp:12:26: error: ‘greater’ was not declared in this scope
12 | sort (array, array + n, greater <int> ());
| ^~~~~~~
descsort.cpp:12:35: error: expected primary-expression before ‘int’
12 | sort (array, array + n, greater <int> ());
| ^~~
descsort.cpp:12:2: error: ‘sort’ was not declared in this scope; did you mean ‘short’?
12 | sort (array, array + n, greater <int> ());
| ^~~~
| short
descsort.cpp:15:3: error: ‘cout’ was not declared in this scope
15 | cout << array [i]<< " ";
| ^~~~