/ 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:21:20: note: in expansion of macro 'mid'
  num q1=query(ls,l,mid,x,y),q2=query(rs,mid+1,r,x,y);
                    ^~~
/in/foo.cc:5:15: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
 #define mid (l+r>>1)
              ~^~
/in/foo.cc:21:41: note: in expansion of macro 'mid'
  num q1=query(ls,l,mid,x,y),q2=query(rs,mid+1,r,x,y);
                                         ^~~
/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]
 }
 ^
# 状态 耗时 内存占用
#1 Wrong Answer 3ms 348.0 KiB
#2 Wrong Answer 17ms 624.0 KiB
#3 Wrong Answer 30ms 1.363 MiB
#4 Wrong Answer 40ms 3.125 MiB
#5 Wrong Answer 134ms 3.75 MiB
#6 Wrong Answer 211ms 17.527 MiB
#7 Wrong Answer 278ms 18.25 MiB
#8 Wrong Answer 311ms 16.332 MiB
#9 Wrong Answer 285ms 18.191 MiB
#10 Wrong Answer 274ms 17.75 MiB

信息

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