| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 69037 | 邓嘉懿 | 13分数求和 | C++ | Compile Error | 0 MS | 0 KB | 224 | 2024-03-30 11:37:54 |
#include<bits/stdc++.h> using namespace std; int main(){ int n; double fz,fm,sum=0,fzz; fz=2,fm=1; for(int i=1;i<=n;i++){ sum+=fz/fm; fzz=fz; fz=fz+fm; fm+fzz; } printf("%.6lf",m); return 0; }
Main.cc: In function 'int main()':
Main.cc:11:5: warning: statement has no effect [-Wunused-value]
fm+fzz;
^
Main.cc:13:17: error: 'm' was not declared in this scope
printf("%.6lf",m);
^