我用本地的编译器测试的用例可以输出结果,这里为啥会报错呀
#include <iostream> using namespace std; int main() { int h, r; cin >> h >> r; int v = (3.14 * r * r * h / 1000); int res = 20 / v; if (20 % v != 0) res++; cout << res << endl; return 0; }