제출 #1229011

#제출 시각아이디문제언어결과실행 시간메모리
1229011pumkinheadFeast (NOI19_feast)C++20
컴파일 에러
0 ms0 KiB
#include "stations.h"
#include <bits/stdc++.h>
using namespace std;
vector<int> label(int n, int k, vector<int> u, vector<int> v) {
	vector<vector<int>> graph(n);
	for(int i=0; i<n-1; i++){
		graph[u[i]].push_back(v[i]);
		graph[v[i]].push_back(u[i]);
	}
	vector<int> labels(n);
	int time = 0;
	function<void(int, int)> dfs = [&](int node, int parent){
		labels[node] = time++;
		for(int neigh : graph[node]){
			if(neigh == parent) continue;
			dfs(neigh, node);
		}
	};
	dfs(0, -1);
	return labels;
}
int find_next_station(int s, int t, vector<int> c) {
	if(t < s) return c[0];
	return *(upper_bound(c.begin(), c.end(), t)-1);
}

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

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