what’s wrong with my code-
#include <bits/stdc++.h>
using namespace std;
int main() {
int t,n,i,j,good=1;
cin>>t;
while(t–)
{ cin>>n;
int a[n];
for(i=0;i<n;i++)
cin>>a[i];
for(i=n-1;i>=1;i--)
{ int count=0;
for(j=i-1;j>=i-5&&j>=0;j--)
{
if(a[j]<a[i])
{ count++;
}
}if(count==0)
good++;
} cout<<good<<"\n";
}
return 0;
}