/in/foo.cc: In function 'void init()':
/in/foo.cc:25:4: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
gets(a);
^~~~
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:25:10: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
gets(a);
^
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:31:7: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
gets(b[i]);
^~~~
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:31:16: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
gets(b[i]);
^
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:35:30: warning: array subscript has type 'char' [-Wchar-subscripts]
if (path[cur][dir[*c]] == 0)
^
/in/foo.cc:35:31: warning: array subscript has type 'char' [-Wchar-subscripts]
if (path[cur][dir[*c]] == 0)
^
/in/foo.cc:36:29: warning: array subscript has type 'char' [-Wchar-subscripts]
path[cur][dir[*c]] = ++l;
^
/in/foo.cc:36:30: warning: array subscript has type 'char' [-Wchar-subscripts]
path[cur][dir[*c]] = ++l;
^
/in/foo.cc:37:32: warning: array subscript has type 'char' [-Wchar-subscripts]
cur = path[cur][dir[*c]];
^
/in/foo.cc:37:33: warning: array subscript has type 'char' [-Wchar-subscripts]
cur = path[cur][dir[*c]];
^
/in/foo.cc: In function 'void solve()':
/in/foo.cc:77:35: warning: array subscript has type 'char' [-Wchar-subscripts]
check[cur = path[cur][dir[*c]]] = true;
^
/in/foo.cc:77:36: warning: array subscript has type 'char' [-Wchar-subscripts]
check[cur = path[cur][dir[*c]]] = true;
^
/in/foo.cc:87:39: warning: array subscript has type 'char' [-Wchar-subscripts]
if (check[cur = path[cur][dir[*c]]])
^
/in/foo.cc:87:40: warning: array subscript has type 'char' [-Wchar-subscripts]
if (check[cur = path[cur][dir[*c]]])
^
/tmp/ccEp7om8.o: In function `init()':
foo.cc:(.text+0x58): warning: the `gets' function is dangerous and should not be used.