getting wrong answer MAXCOUNT on codechef but getting correct answer on ideone please help

http://ideone.com/raDufS

getting wrong answer MAXCOUNT on codechef but getting correct answer on ideone please help

You have misused the memset() operator. Please, check that once.

And remove the endl after ans.

Thanks.

1 Like

@harsha2904 thanks a lot finally got accepted