Main.cc: In function 'int main()': Main.cc:9:24: warning: format '%d' expects argument of type 'int', but argument 2 has type 'double' [-Wformat=] printf("%.5d%d",a/b) ^ Main.cc:9:24: warning: format '%d' expects a matching 'int' argument [-Wformat=] Main.cc:10:5: error: expected ';' before 'return' return 0; ^