/in/foo.cc: In function 'void dfs(int)':
/in/foo.cc:11:8: warning: array subscript is above array bounds [-Warray-bounds]
f[v][1]=1;
~~~~~~^
/in/foo.cc:14:27: warning: array subscript is above array bounds [-Warray-bounds]
f[v][0]+=f[tree[v][i]][1];
~~~~~~~~~~~~~~~^
/in/foo.cc:15:16: warning: array subscript is above array bounds [-Warray-bounds]
f[v][1]+=min1(f[tree[v][i]][0],f[tree[v][i]][1]);
~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/in/foo.cc:15:50: warning: array subscript is above array bounds [-Warray-bounds]
f[v][1]+=min1(f[tree[v][i]][0],f[tree[v][i]][1]);
^
/in/foo.cc:15:10: warning: array subscript is above array bounds [-Warray-bounds]
f[v][1]+=min1(f[tree[v][i]][0],f[tree[v][i]][1]);
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:35:34: warning: array subscript is above array bounds [-Warray-bounds]
cout<<min1(f[root][0],f[root][1]);
^