/ CWOI /

记录详情

Accepted

foo.cc: In function 'void PushDown(int, int, int)':
foo.cc:4:15: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
 #define mid (l+r>>1)
              ~^~
foo.cc:47:11: note: in expansion of macro 'mid'
   s[lson]=mid-l+1;
           ^~~
foo.cc:4:15: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
 #define mid (l+r>>1)
              ~^~
foo.cc:48:13: note: in expansion of macro 'mid'
   s[rson]=r-mid;
             ^~~
foo.cc: In function 'void ChangeSegmentTree(int, int, int, int, int, bool)':
foo.cc:4:15: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
 #define mid (l+r>>1)
              ~^~
foo.cc:68:9: note: in expansion of macro 'mid'
  if (L<=mid) ChangeSegmentTree(lson,l,mid,L,R,c);
         ^~~
foo.cc:4:15: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
 #define mid (l+r>>1)
              ~^~
foo.cc:68:39: note: in expansion of macro 'mid'
  if (L<=mid) ChangeSegmentTree(lson,l,mid,L,R,c);
                                       ^~~
foo.cc:4:15: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
 #define mid (l+r>>1)
              ~^~
foo.cc:69:6: note: in expansion of macro 'mid'
  if (mid<R) ChangeSegmentTree(rson,mid+1,r,L,R,c);
      ^~~
foo.cc:4:15: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
 #define mid (l+r>>1)
              ~^~
foo.cc:69:36: note: in expansion of macro 'mid'
  if (mid<R) ChangeSegmentTree(rson,mid+1,r,L,R,c);
                                    ^~~
foo.cc: In function 'int QuerySegmentTree(int, int, int, int, int)':
foo.cc:4:15: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
 #define mid (l+r>>1)
              ~^~
foo.cc:79:9: note: in expansion of macro 'mid'
  if (L<=mid) re+=QuerySegmentTree(lson,l,mid,L,R);
         ^~~
foo.cc:4:15: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
 #define mid (l+r>>1)
              ~^~
foo.cc:79:42: note: in expansion of macro 'mid'
  if (L<=mid) re+=QuerySegmentTree(lson,l,mid,L,R);
                                          ^~~
foo.cc:4:15: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
 #define mid (l+r>>1)
              ~^~
foo.cc:80:6: note: in expansion of macro 'mid'
  if (mid<R) re+=QuerySegmentTree(rson,mid+1,r,L,R);
      ^~~
foo.cc:4:15: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
 #define mid (l+r>>1)
              ~^~
foo.cc:80:39: note: in expansion of macro 'mid'
  if (mid<R) re+=QuerySegmentTree(rson,mid+1,r,L,R);
                                       ^~~
foo.cc: In function 'int main()':
foo.cc:140:26: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'char (*)[10]' [-Wformat=]
   if (scanf("%s%d",&ch,&x),ch[0]=='i')
                          ^
foo.cc:139:2: warning: 'y' may be used uninitialized in this function [-Wmaybe-uninitialized]
  for (int i=1,x,y;i<=m;printf("%d\n",y),++i)
  ^~~

自豪的采用jd5进行评测(github.com/masnn/jd5)
{"receive":"2020-02-18T02:47:58.616Z","handle":"2020-02-18T02:47:58.616Z","cache_start":"2020-02-18T02:47:58.616Z","read_cases":"2020-02-18T02:48:22.659Z","judge":"2020-02-18T02:48:22.659Z","done":"2020-02-18T02:48:30.018Z"}
# 状态 耗时 内存占用
#1 Accepted 12ms 7.043 MiB
#2 Accepted 17ms 4.469 MiB
#3 Accepted 432ms 6.75 MiB
#4 Accepted 431ms 6.23 MiB
#5 Accepted 421ms 6.727 MiB
#6 Accepted 422ms 6.258 MiB
#7 Accepted 424ms 6.785 MiB
#8 Accepted 428ms 6.266 MiB
#9 Accepted 224ms 7.527 MiB
#10 Accepted 222ms 7.551 MiB
#11 Accepted 216ms 7.527 MiB
#12 Accepted 224ms 6.516 MiB
#13 Accepted 221ms 7.527 MiB
#14 Accepted 226ms 6.5 MiB
#15 Accepted 209ms 7.34 MiB
#16 Accepted 205ms 7.531 MiB
#17 Accepted 196ms 7.203 MiB
#18 Accepted 199ms 7.016 MiB
#19 Accepted 205ms 7.523 MiB
#20 Accepted 209ms 6.465 MiB

信息

递交者
类型
递交
题目
2017.07.19 P3 软件包管理器
语言
C++
递交时间
2020-02-18 10:47:35
评测时间
2020-02-18 10:47:58
评测机
分数
100
总耗时
5143ms
峰值内存
7.551 MiB