Bubble sort problem

#include
using namespace std;
int main() {
int a[1000];
int n;
cin>>n;
for(int i=0;i<n;i++)
{
cin>>a[i];
}
for( int i=0;i<n;i++)
{ for(int j=0;j<n-i-1;j++)
{
if(a[j]>a[j+1])
{
swap(a[j],a[j+1]); }

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

}

sir none of the test case working. what’s the problem?

Please save your code on ide.codingblocks.com and then share its link.

Check the pattern of sample output. Your output pattern must match with that.
You just have to include an endl.
Check now: