foo.cc: In function 'void change(std::vector<int>)':
foo.cc:355:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
355 | for (int i = 0;i < p.size();i++) {
| ~~^~~~~~~~~~
foo.cc:356:28: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
356 | for (int j = i+1;j < p.size();j++) {
| ~~^~~~~~~~~~
foo.cc: In function 'void add(std::vector<int>)':
foo.cc:365:17: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
365 | if (p.size()>=lim) return;
| ~~~~~~~~^~~~~
foo.cc:366:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
366 | for (int i = 0;i < p.size();i++) {
| ~~^~~~~~~~~~
foo.cc: In function 'void delt(std::vector<int>)':
foo.cc:407:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
407 | for (int i = 0;i < p.size();i++) {
| ~~^~~~~~~~~~
foo.cc:416:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
416 | } else if (i==p.size()-1) {
| ~^~~~~~~~~~~~
foo.cc: In function 'void bfs()':
foo.cc:437:23: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
437 | if (h.k.size()>lim) continue;
| ~~~~~~~~~~^~~~
foo.cc: In function 'int main()':
foo.cc:447:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
447 | scanf("%d",&n);
| ~~~~~^~~~~~~~~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务