| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 133500 | 张益诚 | 04圆的面积 | C++ | Compile Error | 0 MS | 0 KB | 318 | 2025-10-19 09:44:17 |
#include<iostream> #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("%.2lf",p*r*r return 0; }
Main.cc: In function 'int main()':
Main.cc:12:5: error: expected ')' before 'return'
return 0;
^
Main.cc:9:16: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lf",&r);
^