Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
119866 | 何睿函 | 22兔子问题 | C++ | Compile Error | 0 MS | 0 KB | 225 | 2025-05-20 20:57:42 |
#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; int a[n]; for(int i=0;i<n;i++){ cin>>a[i]; int b=0; for(int i=0;i<n;i++){ b=b+a[i]; } cout<<b*4<<" "<<b*2; return 0; }
Main.cc: In function 'int main()': Main.cc:15:1: error: expected '}' at end of input } ^