Are you using the Arduino IDE ?
Can your right-click on the code and select "Format Document", then fix all the brackets '{' and '}'.
A if-statement with a ';' is doing nothing, the semi-colon ';' is a empty statement.
// This is a empty if-statement
if (day == monday); // if it is monday, do nothing
// This is a if-statement with a single command line
if (day == tuesday)
Serial.println("What a nice day");
// This is a if-statement with a block of code
if (day = wednesday)
{
// buzzer
tone(9, 1000);
// message
Serial.println("Message");
// relay
digitalWrite(relayPin,HIGH);
}