| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 134658 | 李明秦 | 22兔子问题 | C++ | Compile Error | 0 MS | 0 KB | 393 | 2025-10-31 17:48:31 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main() { int n=101;int a[n],c,h= ; cin>>c; for (inti=1;i<=c;i++) { cin>>a[i]; h+=a[i]; } cout<<h*4<<" "<<h*2; return 0; }
Main.cc: In function 'int main()':
Main.cc:10:25: error: expected primary-expression before ';' token
int n=101;int a[n],c,h= ;
^
Main.cc:12:6: error: 'inti' was not declared in this scope
for (inti=1;i<=c;i++) {
^
Main.cc:12:13: error: 'i' was not declared in this scope
for (inti=1;i<=c;i++) {
^