I am trying to solve a bfs problem. But i am getting WA.First I try to find that's the wrong in my code without taking any help,then i have used SPOJ Toolkit with the available test case to find mistake in my code.But i'm again fail :(
Of course there is a problem in my code that's why i am getting WA but i haven't found it. My code link: code link.
Help please to find out why i'm getting WA.
Thank you advanced :)