Main.cc: In function 'int main()': Main.cc:9:26: error: 'y' was not declared in this scope if (year % 400 == 0 || (y%4 == 0 && y%100 != 0)){ ^