记录详情

Runtime Error

foo.c: In function 'main':
foo.c:13:9: warning: 'gets' is deprecated [-Wdeprecated-declarations]
   13 |         gets(str);
      |         ^~~~
In file included from foo.c:1:
/nix/store/1zsc48wwlplpkzms83m7zr94xnfalq2q-glibc-2.35-224-dev/include/stdio.h:605:14: note: declared here
  605 | extern char *gets (char *__s) __wur __attribute_deprecated__;
      |              ^~~~
/nix/store/nydwzhllkq0a21dny69zdjczh6v275lb-binutils-2.40/bin/ld: /tmp/cctC7ZA4.o: in function `main':
foo.c:(.text.startup+0xf): warning: the `gets' function is dangerous and should not be used.
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 52ms 536.0 KiB
#2 Runtime Error Segmentation fault 2ms 668.0 KiB

信息

递交者
类型
递交
题目
P1399 Problem 3C. 数组查询
比赛
悬赏令第三周
语言
C
递交时间
2023-05-11 14:43:48
评测时间
2023-05-11 14:43:48
评测机
分数
50
总耗时
55ms
峰值内存
668.0 KiB