My code I giving correct output have tried my code on different compilers still in codechef it show

#include <stdio.h>

int main(void)
{
int t;
int a[7];
int count=0;
scanf("%d",&t);
for(int i=0; i<t; i++)
{
for(int i=0; i<7; i++){
scanf("%d",&a[i]);}
for(int i=0; i<7; i++){
if (a[i]==1){
count++;}
}
if(count>(7-count)){
printf(“Yes\n”);}
else{
printf(“No\n”);}
}

return 0;

}

Check the following update to your code.

Accepted

You should reset the variable count to zero at the end of the each test case after printing the Yes/No answer.