/in/foo.cc: In function 'int main()':
/in/foo.cc:70:9: warning: the address of 'int fnd(int)' will always evaluate as 'true' [-Waddress]
if(fnd) {printf("-1\n"); continue;}
^
/in/foo.cc:89:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < d[que[head]].size(); i+=2)
~~^~~~~~~~~~~~~~~~~~~~~
/in/foo.cc:103:33: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long long int' [-Wformat=]
printf("%d %d\n", cnt, dist[n]);
^