Problem descsort
User jianxiang
Submission Time 2024-07-25 10:09:59
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 <iostream>
| ^~~~~~~
descsort.cpp: In function ‘int main()’:
descsort.cpp:5:2: error: ‘cin’ was not declared in this scope
5 | cin >> n;
| ^~~
descsort.cpp:5:9: error: ‘n’ was not declared in this scope
5 | cin >> n;
| ^
descsort.cpp:9:10: error: ‘a’ was not declared in this scope
9 | cin >> a[i]
| ^
descsort.cpp:12:7: error: ‘a’ was not declared in this scope
12 | sort(a, a + n)
| ^
descsort.cpp:12:2: error: ‘sort’ was not declared in this scope; did you mean ‘short’?
12 | sort(a, a + n)
| ^~~~
| short
descsort.cpp:14:17: error: ‘i’ was not declared in this scope
14 | for(int i = 0; i < n; i++) {
| ^