jail.cpp: In function 'void init()':
jail.cpp:39:49: error: expected ';' before 'for'
39 | for(int i=1;i<=120000;i++)g[i].clear(),dep[i]=0
| ^
| ;
40 | for(int i=1;i<=120000;i++)for(int j=0;j<20;j++)go[i][j]=0;
| ~~~
jail.cpp:40:14: error: 'i' was not declared in this scope
40 | for(int i=1;i<=120000;i++)for(int j=0;j<20;j++)go[i][j]=0;
| ^
jail.cpp:40:40: error: 'j' was not declared in this scope
40 | for(int i=1;i<=120000;i++)for(int j=0;j<20;j++)go[i][j]=0;
| ^
jail.cpp: In function 'void solve()':
jail.cpp:49:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
49 | init();scanf("%d",&n);
| ~~~~~^~~~~~~~~
jail.cpp:50:31: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
50 | for(int i=1,u,v;i<n;i++)scanf("%d%d",&u,&v),g[u].pb(v),g[v].pb(u);
| ~~~~~^~~~~~~~~~~~~~
jail.cpp:53:7: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
53 | scanf("%d",&m);
| ~~~~~^~~~~~~~~
jail.cpp:54:28: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
54 | for(int i=1;i<=m;i++)scanf("%d%d",&s[i],&t[i]);
| ~~~~~^~~~~~~~~~~~~~~~~~~~
jail.cpp: In function 'int main()':
jail.cpp:67:13: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
67 | int t;scanf("%d",&t);
| ~~~~~^~~~~~~~~