| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 128081 | 艾诗雯 | 22兔子问题 | C++ | Compile Error | 0 MS | 0 KB | 121 | 2025-08-01 08:53:16 |
int n=101;int a[n],c,h=0; cin>>c; for(int i=1;i<=c;i++){ cin>>a[i]; h+=a[i]; } cout<<h*4<<" "<<h*2;
Main.cc:1:19: error: array bound is not an integer constant before ']' token
int n=101;int a[n],c,h=0;
^
Main.cc:2:3: error: 'cin' does not name a type
cin>>c;
^
Main.cc:3:3: error: expected unqualified-id before 'for'
for(int i=1;i<=c;i++){
^
Main.cc:3:15: error: 'i' does not name a type
for(int i=1;i<=c;i++){
^
Main.cc:3:20: error: 'i' does not name a type
for(int i=1;i<=c;i++){
^
Main.cc:7:3: error: 'cout' does not name a type
cout<