Main.cc: In function ‘int main()’:
Main.cc:6:2: error: ‘c’ was not declared in this scope
c=a;
^
Main.cc:7:2: error: ‘a1’ was not declared in this scope
a1=a%10;
^~
Main.cc:7:2: note: suggested alternative: ‘a’
a1=a%10;
^~
a
Main.cc:7:6: error: invalid operands of types ‘double’ and ‘int’ to binary ‘operator%’
a1=a%10;
~^~~
Main.cc:8:2: error: ‘a2’ was not declared in this scope
a2=c/10
^~
Main.cc:8:2: note: suggested alternative: ‘a’
a2=c/10
^~
a