记录详情

Compile Error

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)提供评测服务

信息

递交者
类型
递交
题目
P2968 4-3 爱情故事
语言
C
递交时间
2023-12-05 12:59:17
评测时间
2023-12-05 12:59:17
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes