제출 #1344085

#제출 시각아이디문제언어결과실행 시간메모리
1344085mxhrvsSocial Engineering (EGOI22_socialengineering)C++20
컴파일 에러
0 ms0 KiB
#include<bits/stdc++.h>
#include "social.h" 

using namespace std;

const int MAXN = 200005;
vector<int> adj[MAXN];
int match[MAXN], p[MAXN], base[MAXN], q[MAXN];
bool used[MAXN], blossom[MAXN];

int lca(int a, int b, int n) {
    vector<bool> used_lca(n + 1, false);
    while (true) {
        a = base[a];
        used_lca[a] = true;
        if (match[a] == 0) break;
        a = p[match[a]];
    }
    while (true) {
        b = base[b];
        if (used_lca[b]) return b;
        b = p[match[b]];
    }
}

void SocialEngineering(int n, int m, vector<pair<int, int>> edges) {
    for (auto e : edges) {
        adj[e.first].push_back(e.second);
        adj[e.second].push_back(e.first);
    }

    while (true) {
        int v = GetMove(); 
        if (v == 0) break;
        
        int partner = match[v]; 
        MakeMove(partner);
    }
}

컴파일 시 표준 에러 (stderr) 메시지

Main.cpp:2:10: fatal error: social.h: No such file or directory
    2 | #include "social.h"
      |          ^~~~~~~~~~
compilation terminated.