Technically, there is nothing wrong with the statement if(x==y);.
You are simply saying, "If x equals y, do nothing."
But x does not equal y anyhow, so it doesn't get executed.
What is the program supposed to do?