foo.cc: In function 'int main()':
foo.cc:44:15: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
44 | gets(s);
| ^
In file included from /usr/include/stdio.h:867,
from /usr/include/c++/9/cstdio:42,
from foo.cc:2:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:235:1: note: declared here
235 | gets (char *__str)
| ^~~~
foo.cc:44:15: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
44 | gets(s);
| ^
In file included from /usr/include/stdio.h:867,
from /usr/include/c++/9/cstdio:42,
from foo.cc:2:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:235:1: note: declared here
235 | gets (char *__str)
| ^~~~
foo.cc:40:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
40 | scanf("%d%d\n",&n,&m);
| ~~~~~^~~~~~~~~~~~~~~~
foo.cc:44:13: warning: ignoring return value of 'char* gets(char*)', declared with attribute warn_unused_result [-Wunused-result]
44 | gets(s);
| ~~~~^~~
/usr/bin/ld: /tmp/cczr3uan.o: in function `main':
foo.cc:(.text.startup+0x6f): warning: the `gets' function is dangerous and should not be used.
[Hydro](https://hydro.ac)提供评测服务