foo.cc: In function 'int main()':
foo.cc:19:13: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
   19 |         gets(s);
      |         ~~~~^~~
In file included from foo.cc:1:
/nix/store/rffag931pvbdiabwwa539wnwg1piqpx0-glibc-2.35-163-dev/include/stdio.h:605:14: note: declared here
  605 | extern char *gets (char *__s) __wur __attribute_deprecated__;
      |              ^~~~
/nix/store/jfkmqz20q8fsaqizcml86adxqyzlwllx-binutils-2.38/bin/ld: /tmp/cc3z7tau.o: in function `main':
foo.cc:(.text.startup+0x3a): warning: the `gets' function is dangerous and should not be used.
   
  
    [Hydro](https://hydro.ac)提供评测服务