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"}