Carvans Is Getting me Wrong Answer

Can u please Check The Code Why it is not accepting.
#include <bits/stdc++.h>
using namespace std;
#define endl ‘\n’
#define pb push_back
#define w(t) int t; cin>> t;while(t–)
#define rep(i,a,b); for(int i=a;i<b;i++)
#define FIO ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL);
typedef long long int ll;
#define N 100000
#define vi vector v;
#define vll vector v;
#define ff first
#define ss second
#define ll long long int
int main()
{
w(t)
{
ll n;
cin >> n;
ll arr[n];
rep(i, 0, n)
{
cin >> arr[i];
}
ll min_speed = arr[0];
int count = 1;
rep(i, 0, n - 1 )
{
if (min_speed > arr[i])
{
count++;
min_speed = arr[i];
}
}
cout << count << endl;
}
return 0;
}

In logic u have to check from 1 to n-1 i.e.; rep(i, 1, n ). Have u got the thing?