| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 122032 | 胡汪兵-小胡老师 | 19选班长 | C++ | Compile Error | 0 MS | 0 KB | 285 | 2025-06-14 09:59:10 |
#include<bits/stdc++.h> using namespace std; int main(){ int a[11]={0},n,max=0,p,bh; cin>>n; for(int i=1;i<=n;i++) { for(int j=1;i<=3;j++) { cin>>p; a[p]++; } } for(int i=1;i<=n;i++) if(a[i]>max) { max=a[i] bh=i; } cout<<bh; }
Main.cc: In function 'int main()':
Main.cc:18:4: error: expected ';' before 'bh'
bh=i;
^