Submission #1201931

#TimeUsernameProblemLanguageResultExecution timeMemory
1201931vahagngMagic Show (APIO24_show)C++20
Compilation error
0 ms0 KiB
#include <bits/stdc++.h>
using namespace std;

vector<pair<int,int>> Alice(){
    vector<pair<int,int>>res;
    int X = setN(5000);
    for(int i = 1; i <= 5000; i++){
        if(i == X) continue;
        res.push_back({X, i});
    }
    return res;
}
#include <bits/stdc++.h>
using namespace std;

long long Bob(vector<pair<int,int>>v){
    vector<int>cnt(5001);
    for(auto i : v){
        auto [u, v] = i;
        for(int j : {u, v}){
            cnt[j]++;
            if(cnt[j] == 2) return j;
        }
    }
}

Compilation message (stderr)

# 1번째 컴파일 단계

Alice.cpp: In function 'std::vector<std::pair<int, int> > Alice()':
Alice.cpp:6:13: error: 'setN' was not declared in this scope
    6 |     int X = setN(5000);
      |             ^~~~