Help me in solving INSTDUM problem

My issue

My code

#include <iostream>
using namespace std;

int main() {
	// your code goes here
	int t;
	cin>>t;
	for(int i=1;i<t+1;i++){
	 int n;
	 cin>>n;
	 int arr[n];
	 int runs=0;
	 int count=0;
	 for(int j=0;j<n;j++){
	     cin>>arr[j];
	 }
	 for(int k=0;k<n;k++){
	     runs=runs+arr[k];
	     if(((runs/(k+1))*100)==100){
	         count++;
	     }
	   }
	   cout<<count<<endl;
	}
	return 0;
}

Problem Link: INSTDUM Problem - CodeChef