Discrepancies in the Voters List- SIGSEGV error!! Please help

Discrepancies in the Voters List:
link text

Can any body please tell me why am I getting SIGSEGV error in this code:
link text

The code runs absolutely fine on ideone:
link text

I’ve checked my code almost ten times. I’m not accessing array index out of bounds nor I think I’m using too much memory or leaving variables uninitialised. Please help!

Ohh! I got it. The size was going as high as 1,00,000 in my code as according to constraints given in problem. So declared the vectors globally and yeah!! AC!!

//