/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'num update(int, int, int, int, int)':
/in/foo.cc:6:15: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
 #define mid (l+r>>1)
              ~^~
/in/foo.cc:12:9: note: in expansion of macro 'mid'
  if (p<=mid) update(ls,l,mid,p,v);
         ^~~
/in/foo.cc:6:15: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
 #define mid (l+r>>1)
              ~^~
/in/foo.cc:12:26: note: in expansion of macro 'mid'
  if (p<=mid) update(ls,l,mid,p,v);
                          ^~~
/in/foo.cc:6:15: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
 #define mid (l+r>>1)
              ~^~
/in/foo.cc:13: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:6:15: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
 #define mid (l+r>>1)
              ~^~
/in/foo.cc:22: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:6:15: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
 #define mid (l+r>>1)
              ~^~
/in/foo.cc:22: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:18:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
# 状态 耗时 内存占用
#1 Accepted 5ms 348.0 KiB
#2 Accepted 20ms 624.0 KiB
#3 Accepted 53ms 1.25 MiB
#4 Accepted 43ms 3.75 MiB
#5 Accepted 133ms 3.625 MiB
#6 Accepted 243ms 17.262 MiB
#7 Accepted 319ms 17.133 MiB
#8 Accepted 285ms 16.801 MiB
#9 Accepted 295ms 18.086 MiB
#10 Accepted 286ms 16.844 MiB

信息

递交者
类型
递交
题目
P1083 小白逛公园
语言
C++
递交时间
2018-01-10 13:01:09
评测时间
2018-01-10 13:01:09
评测机
分数
100
总耗时
1687ms
峰值内存
18.086 MiB