Problem descsort
User jianxiang
Submission Time 2024-07-25 10:12:19
Score 0
Max Time N/A
Max Memory N/A

Compile Error

descsort.cpp: In function ‘int main()’:
descsort.cpp:5:9: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
5 | cin >> n;
| ^
| yn
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:14:17: error: ‘i’ was not declared in this scope
14 | for(int i = 0; i < n; i++) {
| ^