Main.cc: In function 'int main()': Main.cc:13:8: error: invalid operands of types 'float' and 'int' to binary 'operator%' if(b%10-b/1000-b%1000/100-b%100/100 >= 0){ ^ Main.cc:13:20: error: invalid operands of types 'float' and 'int' to binary 'operator%' if(b%10-b/1000-b%1000/100-b%100/100 >= 0){ ^ Main.cc:13:31: error: invalid operands of types 'float' and 'int' to binary 'operator%' if(b%10-b/1000-b%1000/100-b%100/100 >= 0){ ^