| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 77104 | 任星宇 | 04圆的面积 | C++ | Compile Error | 0 MS | 0 KB | 170 | 2024-06-08 12:31:12 |
#include <iostream> using namespace std; int main(){ double r,s; scanf("%lf",&r); s=3.1415926*r*r; printf("% ,2lf",s) return 0; }
Main.cc: In function 'int main()':
Main.cc:7:22: warning: unknown conversion type character ',' in format [-Wformat=]
printf("% ,2lf",s)
^
Main.cc:7:22: warning: too many arguments for format [-Wformat-extra-args]
Main.cc:10:5: error: expected ';' before 'return'
return 0;
^
Main.cc:5:20: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lf",&r);
^