QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#397373 | #8549. The Game | ucup-team992 | Compile Error | / | / | C++14 | 458b | 2024-04-24 00:00:08 | 2024-04-24 00:00:08 |
Judging History
answer
//
// Created by codicon on 4/15/2024 at 9:45 AM.
//
#include <bits/stdc++.h>
using namespace std;
int main() {
cin.tie(0)->sync_with_stdio(0);
int t; cin >> t;
while (t--) {
int n; cin >> n;
set<int> distinct;
for (int i = 0; i < 2*n; i++) {
int a; cin >> a;
distinct.insert(a);
}
cout << (size(distinct) <= n ? "Qingyu" : "Kevin") << '\n';
}
}
詳細信息
answer.code: In function ‘int main()’: answer.code:23:18: error: ‘size’ was not declared in this scope 23 | cout << (size(distinct) <= n ? "Qingyu" : "Kevin") << '\n'; | ^~~~