Dijkstra's Algo

Can someone tell me what is wrong with my code here: https://ideone.com/VdXkFp

Thanks in advance

You can refer this video
It is very well explained along with the code

https://ide.codingblocks.com/s/3059

You can refer this for code