Problem descsort
User Biologyhater123
Submission Time 2025-02-24 16:15:39
Score 0
Max Time N/A
Max Memory N/A

Compile Error

descsort.cpp: In function ‘int32_t main()’:
descsort.cpp:6:16: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
6 | int winsen[n]
| ^
| yn
descsort.cpp:8:5: error: expected initializer before ‘for’
8 | for (int i=0; i<n i++){
| ^~~
descsort.cpp:8:19: error: ‘i’ was not declared in this scope
8 | for (int i=0; i<n i++){
| ^
descsort.cpp:11:10: error: ‘arr’ was not declared in this scope
11 | sort(arr, arr+n, greater<int>());
| ^~~
descsort.cpp:12:22: error: expected ‘;’ before ‘i’
12 | for (int i=0; i<n i++){
| ^~
| ;