foo.cc: In function 'void bfs()':
foo.cc:40:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
40 | if(vis[tmp]) continue;vis[tmp]=1;Q.push(tmp);
| ^~
foo.cc:40:23: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
40 | if(vis[tmp]) continue;vis[tmp]=1;Q.push(tmp);
| ^~~
foo.cc:47:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
47 | if(vis[tmp])continue;vis[tmp]=1;Q.push(tmp);
| ^~
foo.cc:47:22: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
47 | if(vis[tmp])continue;vis[tmp]=1;Q.push(tmp);
| ^~~
foo.cc:60:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
60 | if(vis[tmp])continue;vis[tmp]=1;Q.push(tmp);
| ^~
foo.cc:60:22: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
60 | if(vis[tmp])continue;vis[tmp]=1;Q.push(tmp);
| ^~~
foo.cc: In function 'void Init()':
foo.cc:16:6: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
16 | scanf("%d",&n);
| ~~~~~^~~~~~~~~
foo.cc:18:6: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
18 | scanf("%d",&a[i]);t=a[i];
| ~~~~~^~~~~~~~~~~~
foo.cc: In function 'void Work()':
foo.cc:68:30: warning: iteration 100004 invokes undefined behavior [-Waggressive-loop-optimizations]
68 | for(int i=1;i<=MAXN;i++)fa[i]=i;
| ~~~~~^~
foo.cc:68:14: note: within this loop
68 | for(int i=1;i<=MAXN;i++)fa[i]=i;
| ~^~~~~~
[Hydro](https://hydro.ac)提供评测服务