记录详情

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.
# 状态 耗时 内存占用
#1 Accepted 2ms 376.0 KiB
#2 Wrong Answer Read '0', expect '2'. 2ms 376.0 KiB
#3 Wrong Answer Read '0', expect '7'. 1ms 376.0 KiB
#4 Wrong Answer Read '0', expect '1'. 2ms 376.0 KiB
您没有权限查看该代码,完成本题后再来查看

信息

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