Main.cc: In function 'int main()':
Main.cc:8:26: error: expected ')' before 'i'
if(i == 1 || i == 3 i == 5 || i == 7 || i == 8 || i == 10 || i == 12){
^
Main.cc:14:27: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
if(year % 4 == 0 && year % 100 != 0 || year % 400 == 0){
^