0_0_28239128_29805.cpp: In function 'int main()': 0_0_28239128_29805.cpp:30:28: error: 'sort' was not declared in this scope sort(a+1,a+n+1,my_cmp); ^