답안 #1042831

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
1042831 2024-08-03T12:53:04 Z Zicrus Shortcut (IOI16_shortcut) C++17
컴파일 오류
0 ms 0 KB
#include <bits/stdc++.h>
#include "railroad.h"
using namespace std;

typedef long long ll;

ll plan_roller_coaster(vector<int> s, vector<int> t) {
    ll n = s.size();

    map<ll, ll> m;
    for (int i = 0; i < n; i++) {
        m[s[i]] = t[i];
    }

    ll cur = (*m.begin()).second;
    m.erase(m.begin());
    ll res = 0;
    while (!m.empty()) {
        auto iter = lower_bound(m.begin(), m.end(), pair<const ll, ll>(cur, 0));
        if (iter == m.end()) return 1;
        cur = (*iter).second;
        m.erase(iter);
    }
    return 0;
}

Compilation message

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