Main.cc: In function 'int main()': Main.cc:8:11: error: expected initializer before 'b' int a b; ^ Main.cc:9:21: error: 'a' was not declared in this scope scanf("%3d%1d",&a,&b); ^ Main.cc:9:24: error: 'b' was not declared in this scope scanf("%3d%1d",&a,&b); ^