/in/foo.cc: In function 'void dfs(int)':
/in/foo.cc:9:24: warning: array subscript is above array bounds [-Warray-bounds]
F[x][0]=F[x][1]=F[x][2]=0;
~~~~~~^
/in/foo.cc:15:43: warning: array subscript is above array bounds [-Warray-bounds]
F[x][2]+=min(F[s[x][i]][0],F[s[x][i]][1]);
^
/in/foo.cc:15:10: warning: array subscript is above array bounds [-Warray-bounds]
F[x][2]+=min(F[s[x][i]][0],F[s[x][i]][1]);
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/in/foo.cc: In function 'void init()':
/in/foo.cc:23:24: warning: array subscript is above array bounds [-Warray-bounds]
F[0][0]=F[0][1]=F[0][2]=0;
~~~~~~^