| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 117327 | 李朋秦 | 19众数 | C++ | Compile Error | 0 MS | 0 KB | 461 | 2025-04-17 18:42:52 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int n,a[1000],m,max=0; cin>>n; for(int i=0;i<n;i++){ cin>>m; a[m]++; } for(int i=1;i<=1000;i++){ if(a[i]>a[max])max=1 } cout<<max; return 0; }
Main.cc: In function 'int main()':
Main.cc:16:5: error: expected ';' before '}' token
}
^