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