foo.cc: In function 'void maketree(int&, int, int)':
foo.cc:38:14: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
38 | int mid=l+r>>1;
| ~^~
foo.cc: In function 'void update(int&, int, int, int, int, int, int)':
foo.cc:53:14: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
53 | int mid=l+r>>1;
| ~^~
foo.cc: In function 'long long int query(int, int, int, int, int)':
foo.cc:66:14: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
66 | int mid=l+r>>1;
| ~^~
foo.cc: In function 'int main()':
foo.cc:109:21: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
109 | else if(s[0]='B')
| ~~~~^~~~
foo.cc:87:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
87 | scanf("%s",s);
| ~~~~~^~~~~~~~
正在同步测试数据,请稍后
Found 6 testcases.
[Hydro](https://hydro.ac)提供评测服务