제출 #530702

#제출 시각아이디문제언어결과실행 시간메모리
530702CyanmondDetecting Molecules (IOI16_molecules)C++17
컴파일 에러
0 ms0 KiB
#include "molesules.h" #include <bits/stdc++.h> template <typename T> using Vec = std::vector<T>; std::vector<int> find_subset(int L, int R, std::vector<int> W) { const int N = (int)W.size(); Vec<int> dp(R + 1, N); dp[0] = -1; for (int i = 0; i < N; ++i) { for (int j = 0; j <= R - W[i]; ++j) { if (dp[j] == N) continue; const int next_w = j + W[i]; if (dp[next_w] == N) dp[next_w] = i; } } for (int answer_w = L; answer_w <= R; ++answer_w) { if (dp[answer_w] == -1) continue; Vec<int> answer; int now = answer_w; while (now != 0) { const int new_id = dp[now]; answer.push_back(new_id); now -= W[new_id]; } return answer; } return {}; }

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

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