Main.cc: In function 'bool a(int)': Main.cc:8:8: error: 'j' was not declared in this scope if(j%4==0&&j%100!=0||j%400==0) ^