foo.cc: In function 'void buildQueue()':
foo.cc:22:12: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
22 | scanf("%d%d", &k, &p);
| ~~~~~^~~~~~~~~~~~~~~~
foo.cc:34:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
34 | scanf("%d", &M);
| ~~~~~^~~~~~~~~~
foo.cc:37:12: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
37 | scanf("%d", &x);
| ~~~~~^~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:48:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
48 | scanf("%d", &N);
| ~~~~~^~~~~~~~~~
Found 5 testcases.
[Hydro](https://hydro.ac)提供评测服务