Main.cc: In function 'int main()':
Main.cc:8:10: error: invalid operands of types 'double' and 'int' to binary 'operator%'
if(a%10==0){
^
Main.cc:11:15: error: invalid operands of types 'double' and 'int' to binary 'operator%'
a=a-a%10+1;
^