hey guys I am not able to pass the one test case can you guys help me to find the problem in the code
#include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define endl “\n”
bool isSorted(ll *a,int i,int n){
if(i==n-1){
return true;
}
return (a[i]<a[i+1])? isSorted(a,i+1,n) : false;
}
int main(){
int n;
cin >> n;
ll arr[n] = {};
for(int i=0;i<n;++i) cin>>arr[i];
(isSorted(arr,0,n))
?cout<<“true”
:cout<<“false”;
return 0;
}