Https://ide.codingblocks.com/s/207551 this is my code link

why this is not running please tell sir. Distance is coming out to be zero .

@Adarshrajpandey You are not marking the nodes visited. Also unordered_map<int,int>dis; is empty initially so none of the nodes are assigned with value INTMAX . You have to do that with an array.