foo.c: In function 'main':
foo.c:7:5: warning: 'gets' is deprecated [-Wdeprecated-declarations]
7 | gets(s);
| ^~~~
In file included from foo.c:1:
/nix/store/y8wfrgk7br5rfz4221lfb9v8w3n0cnyd-glibc-2.37-8-dev/include/stdio.h:605:14: note: declared here
605 | extern char *gets (char *__s) __wur __attribute_deprecated__;
| ^~~~
foo.c:18:35: error: 's_len' undeclared (first use in this function); did you mean 'len'?
18 | memmove(&s[si], &s[si + len], s_len - si - len + 1);
| ^~~~~
| len
foo.c:18:35: note: each undeclared identifier is reported only once for each function it appears in
foo.c:9:9: warning: unused variable 'n' [-Wunused-variable]
9 | int n = strlen(s);
| ^
[Hydro](https://hydro.ac)提供评测服务