/in/foo.cc: In function 'bool jump()':
/in/foo.cc:18:9: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
gets(prog);
^~~~
In file included from /usr/include/c++/6/cstdio:42:0,
from /in/foo.cc:1:
/usr/include/stdio.h:640:14: note: declared here
extern char *gets (char *__s) __wur __attribute_deprecated__;
^~~~
/in/foo.cc:18:18: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
gets(prog);
^
In file included from /usr/include/c++/6/cstdio:42:0,
from /in/foo.cc:1:
/usr/include/stdio.h:640:14: note: declared here
extern char *gets (char *__s) __wur __attribute_deprecated__;
^~~~
/in/foo.cc:24:33: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
while (n--) gets(prog);
^~~~
In file included from /usr/include/c++/6/cstdio:42:0,
from /in/foo.cc:1:
/usr/include/stdio.h:640:14: note: declared here
extern char *gets (char *__s) __wur __attribute_deprecated__;
^~~~
/in/foo.cc:24:42: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
while (n--) gets(prog);
^
In file included from /usr/include/c++/6/cstdio:42:0,
from /in/foo.cc:1:
/usr/include/stdio.h:640:14: note: declared here
extern char *gets (char *__s) __wur __attribute_deprecated__;
^~~~
/in/foo.cc: In function 'int solve()':
/in/foo.cc:47:9: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
gets(program);
^~~~
In file included from /usr/include/c++/6/cstdio:42:0,
from /in/foo.cc:1:
/usr/include/stdio.h:640:14: note: declared here
extern char *gets (char *__s) __wur __attribute_deprecated__;
^~~~
/in/foo.cc:47:21: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
gets(program);
^
In file included from /usr/include/c++/6/cstdio:42:0,
from /in/foo.cc:1:
/usr/include/stdio.h:640:14: note: declared here
extern char *gets (char *__s) __wur __attribute_deprecated__;
^~~~
/in/foo.cc:53:33: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
while (n--) gets(program);
^~~~
In file included from /usr/include/c++/6/cstdio:42:0,
from /in/foo.cc:1:
/usr/include/stdio.h:640:14: note: declared here
extern char *gets (char *__s) __wur __attribute_deprecated__;
^~~~
/in/foo.cc:53:45: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
while (n--) gets(program);
^
In file included from /usr/include/c++/6/cstdio:42:0,
from /in/foo.cc:1:
/usr/include/stdio.h:640:14: note: declared here
extern char *gets (char *__s) __wur __attribute_deprecated__;
^~~~
/in/foo.cc:62:34: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
} else if (a!=N&&b!=N&&a>b||a==N&&b!=N) {
~~~~~~~~~~^~~~~
/in/foo.cc:70:29: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
while (n--) gets(program);
^~~~
In file included from /usr/include/c++/6/cstdio:42:0,
from /in/foo.cc:1:
/usr/include/stdio.h:640:14: note: declared here
extern char *gets (char *__s) __wur __attribute_deprecated__;
^~~~
/in/foo.cc:70:41: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
while (n--) gets(program);
^
In file included from /usr/include/c++/6/cstdio:42:0,
from /in/foo.cc:1:
/usr/include/stdio.h:640:14: note: declared here
extern char *gets (char *__s) __wur __attribute_deprecated__;
^~~~
/in/foo.cc:39:21: warning: variable 'len' set but not used [-Wunused-but-set-variable]
int c, stk,cnt, len;
^~~
/tmp/ccf7WWcp.o: In function `jump()':
foo.cc:(.text+0x53): warning: the `gets' function is dangerous and should not be used.