/ Vijos /

记录详情

Wrong Answer

/in/foo.cc: In function 'void ss(int, int)':
/in/foo.cc:23:57: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   if(xx>0&&xx<=m&&yy>0&&yy<=n&&(!vis[xx][yy]||xx==startx&&yy==starty)&&a[xx][yy]!=0)
                                               ~~~~~~~~~~^~~~~~~~~~~~
/in/foo.cc:21:19: warning: iteration 3 invokes undefined behavior [-Waggressive-loop-optimizations]
   int xx=x+di[i][1];
            ~~~~~~~^
/in/foo.cc:19:15: note: within this loop
  for(int i=1;i<=4;i++)
              ~^~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:37:6: warning: array subscript is above array bounds [-Warray-bounds]
  di[4][1]=0;
  ~~~~^
/in/foo.cc:41:6: warning: array subscript is above array bounds [-Warray-bounds]
  di[4][2]=-1;
  ~~~~^
# 状态 耗时 内存占用
#1 Accepted 2ms 256.0 KiB
#2 Wrong Answer 3ms 256.0 KiB
#3 Accepted 3ms 256.0 KiB
#4 Wrong Answer 3ms 256.0 KiB
#5 Wrong Answer 1ms 332.0 KiB

信息

递交者
类型
递交
题目
P1373 电路探究
语言
C++
递交时间
2017-05-07 15:14:44
评测时间
2017-05-07 15:14:44
评测机
分数
20
总耗时
13ms
峰值内存
332.0 KiB