제출 #1068718

#제출 시각아이디문제언어결과실행 시간메모리
1068718TheQuantiX모임들 (IOI18_meetings)C++17
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h> #include "doll.h" using namespace std; using ll = long long; constexpr ll INF = 1000000000 - 1; ll nxt = -2; void create_circuit(int M, vector<int> A) { ll NN = A.size(); A.push_back(-1); ll N = A.size(); ll ex = 1; while (ex < N) { ex *= 2; } while (A.size() < ex) { A.push_back(-1); } N = A.size(); A[N - 1] = 0; vector<int> C, X, Y; C.push_back(-1); for (int i = 0; i < M; i++) { C.push_back(-1); } X.resize(N - 1); Y.resize(N - 1); for (int i = 1; i < N / 2; i++) { X[i - 1] = -(i * 2); Y[i - 1] = -(i * 2 + 1); } for (int i = N / 2; i <= N - 1; i++) { ll x = i - N / 2; ll e = 0; for (int j = 1; j < N / 2; j *= 2) { e *= 2; e += (x & 1); x /= 2; } // cout << i - N / 2 << ' ' << e << '\n'; X[i - 1] = A[e]; Y[i - 1] = A[e + N / 2]; } // for (int i = 0; i < X.size(); i++) { // cout << X[i] << ' ' << Y[i] << '\n'; // } if (X.size() > NN * 2) { exit(-1); // C[0] = 0; } answer(C, X, Y); }

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

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