foo.cc:18: warning: "LONG_LONG_MIN" redefined
18 | #define LONG_LONG_MIN -9223372036854775808ll
|
In file included from foo.cc:5:
/usr/lib/gcc/x86_64-linux-gnu/9/include/limits.h:152: note: this is the location of the previous definition
152 | # define LONG_LONG_MIN (-LONG_LONG_MAX - 1LL)
|
foo.cc:19: warning: "LONG_LONG_MAX" redefined
19 | #define LONG_LONG_MAX 9223372036854775807ll
|
In file included from foo.cc:5:
/usr/lib/gcc/x86_64-linux-gnu/9/include/limits.h:154: note: this is the location of the previous definition
154 | # define LONG_LONG_MAX __LONG_LONG_MAX__
|
foo.cc: In function 'int main()':
foo.cc:99:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
99 | for(int i = 0; i < a.size(); ++i){
| ~~^~~~~~~~~~
foo.cc:68:6: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
68 | scanf("%d%d%d",&n,&m,&q); len = n;
| ~~~~~^~~~~~~~~~~~~~~~~~~
foo.cc:70:6: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
70 | scanf("%d%d",&g[i].x,&g[i].y);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:134:10: warning: 'ans' may be used uninitialized in this function [-Wmaybe-uninitialized]
134 | p[++len] = ans;
| ~~~~~~~~~^~~~~
[Hydro](https://hydro.ac)提供评测服务