Main.cc: In function ‘int main()’: Main.cc:9:12: warning: ‘*’ in boolean context, suggest ‘&&’ instead [-Wint-in-bool-context] while(i*i) ~^~ Main.cc:11:21: error: invalid operands of types ‘float’ and ‘int’ to binary ‘operator%’ sum=sum*10+n%10; ~^~~