Compile Error

/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
      |                                 ^~~~

信息

递交者
类型
递交
题目
P2985 图形打印graph
语言
C++
递交时间
2025-10-03 08:45:47
评测时间
2025-10-03 08:45:47
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes