I wrote this code to simply read the number of vertices ‘n’ and edges ‘e’. I also read information about the e edges. Each edge is also given a cost. when i run it, it says the error is in line 26.
Can some one explain whats the problem ?
The code can be found here
Thanks in advance.