0_0_36124115_11033.cpp: In function 'int main()': 0_0_36124115_11033.cpp:6:1: error: a function-definition is not allowed here before '{' token { ^ 0_0_36124115_11033.cpp:13:25: error: 'qsort' was not declared in this scope qsort(a,3,1,&cmp); ^