| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 126886 | 何睿函 | 19买画笔 | C++ | Compile Error | 0 MS | 0 KB | 295 | 2025-07-22 13:47:07 |
#include<bits/stdc++.h> using namespace std; int main() { int n; cin >> n; int b[101] = {0}; for (int i = 0; i < 101; i++) { int x ; cin >> x; b[x]++; } int max = 1; for (int i = 2; i <= 101; i++) { if (a[i]%2!=0) { cout<<i; } } cout << max; return 0; }
Main.cc: In function 'int main()':
Main.cc:14:7: error: 'a' was not declared in this scope
if (a[i]%2!=0) {
^