Wrong Answer

/in/foo.cc: In function 'int main()':
/in/foo.cc:51:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  for(int i=1;i<=5;i++)
  ^~~
/in/foo.cc:59:3: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
   for(int i=1;i<=5;i++)
   ^~~
/in/foo.cc:62:15: warning: iteration 4 invokes undefined behavior [-Waggressive-loop-optimizations]
      if(a[i][j]!=0)
         ~~~~~~^
/in/foo.cc:60:18: note: within this loop
     for(int j=1;j<=5;j++)
                 ~^~~
/in/foo.cc:54:12: warning: iteration 4 invokes undefined behavior [-Waggressive-loop-optimizations]
   if(a[i][j]!=0)
      ~~~~~~^
/in/foo.cc:52:16: note: within this loop
   for(int j=1;j<=5;j++)
               ~^~~
/in/foo.cc:45:16: warning: iteration 4 invokes undefined behavior [-Waggressive-loop-optimizations]
       if(a[i][j]!=0&&a[i][j+1]==0)
          ~~~~~~^
/in/foo.cc:43:17: note: within this loop
    for(int j=1;j<=5;j++)
                ~^~~
/in/foo.cc:34:12: warning: iteration 4 invokes undefined behavior [-Waggressive-loop-optimizations]
   if(a[i][j]!=0)
      ~~~~~~^
/in/foo.cc:32:16: note: within this loop
   for(int j=1;j<=5;j++)
               ~^~~
/in/foo.cc:28:20: warning: iteration 4 invokes undefined behavior [-Waggressive-loop-optimizations]
      b[i][j]=a[i][j];
              ~~~~~~^
/in/foo.cc:25:16: note: within this loop
   for(int j=1;j<=5;j++)
               ~^~~
cc1plus: warning: iteration 3 invokes undefined behavior [-Waggressive-loop-optimizations]
/in/foo.cc:42:15: note: within this loop
  for(int i=1;i<=5;i++)
              ~^~~
# 状态 耗时 内存占用
#1 Wrong Answer 4ms 256.0 KiB
#2 Wrong Answer 5ms 256.0 KiB
#3 Accepted 3ms 348.0 KiB
#4 Wrong Answer 2ms 384.0 KiB
#5 Wrong Answer 3ms 384.0 KiB
#6 Wrong Answer 3ms 384.0 KiB
#7 Wrong Answer 3ms 372.0 KiB
#8 Wrong Answer 3ms 344.0 KiB
#9 Wrong Answer 4ms 372.0 KiB
#10 Wrong Answer 3ms 356.0 KiB

信息

递交者
类型
递交
比赛
阜阳三中2018NOIP仿真模拟赛(一)
语言
C++
递交时间
2018-05-12 21:15:16
评测时间
2018-05-12 21:15:16
评测机
分数
10
总耗时
36ms
峰值内存
384.0 KiB