Starters Ques Code

#include
using namespace std;

int main() {
// your code goes here
int t;
cin>>t;
while(t–){
int n,m,k,count=0;
cin>>n>>m>>k;
int arr[n];
for(int i=0;i<n;i++)
{
cin>>arr[i];
}
for(int i=0;i<n-1;i++)
{
if(arr[i]==arr[i+1] && arr[i]==1)
{
count++;
}
else
break;
}
if(count+1==n)
{
cout<<100<<endl;
}
else if(count+1>=m)
{
cout<<k<<endl;
}
else
{
cout<<0<<endl;
}

}
return 0;

}

Tell me where my code has failed

Duplicate of What is wrong in my code - #2 by ssjgz.