foo.cc: In function 'int left_find(Iv&, int)':
foo.cc:99:20: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
99 | int mid = l+r>>1;
| ~^~
foo.cc:104:9: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
104 | if(l>=array.size()||array[l]!=num)
| ~^~~~~~~~~~~~~~
foo.cc: In function 'int right_find(Iv&, int)':
foo.cc:115:18: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
115 | int mid=l+r>>1;
| ~^~
foo.cc: In function 'void solve()':
foo.cc:130:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
130 | scanf("%d%d%d",&n,&k,&q);
| ~~~~~^~~~~~~~~~~~~~~~~~~
foo.cc:132:22: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
132 | scanf("%d",data+i);
| ~~~~~^~~~~~~~~~~~~
foo.cc:142:22: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
142 | scanf("%d%d",&L,&R);
| ~~~~~^~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务