There is no definition (implementation) of the function
gotoxy()
.
You only have a declaration
void gotoxy(int i, int i1);
But you need also
void gotoxy(int x, int y)
{
COORD coord;
coord.X = x;
coord.Y = y;
SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE), coord);
}
The function is not a standard function but was provided with old Compilers. When using a modern compiler you must implement it yourself.