Submission #344337

#TimeUsernameProblemLanguageResultExecution timeMemory
344337juggernautLibrary (JOI18_library)C++14
Compilation error
0 ms0 KiB
#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 (stderr)

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