Compile Error

foo.cc: In function 'int main()':
foo.cc:7:30: error: invalid operands of types 'double' and 'double' to binary 'operator%'
  r=double(r1*r2/(r1+r2)+r1*r2%(r1+r2));
                         ~~~~~^~~~~~~~
foo.cc:6:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%lf %lf",&r1,&r2);
  ~~~~~^~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1651 物理竞赛
语言
C++
递交时间
2021-11-14 14:57:38
评测时间
2021-11-14 14:57:38
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes