0_0_13422925_32333.cpp: In function 'int main()': 0_0_13422925_32333.cpp:29:38: error: 'qsort' was not declared in this scope qsort(r, n, sizeof(r[0]), cmp); ^