记录详情

Wrong Answer

foo.c: In function 'main':
foo.c:7:9: warning: 'gets' is deprecated [-Wdeprecated-declarations]
    7 |         gets(str);
      |         ^~~~
In file included from foo.c:1:
/nix/store/ck17nf5q2m51d9jpkpsirx91s64vh202-glibc-2.35-163-dev/include/stdio.h:605:14: note: declared here
  605 | extern char *gets (char *__s) __wur __attribute_deprecated__;
      |              ^~~~
foo.c:26:12: warning: 'c' may be used uninitialized in this function [-Wmaybe-uninitialized]
   26 |         if (c == '+')
      |            ^
/nix/store/dpxy5cr7cm0nch0qvq2qygs9jwnmhiy5-binutils-2.38/bin/ld: /tmp/cc1pVdoX.o: in function `main':
foo.c:(.text.startup+0x8): warning: the `gets' function is dangerous and should not be used.
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer 2d1 < hello, world 1ms 256.0 KiB
#2 Wrong Answer 2d1 < hello, world 2ms 256.0 KiB
#3 Wrong Answer 2d1 < hello, world 1ms 256.0 KiB
#4 Wrong Answer 2d1 < hello, world 1ms 256.0 KiB
#5 Wrong Answer 2d1 < hello, world 2ms 256.0 KiB

信息

递交者
类型
递交
题目
3-5 计算器
比赛
2022年迎新赛(第一场)
语言
C
递交时间
2022-08-15 18:48:45
评测时间
2022-08-15 18:48:45
评测机
分数
0
总耗时
8ms
峰值内存
256.0 KiB