foo.cc: In function 'void solve()':
foo.cc:113:30: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
113 | int mid = l+r+1 >> 1;
| ~~~^~
foo.cc:107:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
107 | scanf("%d",&n);
| ~~~~~^~~~~~~~~
foo.cc:109:22: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
109 | scanf("%d%d",a+i,b+i);
| ~~~~~^~~~~~~~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:128:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
128 | scanf("%d",&t);
| ~~~~~^~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务