Please tell the problem with my code

#include
using namespace std;
void bs(int a[],int j ,int n)
{
if (n==1)
return;
if (j==n-1)
return bs(a,0,n-1);
if (a[j]>a[j+1]);
{
swap(a[j],a[j+1]);
}
bs(a,j+1,n);
return;

}
int main()
{
int a[]={5,4,3,1,2,8};
int n=6;
bs(a,0,6);
for (int i=0;i<n;i++)
cout<<a[i];
}

hello @vishwajeetss861999
pls share ur code using cb ide

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.