Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:7:16: error: invalid operands of types 'double' and 'int' to binary 'operator%'
    7 |         if(a*10%10<=5) {
      |            ~~~~^~~
      |             |   |
      |             |   int
      |             double

信息

递交者
类型
递交
题目
P2662 五舍六入
语言
C++
递交时间
2026-07-24 10:15:03
评测时间
2026-07-24 10:15:03
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes