Getting wrong answer


please help in debbuging

Line 9 should be adj[y].push_back(make_pair(x,w));