| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 153915 | 孔声豪 | 19众数 | C++ | Compile Error | 0 MS | 0 KB | 242 | 2026-05-24 11:15:19 |
#include<bits/stdc++.h> using namespace std; int main(){ int x,max=0,i,a[100000]={}; cin>>n; for(i=0;1<n;i++){ cin>>x; a[x]++; } for(i=0;i<1000;i++){ if(a[i]>max){ max=a[i]; } cout<<max<<endl; return 0; }
Main.cc: In function 'int main()':
Main.cc:5:10: error: 'n' was not declared in this scope
cin>>n;
^
Main.cc:16:1: error: expected '}' at end of input
}
^