Problem descsort
User yay
Submission Time 2025-04-05 11:15:46
Score 0
Max Time N/A
Max Memory N/A

Compile Error

descsort.cpp: In function ‘int32_t main()’:
descsort.cpp:6:10: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
6 | int arr[n];
| ^
| yn
descsort.cpp:7:22: error: ‘N’ was not declared in this scope
7 | for (int i = 0; i < N; i++) {
| ^
descsort.cpp:9:9: error: ‘arr’ was not declared in this scope
9 | sort(arr[j], arr[j+1], greater<int>());
| ^~~