/ new_bzoj /

记录详情

Wrong Answer

/in/foo.cc: In function 'int main()':
/in/foo.cc:192:29: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
  n = m = HasGetCake= target = s = d = r = bornants=nowants=0;
                      ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/in/foo.cc: In function 'bool update()':
/in/foo.cc:185:29: warning: iteration 5 invokes undefined behavior [-Waggressive-loop-optimizations]
  rep(i,1,MAX_nants) if(a[i].Isalive) a[i].age++;
                        ~~~~~^~~~~~~
/in/foo.cc:9:36: note: within this loop
 #define rep(i,a,b) for(int i = a;i <= b;i++)
                                    ^
/in/foo.cc:185:2: note: in expansion of macro 'rep'
  rep(i,1,MAX_nants) if(a[i].Isalive) a[i].age++;
  ^~~
/in/foo.cc:174:11: warning: iteration 5 invokes undefined behavior [-Waggressive-loop-optimizations]
   if(a[i].Isalive&& reachable[a[i].x][a[i].y] && a[i].blood < 0) {
      ~~~~~^~~~~~~
/in/foo.cc:9:36: note: within this loop
 #define rep(i,a,b) for(int i = a;i <= b;i++)
                                    ^
/in/foo.cc:173:2: note: in expansion of macro 'rep'
  rep(i,1,MAX_nants)
  ^~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:195:32: warning: iteration 10 invokes undefined behavior [-Waggressive-loop-optimizations]
    map[i][j] = reachable[i][j] = 0;
                ~~~~~~~~~~~~~~~~^~~
/in/foo.cc:9:36: note: within this loop
 #define rep(i,a,b) for(int i = a;i <= b;i++)
                                    ^
/in/foo.cc:194:3: note: in expansion of macro 'rep'
   rep(j,0,MAX_m)
   ^~~
/in/foo.cc: In function 'void move(int)':
/in/foo.cc:87:6: warning: 'dir' may be used uninitialized in this function [-Wmaybe-uninitialized]
  int dir, maxpheromon = -1, x = a[id].x, y = a[id].y;
      ^~~
# 状态 耗时 内存占用
#1 Accepted 2ms 256.0 KiB
#2 Accepted 227ms 276.0 KiB
#3 Accepted 84ms 256.0 KiB
#4 Accepted 2ms 256.0 KiB
#5 Wrong Answer 5ms 256.0 KiB
#6 Accepted 1ms 256.0 KiB
#7 Accepted 6ms 348.0 KiB
#8 Accepted 12ms 256.0 KiB
#9 Accepted 3ms 264.0 KiB
#10 Accepted 17ms 336.0 KiB

信息

递交者
类型
递交
题目
杀蚂蚁antbuster
语言
C++
递交时间
2017-08-04 21:12:18
评测时间
2017-08-04 21:12:18
评测机
分数
90
总耗时
364ms
峰值内存
348.0 KiB