제출 #1068338

#제출 시각아이디문제언어결과실행 시간메모리
1068338vjudge1COVID tests (CEOI24_covid)C++14
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h>

using namespace std;

bool test_students(vector<bool> mask);

int n, p, t;

vector<bool> find_positive() {
    vector<bool>tmp(n, 0);
    vector<bool>ans;
    for(int i=0; i<n; ++i) {
        tmp[i] = 1;
        bool x = test_students(tmp);
        ans.push_back(x);
        tmp[i] = 0;
    }
    return ans;
}

int main() {
    cin >> n >> p >> t;
}

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

/usr/bin/ld: /tmp/ccglUXoA.o: in function `find_positive()':
Main.cpp:(.text+0x23e): undefined reference to `test_students(std::vector<bool, std::allocator<bool> >)'
collect2: error: ld returned 1 exit status