| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 153991 | 孔声豪 | 19斯诺克比赛 | C++ | Compile Error | 0 MS | 0 KB | 350 | 2026-05-24 11:56:18 |
#include<bits/stdc++.h> using namespace std; int main(){ int sum=0,i,a[8]={}; for(i=1;i<=7;i++){ cin>>a[i] ; } if(a[1]!=0){ i=7; while(t[i]==0)i--; if(i==1){ cout<<1<<endl; return 0; } else sum+=a[i]*(1+i); } for(int j=2;j<=7;j++)sum+=a[j]*j; cout<<sum<<endl; return 0; }
Main.cc: In function 'int main()':
Main.cc:10:11: error: 't' was not declared in this scope
while(t[i]==0)i--;
^