Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
5971 | 吴承熹 | 笨鸟先飞 | C++ | Compile Error | 0 MS | 0 KB | 290 | 2024-12-24 12:45:26 |
#include<iostream> using namespace std; int main(){ int t; cin>>t; for(int i=1;i<=t;i++){ int n; cin>>n; int a=1,b=0; for(int j=1;j<=n;j++){ b=a+b; a=a+2; } cout<<b<<endl; } return 0;
Main.cc: In function 'int main()': Main.cc:16:13: error: expected '}' at end of input return 0; ^