Main.cc: In function 'int main()': Main.cc:7:26: error: 'n' was not declared in this scope if((a%4==0&&a%100!=0)||(n&400==0)) ^ Main.cc:14:2: error: expected ';' before '}' token } ^