Wrong Answer
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<n)a[i][j]=++cnt,i++;--i;--j; | ^~~~~ foo.cc:7:51: 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<n)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<n)a[i][j]=++cnt,j--;++j;--i; | ^~~~~ foo.cc:8:51: 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<n)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<n)a[i][j]=++cnt,i--;++i;++j; | ^~~~~ foo.cc:9:51: 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<n)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<n)a[i][j]=++cnt,j++;--j;++i; | ^~~~~ foo.cc:10:51: 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<n)a[i][j]=++cnt,j++;--j;++i; | ^~
Found 4 testcases.
您没有权限查看该代码,完成本题后再来查看
信息
- 递交者
- 类型
- 递交模式
- 题目
- P1099 方阵填数
- 语言
- C++14
- 递交时间
- 2022-08-28 14:48:27
- 评测时间
- 2022-08-28 14:48:27
- 评测机
- 分数
- 25
- 总耗时
- 8ms
- 峰值内存
- 376.0 KiB