board.cpp: In function 'int main()':
board.cpp:40:8: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
gets(a);
^
In file included from /usr/include/c++/7/cstdio:42:0,
from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:46,
from board.cpp:1:
/usr/include/stdio.h:638:14: note: declared here
extern char *gets (char *__s) __wur __attribute_deprecated__;
^~~~
board.cpp:41:8: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
gets(b);
^
In file included from /usr/include/c++/7/cstdio:42:0,
from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:46,
from board.cpp:1:
/usr/include/stdio.h:638:14: note: declared here
extern char *gets (char *__s) __wur __attribute_deprecated__;
^~~~
board.cpp:40:6: warning: ignoring return value of 'char* gets(char*)', declared with attribute warn_unused_result [-Wunused-result]
gets(a);
~~~~^~~
board.cpp:41:6: warning: ignoring return value of 'char* gets(char*)', declared with attribute warn_unused_result [-Wunused-result]
gets(b);
~~~~^~~
/tmp/ccYhQ9DV.o: In function `main':
board.cpp:(.text.startup+0xa): warning: the `gets' function is dangerous and should not be used.