0_0_24523238_30895.cpp: In function 'int main()': 0_0_24523238_30895.cpp:24:23: error: 'sort' was not declared in this scope sort(a+1,a+n+1,cmp); ^