foo.cc: In function 'int main()':
foo.cc:33:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
33 | scanf("%d",&n);
| ~~~~~^~~~~~~~~
foo.cc:36:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
36 | int x,son;scanf("%d",&x);
| ~~~~~^~~~~~~~~
foo.cc:37:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
37 | scanf("%lld%d",&cost[x],&son);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:41:15: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
41 | int v;scanf("%d",&v);
| ~~~~~^~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务