Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
95909 涂胤嘉 04球的体积 C++ Compile Error 0 MS 0 KB 360 2024-11-02 14:40:25

Tests(0/0):


Code:

#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ double r,p=3.1415926; scanf("%lf",&r); printf("%.4lf",(4/3.0*p*r*r*r); return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:10:35: error: expected ')' before ';' token
     printf("%.4lf",(4/3.0*p*r*r*r);
                                   ^
Main.cc:9:20: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%lf",&r);
                    ^