0_0_37973060_26547.cpp:27:1: error: 'vi' does not name a type
vi cnt[N];
^
0_0_37973060_26547.cpp:28:1: error: 'vi' does not name a type
vi edge[N];
^
0_0_37973060_26547.cpp: In function 'void dfs(int)':
0_0_37973060_26547.cpp:32:5: error: 'cnt' was not declared in this scope
cnt[val].pb(2 * u);
^
0_0_37973060_26547.cpp:35:57: error: 'all' was not declared in this scope
ans[u] = cnt[x].size() - (upper_bound(all(cnt[x]), u) - cnt[x].begin());
^
0_0_37973060_26547.cpp:37:18: error: 'edge' was not declared in this scope
for(auto t : edge[u]) dfs(t);
^
0_0_37973060_26547.cpp: In function 'void solve()':
0_0_37973060_26547.cpp:43:44: error: 'edge' was not declared in this scope
for(int i = 0; i <= n; i++) ne[i] = 0, edge[i].clear();
^
0_0_37973060_26547.cpp:48:9: error: 'edge' was not declared in this scope
edge[j].pb(i);
^
0_0_37973060_26547.cpp:50:5: error: 'edge' was not declared in this scope
edge[0].pb(1);
^
|