QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#397373#8549. The Gameucup-team992Compile Error//C++14458b2024-04-24 00:00:082024-04-24 00:00:08

Judging History

你现在查看的是最新测评结果

  • [2024-04-24 00:00:08]
  • 评测
  • [2024-04-24 00:00:08]
  • 提交

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';
      |                  ^~~~