codeLink : https://ide.codingblocks.com/s/202469
above is my code , my approach basically involves making new temple in every city if construction cost is less than repair, if not so, making one temple in each city and connecting neighbours of that node via roads calculating the construction cost at the same time, using bfs
codeLink : https://ide.codingblocks.com/s/202469
please correct my code given above(mark modified wherever correction is made) and specify my error