Https://online.codingblocks.com/app/player/106930/content/96853/5327/code-challenge

https://online.codingblocks.com/app/player/106930/content/96853/5327/code-challenge
#include
using namespace std;
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
int n;
cin>>n;
int val=n;
for(int i=1;i<=n;i++){
val=n;
for(int j=1;j<=i;j++){
cout<<val<<" “;
val-=1;
}
val=n;
for(int j=1;j<=2*(n-i)+1;j++)
cout<<” “;
for(int k=1;k<=i;k++){
cout<<val<<” “;
val-=1;
}
cout<<”\n";
}
val=n;
for(int i=1;i<=n;i++){
cout<<val<<" “;
val-=1;
}
cout<<“0 “;
for(int i=1;i<=n;i++)
cout<<i<<” “;
cout<<”\n”;
for(int i=1;i<=n;i++){
for(int j=n;j>=i;j–)
cout<<j<<” “;
for(int l=1;l<=(2*i)-1;l++)
cout<<” “;
for(int k=i;k<=n;k++)
cout<<k<<” “;
cout<<”\n";
}
return 0;
}
My code is passing only one test case… Plz tell me what is the problem in my code?