railway.java:1: error: illegal character: '#'
#include <bits/stdc++.h>
^
railway.java:1: error: class, interface, or enum expected
#include <bits/stdc++.h>
^
railway.java:5: error: illegal character: '#'
#define int long long
^
railway.java:5: error: class, interface, or enum expected
#define int long long
^
railway.java:6: error: illegal character: '#'
#define mp make_pair
^
railway.java:7: error: illegal character: '#'
#define ii pair <int,int>
^
railway.java:11: error: class, interface, or enum expected
int n , m , k , u , v , P , T , Roto , in[N] , d[N] , x[N] , dp[N] , p[N][Lg] , cnt[N];
^
railway.java:12: error: class, interface, or enum expected
vector <ii> adj[N];
^
railway.java:13: error: class, interface, or enum expected
vector <int> rt , qu[N];
^
railway.java:15: error: class, interface, or enum expected
void dfs(int u){
^
railway.java:17: error: class, interface, or enum expected
for (int i = 1 ; i < Lg ; i ++) p[u][i] = p[p[u][i-1]][i-1];
^
railway.java:17: error: class, interface, or enum expected
for (int i = 1 ; i < Lg ; i ++) p[u][i] = p[p[u][i-1]][i-1];
^
railway.java:17: error: class, interface, or enum expected
for (int i = 1 ; i < Lg ; i ++) p[u][i] = p[p[u][i-1]][i-1];
^
railway.java:18: error: class, interface, or enum expected
for (auto i : adj[u]) if (i.first != p[u][0])
^
railway.java:21: error: class, interface, or enum expected
dfs(i.first);
^
railway.java:22: error: class, interface, or enum expected
}
^
railway.java:27: error: class, interface, or enum expected
for (int i = Lg - 1 ; i >= 0 ; i --) if (d[p[u][i]] >= d[v]) u = p[u][i];
^
railway.java:27: error: class, interface, or enum expected
for (int i = Lg - 1 ; i >= 0 ; i --) if (d[p[u][i]] >= d[v]) u = p[u][i];
^
railway.java:27: error: class, interface, or enum expected
for (int i = Lg - 1 ; i >= 0 ; i --) if (d[p[u][i]] >= d[v]) u = p[u][i];
^
railway.java:28: error: class, interface, or enum expected
if (u == v) return u;
^
railway.java:29: error: class, interface, or enum expected
for (int i = Lg - 1 ; i >= 0 ; i --) if (p[u][i] != p[v][i]) u = p[u][i] , v = p[v][i];
^
railway.java:29: error: class, interface, or enum expected
for (int i = Lg - 1 ; i >= 0 ; i --) if (p[u][i] != p[v][i]) u = p[u][i] , v = p[v][i];
^
railway.java:29: error: class, interface, or enum expected
for (int i = Lg - 1 ; i >= 0 ; i --) if (p[u][i] != p[v][i]) u = p[u][i] , v = p[v][i];
^
railway.java:30: error: class, interface, or enum expected
return p[u][0];
^
railway.java:31: error: class, interface, or enum expected
}
^
railway.java:35: error: class, interface, or enum expected
}
^
railway.java:38: error: class, interface, or enum expected
for (int j = 0 ; j < (int)adj[u].size() ; j ++){
^
railway.java:38: error: class, interface, or enum expected
for (int j = 0 ; j < (int)adj[u].size() ; j ++){
^
railway.java:40: error: class, interface, or enum expected
if (v == p[u][0]) continue;
^
railway.java:41: error: class, interface, or enum expected
calc(v) , cnt[i] = dp[v] , dp[u] += dp[v];
^
railway.java:42: error: class, interface, or enum expected
}
^
railway.java:48: error: class, interface, or enum expected
cin >> n >> m >> k;
^
railway.java:49: error: class, interface, or enum expected
for (int i = 1 ; i < n ; i ++) cin >> u >> v , adj[u].push_back(mp(v,i)) , adj[v].push_back(mp(u,i));
^
railway.java:49: error: class, interface, or enum expected
for (int i = 1 ; i < n ; i ++) cin >> u >> v , adj[u].push_back(mp(v,i)) , adj[v].push_back(mp(u,i));
^
railway.java:49: error: class, interface, or enum expected
for (int i = 1 ; i < n ; i ++) cin >> u >> v , adj[u].push_back(mp(v,i)) , adj[v].push_back(mp(u,i));
^
railway.java:51: error: class, interface, or enum expected
dfs(1);
^
railway.java:52: error: class, interface, or enum expected
int cn = 1;
^
railway.java:53: error: class, interface, or enum expected
for (int i = 1 ; i <= m ; i ++){
^
railway.java:53: error: class, interface, or enum expected
for (int i = 1 ; i <= m ; i ++){
^
railway.java:53: error: class, interface, or enum expected
for (int i = 1 ; i <= m ; i ++){
^
railway.java:55: error: class, interface, or enum expected
cn &= x[i] == 2;
^
railway.java:56: error: class, interface, or enum expected
qu[i].resize(x[i]);
^
railway.java:57: error: class, interface, or enum expected
for (int j = 0 ; j < x[i] ; j ++) cin >> qu[i][j];
^
railway.java:57: error: class, interface, or enum expected
for (int j = 0 ; j < x[i] ; j ++) cin >> qu[i][j];
^
railway.java:57: error: class, interface, or enum expected
for (int j = 0 ; j < x[i] ; j ++) cin >> qu[i][j];
^
railway.java:58: error: class, interface, or enum expected
sort(qu[i].begin() , qu[i].end() , cmp);
^
railway.java:59: error: class, interface, or enum expected
}
^
railway.java:62: error: class, interface, or enum expected
for (int i = 1 ; i <= m ; i ++){
^
railway.java:62: error: class, interface, or enum expected
for (int i = 1 ; i <= m ; i ++){
^
railway.java:64: error: class, interface, or enum expected
P = __lca(u,v);
^
railway.java:65: error: class, interface, or enum expected
dp[u] ++ , dp[v] ++;
^
railway.java:66: error: class, interface, or enum expected
dp[P] --;
^
railway.java:67: error: class, interface, or enum expected
}
^
railway.java:69: error: class, interface, or enum expected
for (int i = 1 ; i < n ; i ++) if (cnt[i] >= k) rt.push_back(i);
^
railway.java:69: error: class, interface, or enum expected
for (int i = 1 ; i < n ; i ++) if (cnt[i] >= k) rt.push_back(i);
^
railway.java:69: error: class, interface, or enum expected
for (int i = 1 ; i < n ; i ++) if (cnt[i] >= k) rt.push_back(i);
^
railway.java:70: error: class, interface, or enum expected
cout << rt.size() << '\n';
^
railway.java:71: error: class, interface, or enum expected
sort(rt.begin() , rt.end());
^
railway.java:72: error: class, interface, or enum expected
for (auto u : rt) cout << u << ' ';
^
railway.java:73: error: class, interface, or enum expected
return 0;
^
railway.java:74: error: class, interface, or enum expected
}
^
railway.java:76: error: class, interface, or enum expected
for (int i = 1 ; i <= m ; i ++){
^
railway.java:76: error: class, interface, or enum expected
for (int i = 1 ; i <= m ; i ++){
^
railway.java:78: error: class, interface, or enum expected
for (int j = 1 ; j < x[i] ; j ++){
^
railway.java:78: error: class, interface, or enum expected
for (int j = 1 ; j < x[i] ; j ++){
^
railway.java:78: error: class, interface, or enum expected
for (int j = 1 ; j < x[i] ; j ++){
^
railway.java:80: error: class, interface, or enum expected
dp[qu[i][j]] ++ , dp[P] --;
^
railway.java:81: error: class, interface, or enum expected
if (d[Roto] > d[P]) dp[Roto] ++ , dp[P] -- , Roto = P;
^
railway.java:82: error: class, interface, or enum expected
}
^
railway.java:86: error: class, interface, or enum expected
for (int i = 1 ; i < n ; i ++) if (cnt[i] >= k) rt.push_back(i);
^
railway.java:86: error: class, interface, or enum expected
for (int i = 1 ; i < n ; i ++) if (cnt[i] >= k) rt.push_back(i);
^
railway.java:86: error: class, interface, or enum expected
for (int i = 1 ; i < n ; i ++) if (cnt[i] >= k) rt.push_back(i);
^
railway.java:87: error: class, interface, or enum expected
cout << rt.size() << '\n';
^
railway.java:88: error: class, interface, or enum expected
sort(rt.begin() , rt.end());
^
railway.java:89: error: class, interface, or enum expected
for (auto u : rt) cout << u << ' ';
^
railway.java:91: error: class, interface, or enum expected
return 0;
^
railway.java:92: error: class, interface, or enum expected
}
^
77 errors