void_cdecl sort(void)"(?sort@@YAXXZ)referenced in function_main
Function main calls void sort(). (Line 52, like anup30 said.)
The compiler was happy with the call, because line 13 declares that such function exists.
The linker, however, cannot find implementation for void sort() from any object file or library.
Your object file does contain implementation for a different, unused function void sort(int,int)
You need to resolve the discrepancies in how the sort function is used. Is it supposed to take an integer array and integer as parameters as you have definied in line 88?
line 13 - function prototype void sort(); //no arguments expected in function
line 52 - function call sort(); //no arguments sent to function
line 88 - function definition void sort(int x[],int N) // function expects two arguments