[algogeeks] Need help

2012-04-13 Thread Rishabh Jain
http://www.codechef.com/problems/VOTERS Here is my solution Dont know y i m getting Runtime error..plz check.. #includecstdio #includealgorithm using namespace std; int main() { int a,b,c,x[50001],i; int s[11],count; s[11]=0; count=0;

Re: [algogeeks] Re: Need help

2012-04-13 Thread Rishabh Jain
@ raminder.. its clear that number cannot be specified in same list twice..even asked in a comment from admin. On 4/13/12, Ramindar Singh ramin...@gmail.com wrote: You have not taken care of the test case where the number is repeated more than once in a single list and is not there in other

Re: [algogeeks] Re: Need help

2012-04-13 Thread Rishabh Jain
@ kuldeep thanks...that wrked..bt still cud nt understand that what difference making that global made.. On 4/13/12, Rishabh Jain rishabh@gmail.com wrote: @ raminder.. its clear that number cannot be specified in same list twice..even asked in a comment from admin. On 4/13/12, Ramindar