/in/foo.cc: In function 'int main()':
/in/foo.cc:48:50: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
for(int i=1;i<=n;i++){v[i].clear(); vis[i]=d[i]=0;}
~~~~^~
/in/foo.cc:60:4: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if(vis[t.se])continue; vis[t.se]=1;
^~
/in/foo.cc:60:27: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
if(vis[t.se])continue; vis[t.se]=1;
^~~
/in/foo.cc:68:8: warning: 'pos' may be used uninitialized in this function [-Wmaybe-uninitialized]
wri(n-pos+1); for(int i=pos;i<=n;i++)wri(q[i]); puts("");
~^~~~