Main.cc: In function 'int main()':
Main.cc:5:24: error: 'c' was not declared in this scope
scanf("%lf%lf",&a,&b,&c);
^
Main.cc:6:27: error: expected primary-expression before ')' token
printf("%.2lf",(a+b+c)/3;)
^