Discussion About Pattern DoubleSidedArrow

This is Discussion thread about Pattern DoubleSidedArrow

i have getting error some test case
#include
using namespace std;
int main(){
int n,v,t;
cin>>n;
int j=n-1;
int space2;
for(int row=1;row<=n;row++){
if(row<=(n/2)+1){
int p=row;
for(int space=1;space<=j;space++){
cout<<" “;
}
j=j-2;
for(int colm=1;colm<=row;colm++){
cout<<p<<” “;
p–;
}
for(int space1=1;space1<=row-1;space1++){
cout<<” “;
}
space2=row-1;
for(int space4=1;space4<=space2-1;space4++){
cout<<” “;
}
for(int no=1;no<=row && row!=1;no++){
cout<<no<<” “;
}
}
else{
for(int space=1;space<=j+2+2;space++){
cout<<” “;
}
j=j+2;
int m=row;
int v=row-j-2;
t=v;
for(int colm=1;colm<=row-j-2;colm++){
cout<<v<<” “;
v–;
}
for(int space3=1;space3<space2;space3++){
cout<<” “;
}
space2–;
}
for(int space5=1;space5<space2;space5++){
cout<<” “;
}
for(int no2=1;no2<=t;no2++ ){
if(t!=1){
cout<<no2<<” ";}
}
cout<<endl;
}
return 0;
}