| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 70563 | 董士浩 | 19选班长 | C++ | Compile Error | 0 MS | 0 KB | 324 | 2024-04-14 16:51:22 |
# include<iostream> using namespace std; int main(){ int n,a[1145],max=-1,t=0; cin>>n; for(int i=0;i<n*3;i++){ cin>>a[i]; }for(int i=1;i<=n;i++){ int s=0; for(int j=0;j<n*3;j++){ if(a[j]==i) s++; }if(s>max){ max=s; t=i; } }cout<<t; i return 0; }
Main.cc: In function 'int main()':
Main.cc:19:5: error: 'i' was not declared in this scope
i
^