Main.cc: In function ‘void a(int)’:
Main.cc:5:2: error: ‘b’ was not declared in this scope
5 | b = c / 100;
| ^
Main.cc:6:2: error: ‘s’ was not declared in this scope
6 | s = c / 10 % 10;
| ^
Main.cc:7:2: error: ‘g’ was not declared in this scope
7 | g = c % 10;
| ^
Main.cc: In function ‘int main()’:
Main.cc:16:9: warning: unused variable ‘g’ [-Wunused-variable]
16 | int g,s,b,c = 100;
| ^
Main.cc:16:11: warning: unused variable ‘s’ [-Wunused-variable]
16 | int g,s,b,c = 100;
| ^
Main.cc:16:13: warning: unused variable ‘b’ [-Wunused-variable]
16 | int g,s,b,c = 100;
| ^