why its showing wrong answer while submitting the code of SNCKQL19 problem code QABC?

#include <stdio.h>
int main()
{
int t;
scanf("%d",&t);
while(t–)
{
long long int n,i,diff=0;
long long int a[100000],b[100000];
scanf("%lld",&n);
for(i=1;i<=n;i++)
{
scanf("%lld",&a[i]);
}
for(i=1;i<=n;i++)
{
scanf("%lld",&b[i]);
}
for(i=1;i<=(n-2);i++)
{
if(b[i]<a[i])
{
printf(“TAK\n”);
break;
}
else if(a[i]==b[i])
{
continue;
}
else if(b[i]>a[i])
{
diff=b[i]-a[i];
a[i]=a[i]+diff;
a[i+1]=a[i+1]+2diff;
a[i+2]=a[i+2]+3
diff;
}

	}
	if((a[n]==b[n])&&(a[n-1]==b[n-1]))
	{
		printf("TAK\n");
	}
	else
	{
		printf("NIE\n");
	}
}
return 0;

}

Refrain from sharing codes or asking questions from a live contest.

since n<=10^5,your array size should be 10^5+1