Problem sort
User Mimikyu
Submission Time 2023-12-18 14:06:06
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sort.cpp: In function ‘int main()’:
sort.cpp:8:2: error: expected initializer before ‘for’
8 | for (int i=0;i<x;i++){
| ^~~
sort.cpp:8:15: error: ‘i’ was not declared in this scope
8 | for (int i=0;i<x;i++){
| ^
sort.cpp:12:7: error: ‘arr’ was not declared in this scope
12 | sort(arr, arr+n);
| ^~~
sort.cpp:12:16: error: ‘n’ was not declared in this scope
12 | sort(arr, arr+n);
| ^
sort.cpp:12:2: error: ‘sort’ was not declared in this scope; did you mean ‘qsort’?
12 | sort(arr, arr+n);
| ^~~~
| qsort