답안 #344337

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
344337 2021-01-05T14:09:39 Z juggernaut 도서관 (JOI18_library) C++14
컴파일 오류
0 ms 0 KB
#ifdef EVAL
#else
#include"grader.cpp"
#endif
#include"meetings.h"
#include<bits/stdc++.h>
using namespace std;
void add(int x,int y){
	if(x>y)swap(x,y);
	Bridge(x,y);
}
bool cmp(int l,int r){return Query(v[0],l,r)==l;}
void go(vector<int>v){
	if(v.size()<2)return;
	random_shuffle(v.begin(),v.end());
	map<int,vector<int>>m;
	m[v[0]].pb(v[0]);
	m[v[1]].pb(v[1]);
	vector<int>path;
	for(int i=2;i<v.size();i++){
		int x=Query(v[0],v[1],v[i]);
		if(!m.count(x)) path.pb(x);
		m[x].pb(v[i]);
	}
	sort(path.begin(),path.end(),cmp);
	int last=v[0];
	for(int x:path)add(last,x),last=x;
	add(last,v[1]);
	for(auto it:m)go(it.second);
}
void Solve(int n){
	srand(time(0));
	vector<int>all(n);
	iota(all.begin(),all.end(),0);
	Solve(all);
}

Compilation message

library.cpp:5:9: fatal error: meetings.h: No such file or directory
    5 | #include"meetings.h"
      |         ^~~~~~~~~~~~
compilation terminated.