foo.cc: In function 'void RMQ_ST()':
foo.cc:39:38: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
39 | st[i][j]=max(st[i][j-1],st[i+(1<<j-1)][j-1]);
| ~^~
foo.cc: In function 'int main()':
foo.cc:52:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
52 | scanf("%d",&n);
| ~~~~~^~~~~~~~~
foo.cc:55:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
55 | scanf("%d",a+i);
| ~~~~~^~~~~~~~~~
foo.cc:58:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
58 | scanf("%d",&m);
| ~~~~~^~~~~~~~~
foo.cc:61:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
61 | scanf("%d %d",&l,&r);
| ~~~~~^~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务