Main.cc: In function ‘int main()’: Main.cc:6:8: error: ‘n’ was not declared in this scope if(n%6==1) ^ Main.cc:8:8: error: ‘n’ was not declared in this scope if(n%6==2) ^ Main.cc:10:8: error: ‘n’ was not declared in this scope if(n%6==3) ^ Main.cc:12:9: error: ‘n’ was not declared in this scope if(n%6==4) ^ Main.cc:14:8: error: ‘n’ was not declared in this scope if(n%6==5) ^ Main.cc:16:8: error: ‘n’ was not declared in this scope if(n%6==6) ^