foo.cc: In function 'int main()':
foo.cc:6:5: error: expected initializer before 'float'
float a;
^~~~~
foo.cc:7:7: error: 'x' was not declared in this scope
cin>>x>>y>>z;
^
foo.cc:7:10: error: 'y' was not declared in this scope
cin>>x>>y>>z;
^
foo.cc:7:13: error: 'z' was not declared in this scope
cin>>x>>y>>z;
^
foo.cc:8:2: error: 'a' was not declared in this scope
a=120*(x+0.5*y+0.6*z);
^
foo.cc:9:2: error: 'coat' was not declared in this scope
coat<<a;
^~~~
foo.cc:9:2: note: suggested alternative: 'char'
coat<<a;
^~~~
char
[Hydro](https://hydro.ac)提供评测服务