제출 #858673

#제출 시각아이디문제언어결과실행 시간메모리
858673thinknoexitRarest Insects (IOI22_insects)C++17
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h>
#include "insect.h"
using namespace std;
using ll = long long;
bool ch[2020];
int min_cardinality(int n) {
    int mn = n;
    for (int i = 0;i < n;i++) {
        if (ch[i]) continue;
        ch[i] = 1;
        int cnt = 1;
        move_inside(i);
        for (int j = i + 1;j < n;j++) {
            move_inside(j);
            if (press_button() == 2) {
                cnt++;
                ch[j] = 1;
            }
            move_outside(j);
        }
        mn = min(mn, cnt);
    }
    return mn;
}

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

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