foo.cc: In function 'int main()':
foo.cc:37:9: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
37 | freopen("fly.in","r",stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~
foo.cc:38:9: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
38 | freopen("fly.out","w",stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
foo.cc:39:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
39 | scanf("%d%d%d",&n,&s,&t);
| ~~~~~^~~~~~~~~~~~~~~~~~~
foo.cc:40:29: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
40 | for(int i=1;i<=n;i++) scanf("%d",&dis[i]);
| ~~~~~^~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务