foo.cc: In function 'int main()':
foo.cc:6:14: warning: right operand of comma operator has no effect [-Wunused-value]
6 | cin>>a,b,c,d;
| ^
foo.cc:6:16: warning: right operand of comma operator has no effect [-Wunused-value]
6 | cin>>a,b,c,d;
| ^
foo.cc:6:17: warning: right operand of comma operator has no effect [-Wunused-value]
6 | cin>>a,b,c,d;
| ^
foo.cc:7:14: warning: 'b' is used uninitialized [-Wuninitialized]
7 | n=a*0.1+b*0.2+c*0.2+d*0.5;
| ~^~~~
foo.cc:5:11: note: 'b' was declared here
5 | int a,b,c,d,n;
| ^
foo.cc:7:20: warning: 'c' is used uninitialized [-Wuninitialized]
7 | n=a*0.1+b*0.2+c*0.2+d*0.5;
| ~^~~~
foo.cc:5:13: note: 'c' was declared here
5 | int a,b,c,d,n;
| ^
foo.cc:7:26: warning: 'd' is used uninitialized [-Wuninitialized]
7 | n=a*0.1+b*0.2+c*0.2+d*0.5;
| ~^~~~
foo.cc:5:15: note: 'd' was declared here
5 | int a,b,c,d,n;
| ^
[Hydro](https://hydro.ac)提供评测服务