| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 160529 | 曾钰涵 | 13分数求和 | C++ | Compile Error | 0 MS | 0 KB | 209 | 2026-09-19 16:54:57 |
#include<bits/stdc++.h> using namespace std; int main(){ int n; double sum=0,a=2,b=1,t; cin>>n; for(int i=n;i<=30;i++){ sum+=a/b; t=a; a=a+b; b=t; } printf("%.4lf",s); return 0; }
Main.cc: In function 'int main()':
Main.cc:13:17: error: 's' was not declared in this scope
printf("%.4lf",s);
^