/ 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 192.0 KiB
#2 Accepted 226ms 256.0 KiB
#3 Accepted 80ms 256.0 KiB
#4 Accepted 2ms 272.0 KiB
#5 Wrong Answer 3ms 256.0 KiB
#6 Accepted 4ms 360.0 KiB
#7 Accepted 6ms 256.0 KiB
#8 Accepted 9ms 384.0 KiB
#9 Accepted 2ms 256.0 KiB
#10 Accepted 24ms 332.0 KiB

信息

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