Problem descsort
User MysteriousMystery
Submission Time 2025-06-19 09:10:17
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>());
| ^
descsort.cpp:15:2: error: expected ‘}’ at end of input
15 | }
| ^
descsort.cpp:4:12: note: to match this ‘{’
4 | int main() {
| ^