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