foo.cc: In function 'void init()':
foo.cc:41:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
41 | freopen("demo.in", "r", stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
foo.cc:42:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
42 | freopen("demo.out", "w", stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:45:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
45 | scanf("%s",a[i]+1);
| ~~~~~^~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务