Main.cc: In function 'int main()': Main.cc:6:30: warning: format '%lf' expects argument of type 'double*', but argument 4 has type 'double' [-Wformat=] scanf("%lf%lf%lf",&c,&m,e); ^ Main.cc:7:28: error: 'prinf' was not declared in this scope prinf("%.2lf",(c+m+e)/3); ^