/in/foo.cc: In function 'int main()':
/in/foo.cc:12:17: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
  char s[100001];gets(s);
                 ^~~~
In file included from /in/foo.cc:1:0:
/usr/include/stdio.h:640:14: note: declared here
 extern char *gets (char *__s) __wur __attribute_deprecated__;
              ^~~~
/in/foo.cc:12:23: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
  char s[100001];gets(s);
                       ^
In file included from /in/foo.cc:1:0:
/usr/include/stdio.h:640:14: note: declared here
 extern char *gets (char *__s) __wur __attribute_deprecated__;
              ^~~~
/in/foo.cc:17:10: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  while (i<strlen(s))
         ~^~~~~~~~~~
/in/foo.cc:19:7: warning: variable 'flag' set but not used [-Wunused-but-set-variable]
   int flag=1;
       ^~~~
/in/foo.cc:15:6: warning: unused variable 'namelen' [-Wunused-variable]
  int namelen=strlen(name);
      ^~~~~~~
/tmp/ccPynBwn.o: In function `main':
foo.cc:(.text.startup+0x2f): warning: the `gets' function is dangerous and should not be used.