Can anyone help, getting wrong in SPOJ's road network problem?



I have been trying to solve the problem RDNWK - Road Network problem from spoj, and I am getting the wrong ans. I am not able to figure out what is wrong with my code. Can anyone help me with this. Here is the link to my code. The problem is based on Floyd Warshall’s algorithm.


@dushyant7917 @sfialok98 @chandubaba @shubhparekh @vijju123 @dushyant7917 @hemant_dhanuka @rpatni @vivek_1998299 @rohitthapliyal @the_extractor @baz__ @mathecodician @ritwikshanker @kauts_kanu

guys can you please look into this.