Last test case is failed for the code correct the code

#include
#include
#include
using namespace std;

int partition(int a[],int s,int e){
int pivot=e;
int i=s;
int j=e;
while(i<j){
if(a[i]<=a[pivot]){
i++;
}
if(a[j]>a[pivot]){
jā€“;
}
if(i<j){
swap(a[i],a[j]);
}
}
swap(a[pivot],a[j]);
return j;
}

void quicksort(int a[],int s,int e){
// base Case
if(s>=e){
return ;
}
int pivot=partition(a,s,e);
quicksort(a,s,pivot-1);
quicksort(a,pivot+1,e);
}

int main() {
int n;
cin>>n;
int a[n];
for(int i=0;i<n;i++){
cin>>a[i];
}
quicksort(a,0,n-1);
// int a[n];
for(int i=0;i<n;i++){
cout<<a[i]<<" ";
}
return 0;
}

hi @nitinchauhan0808_be04315530401452 send the code on ide.codingblocks.com
write
save
send the url of page