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