Wrong ans while compiling

#include
using namespace std;
void merge(int *a,int *b,int *c,int s,int e){
int m=(s+e)/2;
int i=s,j=m+1,k=0;
while(i<=m && j<=e){
if(b[i]<=c[j]){
a[k++]=b[i++];

	}
	else{
		a[k++]=c[j++];
	}
}
while(i<=m){
	a[k++]=b[i++];

}
while(j<=e){
	a[k++]=b[j++];

}

}

void mergeSort(int *a,int s,int e){
int b[1000],c[1000],m=(s+e)/2;
if(s>=e){
return;
}
for(int i=s;i<=m;i++){
b[i]=a[i];

}
for(int i=m+1;i<=e;i++){
	c[i]=a[i];
}
mergeSort(b,s,m);
mergeSort(c,m+1,e);

merge(a,b,c,s,e);

}

int main() {
int n;cin>>n;
int a[1000];
for(int i=0;i<n;i++){
cin>>a[i];
}
mergeSort(a,0,n-1);

for(int i=0;i<n;i++){
	cout<<a[i];
}
return 0;

}

hi @yashtripathi6969_0cd127807d833066 send the code link by saving in some online ide here its not readable

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.