Why is my code wrong?

here is my code, why is it wrong?

#include <bits/stdc++.h>
using namespace std;

int main(){
int n,i,j;
cin>>n;
for(i=0;i<n;i++){
for(j=0;j<n;j++){
if(j==0 || j==n-1 || i==0 || i==n-1||(i==1 && j==1)||(i==1 && j==n-2)||(i==n-2 && j==1)||(i==n-2 && j==n-2)){cout<<’*’;}
cout<<’\t’;
}
cout<<’\n’;
}
}

You can refer this Refer this https://ide.codingblocks.com/s/260682 and cross check.
If you want to share your code then please save it on ide.codingblocks.com and then share its link.