/in/foo.cc: In function 'int main()':
/in/foo.cc:11:32: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
11 | if(i<=n&&j<=n-i+1||j>=n+i-1)
| ~~~~^~~~~~~~~~
/in/foo.cc:14:39: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
14 | if(i>n&&j>=i-n+1||j<=2*n-1-(i-n));
| ~~~^~~~~~~~~~
/in/foo.cc:14:33: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
14 | if(i>n&&j>=i-n+1||j<=2*n-1-(i-n));
| ^~
/in/foo.cc:15:41: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
15 | cout<<'*';
| ^~~~
/in/foo.cc:16:33: error: 'else' without a previous 'if'
16 | else
| ^~~~