답안 #1082082

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
1082082 2024-08-30T16:54:45 Z logangd Detecting Molecules (IOI16_molecules) C++14
컴파일 오류
0 ms 0 KB
#include <cstdio>
#include <vector>
#include <cassert>

#include "molecules.cpp"

int main() {
    int n, l, u;
    assert(3 == scanf("%d %d %d", &n, &l, &u));
    std::vector<int> w(n);
    for (int i = 0; i < n; i++)
        assert(1 == scanf("%d", &w[i]));
    std::vector<int> result = find_subset(l, u, w);


    printf("%d\n", (int)result.size());
    for (int i = 0; i < (int)result.size(); i++)
        printf("%d%c", result[i], " \n"[i == (int)result.size() - 1]);
}

Compilation message

molecules.cpp:5:10: fatal error: molecules.cpp: No such file or directory
    5 | #include "molecules.cpp"
      |          ^~~~~~~~~~~~~~~
compilation terminated.