Main.cc: In function 'int main()': Main.cc:6:28: warning: format '%f' expects argument of type 'double', but argument 2 has type 'int' [-Wformat=] printf("%.3f",(a+b+c)/3) ^ Main.cc:7:5: error: expected ';' before 'return' return 0; ^