/ Vijos /

记录详情

Wrong Answer

/in/foo.cc: In function 'num update(int, int, int, int, int)':
/in/foo.cc:5:15: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
 #define mid (l+r>>1)
              ~^~
/in/foo.cc:11:9: note: in expansion of macro 'mid'
  if (p<=mid) update(ls,l,mid,p,v);
         ^~~
/in/foo.cc:5:15: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
 #define mid (l+r>>1)
              ~^~
/in/foo.cc:11:26: note: in expansion of macro 'mid'
  if (p<=mid) update(ls,l,mid,p,v);
                          ^~~
/in/foo.cc:5:15: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
 #define mid (l+r>>1)
              ~^~
/in/foo.cc:12:17: note: in expansion of macro 'mid'
  else update(rs,mid+1,r,p,v);
                 ^~~
/in/foo.cc: In function 'num query(int, int, int, int, int)':
/in/foo.cc:5:15: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
 #define mid (l+r>>1)
              ~^~
/in/foo.cc:22:9: note: in expansion of macro 'mid'
  if (l<=mid) q1=query(ls,l,mid,x,y),++cnt;
         ^~~
/in/foo.cc:5:15: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
 #define mid (l+r>>1)
              ~^~
/in/foo.cc:22:28: note: in expansion of macro 'mid'
  if (l<=mid) q1=query(ls,l,mid,x,y),++cnt;
                            ^~~
/in/foo.cc:5:15: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
 #define mid (l+r>>1)
              ~^~
/in/foo.cc:23:6: note: in expansion of macro 'mid'
  if (mid<r) q2=query(rs,mid+1,r,x,y),cnt+=2;
      ^~~
/in/foo.cc:5:15: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
 #define mid (l+r>>1)
              ~^~
/in/foo.cc:23:25: note: in expansion of macro 'mid'
  if (mid<r) q2=query(rs,mid+1,r,x,y),cnt+=2;
                         ^~~
/in/foo.cc: In function 'num update(int, int, int, int, int)':
/in/foo.cc:17:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
/in/foo.cc: In function 'num query(int, int, int, int, int)':
/in/foo.cc:28:17: warning: 'q1.num::sum' may be used uninitialized in this function [-Wmaybe-uninitialized]
       max(q1.sum+q1.suf,q2.suf),
           ~~~~~~^~~~~~~
/in/foo.cc:21:6: warning: '*((void*)& q1 +4)' may be used uninitialized in this function [-Wmaybe-uninitialized]
  num q1,q2;int cnt=0;
      ^~
/in/foo.cc:29:34: warning: 'q1.num::suf' may be used uninitialized in this function [-Wmaybe-uninitialized]
       max(max(q1.mx,q2.mx),q1.suf+q2.pre)};
                            ~~~~~~^~~~~~~
/in/foo.cc:21:6: warning: '*((void*)& q1 +12)' may be used uninitialized in this function [-Wmaybe-uninitialized]
  num q1,q2;int cnt=0;
      ^~
/in/foo.cc:21:9: warning: '*((void*)& q2 +12)' may be used uninitialized in this function [-Wmaybe-uninitialized]
  num q1,q2;int cnt=0;
         ^~
/in/foo.cc:21:9: warning: '*((void*)& q2 +8)' may be used uninitialized in this function [-Wmaybe-uninitialized]
/in/foo.cc:29:34: warning: 'q2.num::pre' may be used uninitialized in this function [-Wmaybe-uninitialized]
       max(max(q1.mx,q2.mx),q1.suf+q2.pre)};
                            ~~~~~~^~~~~~~
/in/foo.cc:26:21: warning: 'q2.num::sum' may be used uninitialized in this function [-Wmaybe-uninitialized]
  return (num){q1.sum+q2.sum,
               ~~~~~~^~~~~~~
# 状态 耗时 内存占用
#1 Wrong Answer 4ms 348.0 KiB
#2 Wrong Answer 32ms 620.0 KiB
#3 Wrong Answer 39ms 1.305 MiB
#4 Wrong Answer 38ms 4.125 MiB
#5 Wrong Answer 190ms 3.5 MiB
#6 Wrong Answer 302ms 17.258 MiB
#7 Wrong Answer 312ms 16.715 MiB
#8 Wrong Answer 310ms 18.125 MiB
#9 Wrong Answer 309ms 17.086 MiB
#10 Wrong Answer 314ms 17.625 MiB

信息

递交者
类型
递交
题目
P1083 小白逛公园
语言
C++
递交时间
2018-01-08 14:04:23
评测时间
2018-01-08 14:04:23
评测机
分数
0
总耗时
1854ms
峰值内存
18.125 MiB