/in/foo.cc: In function 'void readdata()':
/in/foo.cc:28:20: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
for(i=1;i<=m;i++)gets(name[i]),ln[i]=strlen(name[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:28:32: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
for(i=1;i<=m;i++)gets(name[i]),ln[i]=strlen(name[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:33:7: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
gets(s),len=strlen(s);
^~~~
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:33:13: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
gets(s),len=strlen(s);
^
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 get(int, int)':
/in/foo.cc:99:11: warning: unused variable 'k' [-Wunused-variable]
int i,j,k,sum=0;
^
/in/foo.cc: In function 'void work()':
/in/foo.cc:125:11: warning: unused variable 'k' [-Wunused-variable]
int i,j,k,s1,s2,ans=0;
^
/tmp/ccTD70cS.o: In function `readdata()':
foo.cc:(.text+0x54): warning: the `gets' function is dangerous and should not be used.