Dijkstra's Algorithm problem

My code is giving correct output, but after submitting the code, it is showing wrong test case. Please Help !!