Compilation issues

Can you please point out each error in my code. Comment the errors and debug it as well.
link to my code - https://ide.codingblocks.com/s/268687

Use make pair in pairing y,r in connect function. List of pairs should be there while allocating dynamically in graph constructor.

errors not resolved . please debug it.
link to my code - https://ide.codingblocks.com/s/268687

Refer this:

wrong output obtained for sample test case. I did the dry run but not able to find out the error. please debug my code. link to my code - https://ide.codingblocks.com/s/268687

not able to figure out the error. please edit my code. https://ide.codingblocks.com/s/268687

After line 46 in ur code u should write dist[element]=distance;