jail.cpp: In function 'void dfs(int, int)':
jail.cpp:23:15: error: 'e' was not declared in this scope
23 | for(int u:e[v])if(u!=pr)dep[u]=dep[v]+1,dfs(u,v);
| ^
jail.cpp: In function 'bool on(int, int, int)':
jail.cpp:35:50: error: 'in' was not declared in this scope; did you mean 'on'?
35 | bool on(int x,int y,int z){int l=lca(x,y);return in(l,z)&&in(z,x)&&in();}
| ^~
| on
jail.cpp: In function 'void solve()':
jail.cpp:38:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
38 | scanf("%d",&n);
| ~~~~~^~~~~~~~~
jail.cpp:41:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
41 | scanf("%d",&m);
| ~~~~~^~~~~~~~~
jail.cpp:42:31: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
42 | for(int i=1;i<=m;i++)scanf("%d%d",&s[i],&t[i]);
| ~~~~~^~~~~~~~~~~~~~~~~~~~
jail.cpp: In function 'int main()':
jail.cpp:48:16: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
48 | int t;scanf("%d",&t);
| ~~~~~^~~~~~~~~