Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
148496 王润中 11大象喝水 C++ Compile Error 0 MS 0 KB 330 2026-02-23 13:21:56

Tests(0/0):


Code:

#include<iostream> using namespace std; int main() { int h,r,c=0,a=0; cin>>h>>r; c=(3.14*r)*(3.14*r); a=(h*c)*(h*c)*(h*c); if([(20*1000)*(20*1000)*(20*1000)]%a==0) { cout<<(20*1000)*(20*1000)*(20*1000)/a; } else { cout<<(20*1000)*(20*1000)*(20*1000)/a+1; } }


Run Info:

Main.cc: In function 'int main()':
Main.cc:9:9: error: expected identifier before '(' token
     if([(20*1000)*(20*1000)*(20*1000)]%a==0)
         ^
Main.cc: In lambda function:
Main.cc:9:39: error: expected '{' before '%' token
     if([(20*1000)*(20*1000)*(20*1000)]%a==0)
                                       ^
Main.cc: In function 'int main()':
Main.cc:9:39: error: no match for 'operator%' (operand types are 'main()::' and 'int')
Main.cc:11:34: warning: integer overflow in expression [-Woverflow]
         cout<<(20*1000)*(20*1000)*(20*1000)/a;
                                  ^
Main.cc:15:34: warning: integer overflow in expression [-Woverflow]
         cout<<(20*1000)*(20*1000)*(20*1000)/a+1;
                                  ^