Help me in solving FIZZBUZZ2304 problem

My issue

what is run time error

My code

#include <stdio.h>

int main(void) {
	int t;
	scanf("%d",&t);
	while(t--)
	{
	    int n,x,k=0;
	    scanf("%d%d",&n,&x);
	    int arr[n];
	    for(int i=0;i<=n;i++)
	    {
	        scanf("%d",&arr[i]);
	    }
	    for(int i=0;i<=(n-x);i++)
	    
	    {
	        for(int j=i;j<(x+i);j++)
	        {
	            if(arr[j]%2!=0)
	            {
	                k++;
	                break;
	            }
	        }
	    }
	    printf("%d\n",k);
	}
	return 0;
}


Problem Link: FIZZBUZZ2304 Problem - CodeChef

Refer to this. It simply means that there is some error in the code, which is occurring in some specific test cases.