#include "race.h"
#include <bits/stdc++.h>
#define jizz ios::sync_with_stdio(0),cin.tie(0),cout.tie(0);
#define pb push_back
#define ET cout << "\n"
#define MEM(i,j) memset(i,j,sizeof i)
#define F first
#define S second
#define MP make_pair
#define ALL(v) v.begin(),v.end()
#define DB(a,s,e) {for(int i=s;i<e;++i) cout << a[i] << " ";ET;}
using namespace std;
typedef long long ll;
typedef pair<int,int> pii;
typedef pair<ll,ll> pll;
vector<pll> G[200005];
const ll INF=1e9;
ll ans=INF,k;
void dfs(ll u,ll f,ll d,ll r)
{
if(r>ans||d>k) return ;
if(d==k)
return ans=r,void();
for(auto i:G[u])
if(i.F!=f)
dfs(i.F,u,d+i.S,r+1);
}
int best_path(int N, int K, int H[][2], int L[])
{
k=K;
for(int i=0;i<N-1;++i)
G[H[i][0]].pb(MP(H[i][1],L[i])),G[H[i][1]].pb(MP(H[i][0],L[i]));
for(int i=0;i<N;++i)
dfs(i,i,0,0);
if(ans==INF) return -1;
return ans;
}
Compilation message
garden.cpp:1:10: fatal error: race.h: No such file or directory
#include "race.h"
^~~~~~~~
compilation terminated.