Main.cc: In function 'int main()': Main.cc:6:2: error: 'a' was not declared in this scope a=n%10; ^ Main.cc:7:2: error: 'b' was not declared in this scope b=n/10%10; ^ Main.cc:8:2: error: 'c' was not declared in this scope c=n/100%10; ^ Main.cc:9:2: error: 'd' was not declared in this scope d=n/1000%10; ^