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