Please help me in CHEFSQ

I am getting a wrong answer even when the logic of my code is same as other correct entries… please help
PRACTICE PROBLEMS - BEGINNER
CHEFSQ

      #include<stdio.h>
    int main()

{

	int T,N,F,i,j,count=0,temp;
	
	scanf("%d",&T);
	
	while(T--)
	{
		scanf("%d",&N);
		int a[N];
		for(i=0;i<N;i++)
		{
			scanf("%d",&a[i]);
		}
		
		scanf("%d",&F);
		int b[F];
		for(i=0;i<F;i++)
		{
			scanf("%d",&b[i]);
		}
		
		for(i=0;i<N;i++)
		{
			for(j=0;j<F;j++)
			{
				if(a[i]==b[j])
				{
					count++;
					break;
				}
			}
		}
		if(count==F)
		{
			printf("\nyes\n");
		}
		else
		{
			printf("\nno\n");
		}
	}
}

There are many errors in this solution

-First of all you have to print “Yes” or “No” not “yes” or “no”.

-The value of count has to be made zero everytime before starting the inner loop . It may happen that the first character matched at some point of time but not the rest but still the count will remain 1 and will be problematic for the actual answer.

  • Also it may happen that there is a break in the sequence according to your solution .