Main.cc: In function ‘int main()’: Main.cc:14:19: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] else if(y%4==0&&y%100!=0||y%400==0) { ~~~~~~^~~~~~~~~~ Main.cc:16:6: error: expected ‘;’ before ‘}’ token } ^