nclude
using namespace std;
int main()
{
int n;
cin>>n;
int arr[100];
int j;
int i;
for (int i = 0; i < n; ++i)
{
cin>>arr[i];
}
for (int i = 1; i < n; ++i)
{
int picked=arr[i];
for (int j = i-1; j >= 0 ; --j)
{
if (arr[j]>picked)
{
arr[j+1]=arr[j];
}
}
arr[j+1]= picked;
}
for (int i = 0; i < n; ++i)
{
cout<<arr[i]<<" ";
}
return 0;
}
what is the mistake?