Pattern double sided arrow

this is my code … written below it always run for 1 and 2 testcase and not for other 6 testcases

can you tell me that what is the problem with my code why its not showing output for other 6 testcases also…

CODE …

#include
using namespace std;

int main() {
unsigned int n;
cin>>n;
if(n%2!=0)
{
for(int i=1; i<=n;i++)
{
if(i<=n/2+1)
{
for( int s=n-2i; s>=0 ; s–)
{
cout<<" “;
}
for(int j=i ; j>0 ; j–)
{
cout<<j<<” ";
}
if(i>=2)
{
for( int s=1 ; s<2
i-2 ; s++)
{
cout<<" “;
}
for( int j=1 ; j<=i ; j++)
{
cout<<j<<” “;
}
}
}
else
{
for( int s=1 ; s<2*i-n ; s++)
{
cout<<” ";
}
for( int j=(n-i)+1 ; j>0 ; j–)
{
cout<<j<< " “;
}
for( int s=(n-i)*2 ; s>1 ; s–)
{
cout<<” “;
}
if(i!=n)
for( int j=(n-i)+1 ; j>0 ; j–)
{
cout<<j<<” ";
}
}

    cout<<endl;
}

}
return 0;
}

Thats it…