运行 ID 作者 题号 测评结果 分数 时间 内存 语言 代码长度 提交时间
594587 Long 1005 - 球的体积和表面积 编译错误 0 0 MS 0 KB C 179 5个月前
暂时无法获取本题测试点详情。

Main.c:2:7: warning: type defaults to 'int' in declaration of 'double\U000003a0' [-Wimplicit-int]
2 | const doubleΠ=3.1415926;
| ^~~~~~~
Main.c: In function 'main':
Main.c:6:13: warning: format '%f' expects argument of type 'float *', but argument 2 has type 'double *' [-Wformat=]
6 | scanf("%f",&n);
| ~^ ~~
| | |
| | double *
| float *
| %lf
Main.c:8:9: error: '\U000003a0' undeclared (first use in this function)
8 | b=4*Π*n*n;
| ^
Main.c:8:9: note: each undeclared identifier is reported only once for each function it appears in
Main.c:9:18: warning: format '%f' expects a matching 'double' argument [-Wformat=]
9 | printf("%f%f%f",a,b);
| ~^
| |
| double