foo.cc: In function 'int main()':
foo.cc:36:9: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("name.in","r",stdin);
~~~~~~~^~~~~~~~~~~~~~~~~~~~~
foo.cc:37:9: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("name.out","w",stdout);
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
foo.cc:38:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%s",str);
~~~~~^~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务