Hello codeforces , I have recently started learning BFS/DFS . and I tried solving following problem : [Uva 10653](http://uva.onlinejudge.org/index.php?option=onlinejudge&page=show_problem&problem=1594)↵
and ↵
[My code](https://l.facebook.com/l.php?u=https%3A%2F%2Fpaste.ubuntu.com%2F26228785%2F&h=ATMxHURvx340dre_6dUoI4quTLD1ikPi-xoSX2_NZHbWNxZKJpb1zdNHvVaXw0yD1iDMe6MaWQDxHthLKVxHKA1tbbN5PabM7dYlJpjcieFYSUhl4IxCV2K4g_7F6QiT5BC8mg)↵
↵
please someone help me debug my problem
and ↵
[My code](https://l.facebook.com/l.php?u=https%3A%2F%2Fpaste.ubuntu.com%2F26228785%2F&h=ATMxHURvx340dre_6dUoI4quTLD1ikPi-xoSX2_NZHbWNxZKJpb1zdNHvVaXw0yD1iDMe6MaWQDxHthLKVxHKA1tbbN5PabM7dYlJpjcieFYSUhl4IxCV2K4g_7F6QiT5BC8mg)↵
↵
please someone help me debug my problem