| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 154676 | 邵栋-栋栋老师 | 04球的体积 | C++ | Compile Error | 0 MS | 0 KB | 217 | 2026-05-30 17:43:37 |
#include<bits/stdc++.h> using namespace std; int main() { const double pi=3.1415926; double v; int n; cin>>n; v=4.0/3*PI*n*n*n; cout<<fixed<<setprecision(4)<<v<<endl; return 0; }
Main.cc: In function 'int main()':
Main.cc:9:13: error: 'PI' was not declared in this scope
v=4.0/3*PI*n*n*n;
^
Main.cc:5:18: warning: unused variable 'pi' [-Wunused-variable]
const double pi=3.1415926;
^