记录详情

Accepted

foo.c: In function 'main':
foo.c:19:5: warning: 'gets' is deprecated [-Wdeprecated-declarations]
   19 |     gets(a);
      |     ^~~~
In file included from foo.c:1:
/nix/store/mrgib0s2ayr81xv1q84xsjg8ijybalq3-glibc-2.38-27-dev/include/stdio.h:663:14: note: declared here
  663 | extern char *gets (char *__s) __wur __attribute_deprecated__;
      |              ^~~~
foo.c:20:5: warning: 'gets' is deprecated [-Wdeprecated-declarations]
   20 |     gets(b);
      |     ^~~~
/nix/store/mrgib0s2ayr81xv1q84xsjg8ijybalq3-glibc-2.38-27-dev/include/stdio.h:663:14: note: declared here
  663 | extern char *gets (char *__s) __wur __attribute_deprecated__;
      |              ^~~~
/nix/store/1fn92b0783crypjcxvdv6ycmvi27by0j-binutils-2.40/bin/ld: /tmp/ccSQzUbb.o: in function `main':
foo.c:(.text.startup+0xd): warning: the `gets' function is dangerous and should not be used.
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 2ms 284.0 KiB
#2 Accepted 3ms 388.0 KiB
#3 Accepted 2ms 412.0 KiB
#4 Accepted 2ms 284.0 KiB
#5 Accepted 2ms 388.0 KiB

信息

递交者
类型
递交
语言
C
递交时间
2024-01-02 18:54:01
评测时间
2024-01-02 18:54:01
评测机
分数
100
总耗时
12ms
峰值内存
412.0 KiB