Problem sort
User NeeNawAmbulance
Submission Time 2023-05-14 09:19:18
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sort.cpp: In function ‘int main()’:
sort.cpp:7:6: error: structured binding declaration cannot have type ‘char’
7 | char[] arr[n];
| ^~
sort.cpp:7:6: note: type must be cv-qualified ‘auto’ or reference to cv-qualified ‘auto’
sort.cpp:7:6: error: empty structured binding declaration
sort.cpp:7:9: error: expected initializer before ‘arr’
7 | char[] arr[n];
| ^~~
sort.cpp:8:36: error: ‘arr’ was not declared in this scope
8 | for (int i =0; i < n; i++) cin >> arr[i];
| ^~~
sort.cpp:9:7: error: ‘arr’ was not declared in this scope
9 | sort(arr,arr+n);
| ^~~