foo.c: In function 'main':
foo.c:22:9: warning: 'gets' is deprecated [-Wdeprecated-declarations]
22 | gets(s);
| ^~~~
In file included from foo.c:1:
/nix/store/linb70pgp53f0kygxm5wk163dx22d681-glibc-2.37-45-dev/include/stdio.h:605:14: note: declared here
605 | extern char *gets (char *__s) __wur __attribute_deprecated__;
| ^~~~
foo.c:23:9: warning: 'gets' is deprecated [-Wdeprecated-declarations]
23 | gets(s1);
| ^~~~
/nix/store/linb70pgp53f0kygxm5wk163dx22d681-glibc-2.37-45-dev/include/stdio.h:605:14: note: declared here
605 | extern char *gets (char *__s) __wur __attribute_deprecated__;
| ^~~~
foo.c:24:9: warning: 'gets' is deprecated [-Wdeprecated-declarations]
24 | gets(s2);
| ^~~~
/nix/store/linb70pgp53f0kygxm5wk163dx22d681-glibc-2.37-45-dev/include/stdio.h:605:14: note: declared here
605 | extern char *gets (char *__s) __wur __attribute_deprecated__;
| ^~~~
foo.c:47:18: error: stray '#' in program
47 | }#include <stdio.h>
| ^
foo.c:47:19: error: 'include' undeclared (first use in this function)
47 | }#include <stdio.h>
| ^~~~~~~
foo.c:47:19: note: each undeclared identifier is reported only once for each function it appears in
foo.c:47:28: error: 'stdio' undeclared (first use in this function); did you mean 'stdin'?
47 | }#include <stdio.h>
| ^~~~~
| stdin
foo.c:49:1: error: expected expression before 'int'
49 | int F(char s[], int len, int si, int len1, char s2[], int len2)
| ^~~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务