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