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");
}
}
}