Main.cc: In function 'int main()':
Main.cc:8:15: error: 'b' was not declared in this scope
scanf("%1d",&b);
^
Main.cc:7:17: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%3d",&a);
^