foo.cc: In function 'int main()':
foo.cc:6:6: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
6 | if(a>2000&a==2000)printf("%.2f",0.8*a);
| ~^~~~~
foo.cc:7:12: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
7 | else if(a>1500&a==1500)printf("%.2f",0.85*a);
| ~^~~~~
foo.cc:8:13: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
8 | else if(a>1000&a==1000)printf("%.2f",0.9*a);
| ~^~~~~
foo.cc:9:14: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
9 | else if(a>500&a==500)printf("%.2f",0.95*a);
| ~^~~~
[Hydro](https://hydro.ac)提供评测服务