*POST YOUR CODE USING CODE TAG
*FORMAT YOUR CODE
*POST THE ERRORS THAT THE COMPILER IS GIVING YOU
while(1)
You need to put the opening brace
if(check_if_empty(x2,y2));
What is this for?
for(i=x1+1,j=y1+1;i<x2;j<y2;i++,j++)
Semicolon between two conditions -wrong !!!
There will be many more I suppose. Please follow the above three things, you will get your answers faster