foo.cc: In function 'void dts::main()':
foo.cc:152:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
152 | for (int i=0;i<x.size();i++)
| ~^~~~~~~~~
foo.cc:157:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
157 | if (i<x.size())
| ~^~~~~~~~~
foo.cc: In function 'int dts::search(int)':
foo.cc:131:5: warning: control reaches end of non-void function [-Wreturn-type]
131 | }
| ^
foo.cc: In function 'void dts::main()':
foo.cc:135:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
135 | scanf("%d%d",&n,&q);
| ~~~~~^~~~~~~~~~~~~~
foo.cc:139:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
139 | scanf("%d",&ctl[i]);
| ~~~~~^~~~~~~~~~~~~~
foo.cc:141:22: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
141 | scanf("%d%d",&pos[i],&val[i]);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:143:22: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
143 | scanf("%d",&val[i]);
| ~~~~~^~~~~~~~~~~~~~
foo.cc:145:22: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
145 | scanf("%d",&pos[i]);
| ~~~~~^~~~~~~~~~~~~~
foo.cc:168:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
168 | scanf("%d",&t);
| ~~~~~^~~~~~~~~
foo.cc:170:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
170 | scanf("%d%d",&a[i],&b[i]);
| ~~~~~^~~~~~~~~~~~~~~~~~~~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务