/in/foo.cc: In function 'void add1(int, int, int, int, int, int)':
/in/foo.cc:19:11: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
int mid=l+r>>1;
~^~
/in/foo.cc: In function 'void add2(int, int, int, int, int, int)':
/in/foo.cc:30:11: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
int mid=l+r>>1;
~^~
/in/foo.cc: In function 'int query1(int, int, int, int, int)':
/in/foo.cc:39:11: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
int mid=l+r>>1,res=0;
~^~
/in/foo.cc: In function 'int query2(int, int, int, int, int)':
/in/foo.cc:48:11: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
int mid=l+r>>1,res=0;
~^~
/in/foo.cc: In function 'int read()':
/in/foo.cc:9:13: warning: 'c' is used uninitialized in this function [-Wuninitialized]
while(c<'0'||c>'9'){if(c=='-')f=-1;c=getchar();}
~~~~~^~~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:8:21: warning: 'c' may be used uninitialized in this function [-Wmaybe-uninitialized]
int f=1,ans=0;char c;
^
/in/foo.cc:8:21: warning: 'c' may be used uninitialized in this function [-Wmaybe-uninitialized]
/in/foo.cc:9:13: warning: 'c' may be used uninitialized in this function [-Wmaybe-uninitialized]
while(c<'0'||c>'9'){if(c=='-')f=-1;c=getchar();}
~~~~~^~~~~~~
/in/foo.cc:8:21: note: 'c' was declared here
int f=1,ans=0;char c;
^