/in/foo.cc: In function 'void js(int)':
/in/foo.cc:11:18: warning: array subscript 4 is above array bounds of 'int [4]' [-Warray-bounds]
11 | gra[xb][4]=b*2;
| ~~~~~~~~~^
/in/foo.cc:3:9: note: while referencing 'gra'
3 | int n,k,gra[1000005][4],xb,visited[1000005],num,flag,ok,ans=1;
| ^~~
In function 'void js(int)',
inlined from 'void bfs(int)' at /in/foo.cc:15:4:
/in/foo.cc:11:18: warning: array subscript 4 is above array bounds of 'int [4]' [-Warray-bounds]
11 | gra[xb][4]=b*2;
| ~~~~~~~~~^
/in/foo.cc: In function 'void bfs(int)':
/in/foo.cc:3:9: note: while referencing 'gra'
3 | int n,k,gra[1000005][4],xb,visited[1000005],num,flag,ok,ans=1;
| ^~~
/in/foo.cc:19:80: warning: array subscript 4 is above array bounds of 'int [4]' [-Warray-bounds]
19 | com1.push(gra[xb][2]),com1.push(gra[xb][3]),com1.push(gra[xb][4]);
| ~~~~~~~~~^
/in/foo.cc:3:9: note: while referencing 'gra'
3 | int n,k,gra[1000005][4],xb,visited[1000005],num,flag,ok,ans=1;
| ^~~
/in/foo.cc:20:100: warning: array subscript 4 is above array bounds of 'int [4]' [-Warray-bounds]
20 | visited[gra[xb][1]]=1,visited[gra[xb][2]]=1,visited[gra[xb][3]]=1,visited[gra[xb][4]]=1;
| ~~~~~~~~~^
/in/foo.cc:3:9: note: while referencing 'gra'
3 | int n,k,gra[1000005][4],xb,visited[1000005],num,flag,ok,ans=1;
| ^~~
In function 'void js(int)',
inlined from 'void bfs(int)' at /in/foo.cc:27:6:
/in/foo.cc:11:18: warning: array subscript 4 is above array bounds of 'int [4]' [-Warray-bounds]
11 | gra[xb][4]=b*2;
| ~~~~~~~~~^
/in/foo.cc: In function 'void bfs(int)':
/in/foo.cc:3:9: note: while referencing 'gra'
3 | int n,k,gra[1000005][4],xb,visited[1000005],num,flag,ok,ans=1;
| ^~~