제출 #1190573

#제출 시각아이디문제언어결과실행 시간메모리
1190573Amr드문 곤충 (IOI22_insects)C++20
컴파일 에러
0 ms0 KiB
#include "islands.h"

#include <variant>
#include <vector>

#include<bits/stdc++.h>
using namespace std;

std::variant<bool, std::vector<int>> find_journey( int N, int M, std::vector<int> U, std::vector<int> V) {

    if(N==2)
    {
        int a, b;
        for(int i = 0; i < M; i++) if(U[i]==0) a++; else b++;
        if(min(a,b)>=2) return vector<int>({0,1,0,1,0,1,0,1});
        else return false;
    }

    return vector<int>({0,1,2,1,0,1,2,1});

}

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

insects.cpp:1:10: fatal error: islands.h: No such file or directory
    1 | #include "islands.h"
      |          ^~~~~~~~~~~
compilation terminated.