| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 128807 | 周荣浩 | 19斯诺克比赛 | C++ | Compile Error | 0 MS | 0 KB | 223 | 2025-08-20 09:00:55 |
#include<bits/stdc++.h> using namespace std; int b[10]; int sum=0; int main(){ int f[10]={0,1,2,3,4,5,6,7}; for(int i=1;i<=7;i++){ cin>>b[i]; sum+=b[i]*f[i]; } sum=b[7]*a[1]; cout<<sum; return 0; }
Main.cc: In function 'int main()':
Main.cc:11:11: error: 'a' was not declared in this scope
sum=b[7]*a[1];
^