| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 148452 | 张晓冉 | 19选班长 | C++ | Compile Error | 0 MS | 0 KB | 333 | 2026-02-16 16:39:15 |
#include<bits/stdc++.h> using namespace std; int main() { int n; cin >> n; int a[n] = {0, 0, 0, 0, 0}; for (int i = 1; i <= n * 3; i++) { int b; cin >> b; a[b - 1]++; } int c = 0; for (int i = 1; i < n; i++) { if (a[i] > a[c]) { c = i; } } cout << c + 1; return 0;
Main.cc: In function 'int main()':
Main.cc:19:10: error: expected '}' at end of input
return 0;
^