记录详情

Accepted

foo.cc: In function 'int main()':
foo.cc:7:3: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
    7 |   while(i<=n&&a[i][j]==0&&cnt<n2)a[i][j]=++cnt,i++;--i;--j;
      |   ^~~~~
foo.cc:7:52: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'while'
    7 |   while(i<=n&&a[i][j]==0&&cnt<n2)a[i][j]=++cnt,i++;--i;--j;
      |                                                    ^~
foo.cc:8:3: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
    8 |   while(j>=1&&a[i][j]==0&&cnt<n2)a[i][j]=++cnt,j--;++j;--i;
      |   ^~~~~
foo.cc:8:52: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'while'
    8 |   while(j>=1&&a[i][j]==0&&cnt<n2)a[i][j]=++cnt,j--;++j;--i;
      |                                                    ^~
foo.cc:9:3: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
    9 |   while(i>=1&&a[i][j]==0&&cnt<n2)a[i][j]=++cnt,i--;++i;++j;
      |   ^~~~~
foo.cc:9:52: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'while'
    9 |   while(i>=1&&a[i][j]==0&&cnt<n2)a[i][j]=++cnt,i--;++i;++j;
      |                                                    ^~
foo.cc:10:3: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
   10 |   while(j<=n&&a[i][j]==0&&cnt<n2)a[i][j]=++cnt,j++;--j;++i;
      |   ^~~~~
foo.cc:10:52: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'while'
   10 |   while(j<=n&&a[i][j]==0&&cnt<n2)a[i][j]=++cnt,j++;--j;++i;
      |                                                    ^~
Found 4 testcases.
# 状态 耗时 内存占用
#1 Accepted 2ms 404.0 KiB
#2 Accepted 2ms 380.0 KiB
#3 Accepted 1ms 376.0 KiB
#4 Accepted 2ms 376.0 KiB
您没有权限查看该代码,完成本题后再来查看

信息

递交者
类型
递交模式
题目
P1099 方阵填数
语言
C++14
递交时间
2022-08-28 14:50:40
评测时间
2022-08-28 14:50:40
评测机
分数
100
总耗时
8ms
峰值内存
404.0 KiB