/in/foo.cc: In function 'void dij(int)':
/in/foo.cc:27:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j=0;j<G1[w].size();j++)
~^~~~~~~~~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:71:20: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
if((a[i]^a[j])&1==1&&(dd==a[i]||dd==a[j]))
~^~~
/in/foo.cc:40:33: warning: iteration 10010 invokes undefined behavior [-Waggressive-loop-optimizations]
for(int i=0;i<=MAXN;i++)dist[i]=0x7f7f7f7f;
~~~~~~~^~~~~~~~~~~
/in/foo.cc:40:15: note: within this loop
for(int i=0;i<=MAXN;i++)dist[i]=0x7f7f7f7f;
~^~~~~~
/in/foo.cc:39:30: warning: iteration 10010 invokes undefined behavior [-Waggressive-loop-optimizations]
for(int i=0;i<=MAXN;i++)f[i]=1;
~~~~^~
/in/foo.cc:39:15: note: within this loop
for(int i=0;i<=MAXN;i++)f[i]=1;
~^~~~~~
/in/foo.cc: In function 'void dij(int)':
/in/foo.cc:29:48: warning: 'w' may be used uninitialized in this function [-Wmaybe-uninitialized]
if(vis[G1[w][j]]==0 && dist[G1[w][j]]>dist[w]+G2[w][j])
~~~~~~^