Submission #1190573

#TimeUsernameProblemLanguageResultExecution timeMemory
1190573AmrRarest Insects (IOI22_insects)C++20
Compilation error
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});

}

Compilation message (stderr)

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