/in/foo.c: In function 'b':
/in/foo.c:3:15: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
3 | int n=strlen(s);
| ^~~~~~
/in/foo.c:2:1: note: include '<string.h>' or provide a declaration of 'strlen'
1 | #include<stdio.h>
+++ |+#include <string.h>
2 | void b(char s[]){
/in/foo.c:3:15: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch]
3 | int n=strlen(s);
| ^~~~~~
/in/foo.c:3:15: note: include '<string.h>' or provide a declaration of 'strlen'
/in/foo.c: In function 'main':
/in/foo.c:14:16: warning: zero-length gnu_printf format string [-Wformat-zero-length]
14 | printf("");
| ^~
/in/foo.c:15:9: warning: 'gets' is deprecated [-Wdeprecated-declarations]
15 | gets(str);
| ^~~~
In file included from /in/foo.c:1:
/usr/include/stdio.h:605:14: note: declared here
605 | extern char *gets (char *__s) __wur __attribute_deprecated__;
| ^~~~
/usr/bin/ld: /tmp/cc1z6qYb.o: in function `main':
foo.c:(.text.startup+0xc): warning: the `gets' function is dangerous and should not be used.