0_0_29609991_1721.cpp: In function 'int main()': 0_0_29609991_1721.cpp:23:13: error: 'ans' was not declared in this scope sort(ans,ans+i); ^