Main.cc: In function 'int main()': Main.cc:10:10: error: invalid operands of types 'double' and 'double' to binary 'operator%' if(a%b==0) ^ Main.cc:13:23: error: invalid operands of types 'double' and 'double' to binary 'operator%' cout<a/b<<" "<<a%b; ^ Main.cc:8:16: warning: unused variable 'c' [-Wunused-variable] double a,b,c; ^