Main.cc:1:9: error: 'n' was not declared in this scope
int g = n % 10;
^
Main.cc:2:10: error: 'n' was not declared in this scope
int s = n / 10 % 10;
^
Main.cc:3:10: error: 'n' was not declared in this scope
int b = n / 100 % 10;
^
Main.cc:4:10: error: 'n' was not declared in this scope
int q = n / 1000 % 10;
^