I am getting TLE in BFS-Shortes Path on Hacker Blocks. link to the problem : https://hack.codingblocks.com/contests/c/537/763
Link to my code is: https://paste.ofcode.org/aKHVsMeF8RtQTvKUmmymRT
Please help me by suggesting how can I modify my solution to get it accepted.
Thanks.