0_0_25864099_11612.cpp: In function 'int main()': 0_0_25864099_11612.cpp:55:38: error: 'cmp' was not declared in this scope sort(pos[pp],pos[pp]+num,cmp); ^