foo.cc: In function 'int get(std::vector<std::pair<int, int> >)':
foo.cc:27:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
27 | for (int i = 0; i < range.size(); i ++ )
| ~~^~~~~~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:63:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
63 | for (int i = 0; i < range.size(); i ++ )
| ~~^~~~~~~~~~~~~~
foo.cc:4:11: warning: unused variable 'second' [-Wunused-variable]
4 | #define y second
| ^~~~~~
foo.cc:59:19: note: in expansion of macro 'y'
59 | int x = q[i].x, y = q[i].y, w = q[i].w;
| ^
foo.cc:69:11: warning: format '%d' expects argument of type 'int', but argument 2 has type 'LL' {aka 'long long int'} [-Wformat=]
69 | printf("%d\n", res);
| ~^ ~~~
| | |
| int LL {aka long long int}
| %lld
foo.cc:44:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
44 | scanf("%d", &n);
| ~~~~~^~~~~~~~~~
foo.cc:47:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
47 | scanf("%d%d", &q[i].x, &q[i].y);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务