Problem sort
User Rollsroyce26
Submission Time 2024-06-19 14:42:59
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sort.cpp: In function ‘int main()’:
sort.cpp:11:10: error: expected ‘;’ before ‘string’
11 | cin >> n
| ^
| ;
12 | string arr[n];
| ~~~~~~
sort.cpp:14:16: error: ‘arr’ was not declared in this scope
14 | cin >> arr[i]
| ^~~
sort.cpp:16:10: error: ‘arr’ was not declared in this scope
16 | sort(arr, arr+n, customsort);
| ^~~
sort.cpp:16:22: error: ‘customsort’ was not declared in this scope
16 | sort(arr, arr+n, customsort);
| ^~~~~~~~~~