Main.cc: In function ‘int main()’: Main.cc:12:9: error: invalid operands of types ‘int [n]’ and ‘int’ to binary ‘operator%’ if(year%4==0) { ~~~~^~ Main.cc:13:10: error: invalid operands of types ‘int [n]’ and ‘int’ to binary ‘operator%’ if(year%100==0) { ~~~~^~~~ Main.cc:14:11: error: invalid operands of types ‘int [n]’ and ‘int’ to binary ‘operator%’ if(year%400==0) { ~~~~^~~~