Submission #1068324

# Submission time Handle Problem Language Result Execution time Memory
1068324 2024-08-21T09:16:52 Z vjudge1 COVID tests (CEOI24_covid) C++14
Compilation error
0 ms 0 KB
#include <bits/stdc++.h>

using namespace std;

bool test_students(vector<bool> mask);

vector<bool> find_positive() {
    int n, p, t;
    cin >> n >> p >> t;
    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;
}

Compilation message

/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu/crt1.o: in function `_start':
(.text+0x24): undefined reference to `main'
/usr/bin/ld: /tmp/ccSFTlWU.o: in function `find_positive()':
Main.cpp:(.text+0x26e): undefined reference to `test_students(std::vector<bool, std::allocator<bool> >)'
collect2: error: ld returned 1 exit status