Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:7:22: error: invalid operands of types 'int' and 'double' to binary 'operator%'
    7 |         cout<<ceil(20%3.14159*r*r*h);
      |                    ~~^~~~~~~~
      |                    |  |
      |                    |  double
      |                    int

信息

递交者
类型
递交
题目
P1000 大象喝水
语言
C++
递交时间
2026-01-10 14:31:11
评测时间
2026-01-10 14:31:11
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes