foo.cc: In function 'int main()':
foo.cc:15:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
15 | scanf("%d%d",&n,&k);
| ~~~~~^~~~~~~~~~~~~~
foo.cc:17:9: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
17 | scanf("%s%d",&c,&m);
| ~~~~~^~~~~~~~~~~~~~
foo.cc:20:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
20 | scanf("%d",&p);
| ~~~~~^~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务