Problem | sort |
---|---|
User | Joashhh |
Submission Time | 2024-01-08 15:35:26 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
sort.cpp: In function ‘int main()’:
sort.cpp:10:9: error: redeclaration of ‘int n’
10 | int n = sizeof(arr)/sizeof(arr[0]);
| ^
sort.cpp:4:9: note: ‘int n’ previously declared here
4 | int n;
| ^
sort.cpp:11:5: error: ‘sort’ was not declared in this scope; did you mean ‘qsort’?
11 | sort(arr, arr+n);
| ^~~~
| qsort