foo.cc: In function 'int main()':
foo.cc:22:5: warning: variable 'l' set but not used [-Wunused-but-set-variable]
22 | int l,r,d,t;
| ^
foo.cc:22:9: warning: unused variable 'd' [-Wunused-variable]
22 | int l,r,d,t;
| ^
foo.cc:22:11: warning: unused variable 't' [-Wunused-variable]
22 | int l,r,d,t;
| ^
foo.cc:9:6: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
9 | scanf("%d%d",&n,&q);
| ~~~~~^~~~~~~~~~~~~~
foo.cc:14:6: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
14 | scanf("%d",&a[i]);
| ~~~~~^~~~~~~~~~~~
foo.cc:46:6: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
46 | scanf("%d",&r);
| ~~~~~^~~~~~~~~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务