Problem descsort
User blob
Submission Time 2023-11-14 14:25:05
Score 0
Max Time N/A
Max Memory N/A

Compile Error

descsort.cpp: In function ‘int main()’:
descsort.cpp:8:10: error: expected primary-expression before ‘int’
8 | cin >> int arr[i];
| ^~~
descsort.cpp:10:28: error: expected primary-expression before ‘]’ token
10 | sort (v.begin(),v.end() [] (auto a, auto b) {
| ^
descsort.cpp:10:31: error: expected primary-expression before ‘auto’
10 | sort (v.begin(),v.end() [] (auto a, auto b) {
| ^~~~
descsort.cpp:10:39: error: expected primary-expression before ‘auto’
10 | sort (v.begin(),v.end() [] (auto a, auto b) {
| ^~~~
descsort.cpp:13:11: error: expected primary-expression before ‘int’
13 | cout << int arr[i];
| ^~~
descsort.cpp:14:2: error: expected ‘}’ at end of input
14 | }
| ^
descsort.cpp:3:11: note: to match this ‘{’
3 | int main(){