Problem descsort
User MysteriousMystery
Submission Time 2025-06-19 09:10:29
Score 0
Max Time N/A
Max Memory N/A

Compile Error

descsort.cpp: In function ‘int main()’:
descsort.cpp:9:14: error: array must be initialized with a brace-enclosed initializer
9 | int b[i] = c;
| ^
descsort.cpp:11:14: error: ‘n’ was not declared in this scope
11 | sort(a, a + n, greater<int>());
| ^