Compile Error

foo.cc: In function 'int main()':
foo.cc:7:27: error: invalid operands of types 'double' and '<unresolved overloaded function type>' to binary 'operator<<'
    7 |  if(a>=2000)  cout<<a*=0.8<<endl;
      |                        ~~~^~~~~~
foo.cc:9:28: error: invalid operands of types 'double' and '<unresolved overloaded function type>' to binary 'operator<<'
    9 |  if(a>=1500)  cout<<a*=0.85<<endl;
      |                        ~~~~^~~~~~
foo.cc:11:29: error: invalid operands of types 'double' and '<unresolved overloaded function type>' to binary 'operator<<'
   11 |    if(a>=1000)  cout<<a*=0.9<<endl;
      |                          ~~~^~~~~~
foo.cc:13:30: error: invalid operands of types 'double' and '<unresolved overloaded function type>' to binary 'operator<<'
   13 |     if(a>=500)  cout<<a*=0.95<<endl;
      |                          ~~~~^~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1027 超市促销活动
语言
C++
递交时间
2022-07-19 19:09:58
评测时间
2022-07-19 19:09:58
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes