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