| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 115399 | 张修睿 | 04圆的面积 | C++ | Compile Error | 0 MS | 0 KB | 148 | 2025-03-30 13:11:54 |
#include<bits/stdc++.h> using namespace std; int main() { double r,PI=3.1415926; cin>>r; double s=PI*r*r printf("%.2f",s); return 0; }
Main.cc: In function 'int main()':
Main.cc:7:2: error: expected ',' or ';' before 'printf'
printf("%.2f",s);
^
Main.cc:6:9: warning: unused variable 's' [-Wunused-variable]
double s=PI*r*r
^