Helllp please my program terminates in case b and c how can I fix this

Case B doesn’t work and C won’t work as well , can someone help me to make it work (the program should calculate the execution time for the dijkstra and BellmanFord functions) thank u :blush:

Please do write your code in between pair of three back ticks, like this

Hello, World!

And explain the problem you’re facing.

hello ,sorry, I have provided a picture , because it shows more and I have written my problem at the beginning because the code is quite long to be structured in the boxes only