Problem descsort
User MistyMoon
Submission Time 2026-02-28 11:07:56
Score 0
Max Time N/A
Max Memory N/A

Compile Error

descsort.cpp: In function ‘int main()’:
descsort.cpp:10:7: error: expected primary-expression before ‘int’
10 | sort(int a, a+n, greater<int>());
| ^~~
descsort.cpp:10:14: error: ‘a’ was not declared in this scope
10 | sort(int a, a+n, greater<int>());
| ^
descsort.cpp:13:2: error: expected ‘}’ at end of input
13 | }
| ^
descsort.cpp:3:12: note: to match this ‘{’
3 | int main() {
| ^