WA in KINGCON

I was trying to solve this simple problem but unfortunately my answer isnt coming right http://www.codechef.com/problems/KINGCON. Here is my code http://ideone.com/1G9qVs . I am trying to implment the standard algorithm for articulation points.

Hey anyone please look into it , i have tried my level best and i cant find any bugs.

Admin since no one is able to help me and i have tried so many times could u please point my mistake.Or send me the test cases for this question only to my email id.
I request you since only then will i be able to improve.

did u get some testcases??since i m also getting wrong answer…can u plz help me… Here is my solution http://www.codechef.com/viewsolution/5373663

here is another modified try http://www.codechef.com/viewsolution/3136541 Could anyone please help me