help in a graph problem
in this problem why it gives me WA https://vjudge.net/problem/UVA-1265 My code: https://ideone.com/EK63NM