0_0_18298395_14199.cpp: In function 'int main()': 0_0_18298395_14199.cpp:44:20: error: 'sort' was not declared in this scope sort(res,res+index); ^