Single source shortest path using bfs

sir why i am getting wrong output

sir please reply why my code is not giving me correct output