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+1][j]==0&&cnt<n)a[i][j]=++cnt,i++;i=n; | ^~~~~ foo.cc:7:53: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'while' 7 | while(i<=n&&a[i+1][j]==0&&cnt<n)a[i][j]=++cnt,i++;i=n; | ^ foo.cc:8:3: warning: this 'while' clause does not guard... [-Wmisleading-indentation] 8 | while(j>=1&&a[i][j-1]==0&&cnt<n)a[i][j]=++cnt,j--;i=1; | ^~~~~ foo.cc:8:53: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'while' 8 | while(j>=1&&a[i][j-1]==0&&cnt<n)a[i][j]=++cnt,j--;i=1; | ^ foo.cc:9:3: warning: this 'while' clause does not guard... [-Wmisleading-indentation] 9 | while(i>=1&&a[i-1][j]==0&&cnt<n)a[i][j]=++cnt,i--;i=1; | ^~~~~ foo.cc:9:53: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'while' 9 | while(i>=1&&a[i-1][j]==0&&cnt<n)a[i][j]=++cnt,i--;i=1; | ^ foo.cc:10:3: warning: this 'while' clause does not guard... [-Wmisleading-indentation] 10 | while(j<=n&&a[i][j+1]==0&&cnt<n)a[i][j]=++cnt,j++;j=n; | ^~~~~ foo.cc:10:53: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'while' 10 | while(j<=n&&a[i][j+1]==0&&cnt<n)a[i][j]=++cnt,j++;j=n; | ^
Found 4 testcases.
您没有权限查看该代码,完成本题后再来查看
信息
- 递交者
- 类型
- 递交模式
- 题目
- P1099 方阵填数
- 语言
- C++14
- 递交时间
- 2022-08-28 14:47:04
- 评测时间
- 2022-08-28 14:47:04
- 评测机
- 分数
- 25
- 总耗时
- 8ms
- 峰值内存
- 376.0 KiB