BFS(Shortest Path Problem)

My code passed one test case and failed at second.
please tell where I went wrong
code - https://ide.codingblocks.com/s/194030

@Viru31 There were minor errors in your code, like adding a 2-way edge, please see.


If you have any further queries please feel free to ask.

@Viru31 if you don’t have any further queries please mark the doubt as resolved.

Thank you @sdevwrat bhaiyya