OUTPUT IS CORRECT BUT GETTING WRONG ANSWER DURING SUBMISSION

http://discuss.codechef.com/problems/TWTCLOSE
#include<stdio.h>
#include<string.h>
int main()
{
int n,k,click=1,count=0,i,tweetNo;
scanf(“%d%d”,&n,&k);
int tweet[1000];
char str[10];
for(i=1;i<=n;i++)
tweet[i]=0;
while(click<=k)
{
scanf(“%s”,str);
if(strcmp(str,“CLEARALL”)==0)
{
for(i=1;i<=n;i++)
tweet[i]=0;
count=0;
}
else
{
scanf(“%d”,&tweetNo);
if(tweet[tweetNo]==0)
{
tweet[tweetNo]=1;
for(i=1;i<=n;i++)
{
if(tweet[i]==1)
count+=1;
}
}
else if(tweet[tweetNo]==1)
{
tweet[tweetNo]=0;
for(i=1;i<=n;i++)
{
if(tweet[i]==1)
count+=1;
}
}
}
printf(“%d”,count);
click++;
count=0;
printf(“\n”);
}
return 0;
}

You are comparing the string with “CLEARALL” instead of “CLOSEALL” , read the question carefully :confused:

thank you!!