Main.cc: In function ‘int main()’:
Main.cc:8:5: error: ‘bai’ was not declared in this scope
bai=n/100%10;
^~~
Main.cc:9:5: error: ‘qian’ was not declared in this scope
qian=n/1000%10;
^~~~
Main.cc:10:5: error: ‘wan’ was not declared in this scope
wan=n/10000%10;
^~~
Main.cc:10:5: note: suggested alternative: ‘main’
wan=n/10000%10;
^~~
main