I am trying to solve a bfs [problem](https://www.spoj.com/problems/QUEEN/en/). But i am getting WA.First I try to find twhat's the wrong in my code without taking any help,then i have used [SPOJ Toolkit](http://spojtoolkit.com/test/QUEEN) with the [available test case](http://spojtoolkit.com/history/QUEEN) 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.](https://pastebin.com/8HArwajr) ↵
↵
Help please to find out why i'm getting WA.↵
↵
Thank you advanced :)
↵
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.](https://pastebin.com/8HArwajr) ↵
↵
Help please to find out why i'm getting WA.↵
↵
Thank you advanced :)