| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 78614 | 刘宸溪 | 19选班长 | C++ | Compile Error | 0 MS | 0 KB | 286 | 2024-06-23 09:21:38 |
#include <iostream> #include <iomanip> using namespace std; int main() { int n,s; cin>>n; int a[100] = {0}; for(int i=1;i<=n*3;i++){ cin>>s; a[s]++; } int mxx = 0,m = 0; for(int i=1;i<=n;i++){ if(mxx < a[i]){ mxx = a[i]m = i; } } cout<<m; }
Main.cc: In function 'int main()':
Main.cc:15:14: error: expected ';' before 'm'
mxx = a[i]m = i;
^