0_0_32855332_20849.cpp: In function 'int main()': 0_0_32855332_20849.cpp:24:35: error: 'qsort' was not declared in this scope qsort(w,n,sizeof(w[0]),cmp); ^