Main.cc: In function ‘int main()’: Main.cc:6:6: error: invalid operands of types ‘double’ and ‘double’ to binary ‘operator%’ if(a%b==0){ ~^~