记录详情

Compile Error

foo.c: In function 'main':
foo.c:8:5: warning: 'gets' is deprecated [-Wdeprecated-declarations]
    8 |     gets(s,sizeof(s),stdin);
      |     ^~~~
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:8:5: error: too many arguments to function 'gets'
    8 |     gets(s,sizeof(s),stdin);
      |     ^~~~
/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__;
      |              ^~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
自测
题目
P1063 A8-7 删除字符串中一个子串
语言
C
递交时间
2023-11-11 15:25:24
评测时间
2023-11-11 15:25:24
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes