/ WanKu /

记录详情

Accepted

foo.c: In function 'main':
foo.c:11:2: warning: 'gets' is deprecated [-Wdeprecated-declarations]
   11 |  gets(a);
      |  ^~~~
In file included from /usr/include/stdio.h:867,
                 from foo.c:2:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:235:1: note: declared here
  235 | gets (char *__str)
      | ^~~~
foo.c:10:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
   10 |  scanf("%d ", &n);
      |  ^~~~~~~~~~~~~~~~
foo.c:11:2: warning: ignoring return value of 'gets', declared with attribute warn_unused_result [-Wunused-result]
   11 |  gets(a);
      |  ^~~~~~~
/usr/bin/ld: /tmp/ccGED1pM.o: in function `main':
foo.c:(.text.startup+0x5d): warning: the `gets' function is dangerous and should not be used.
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 3ms 256.0 KiB
#2 Accepted 1ms 256.0 KiB
#3 Accepted 1ms 256.0 KiB
#4 Accepted 2ms 256.0 KiB
#5 Accepted 1ms 256.0 KiB
#6 Accepted 2ms 256.0 KiB
#7 Accepted 3ms 256.0 KiB
#8 Accepted 2ms 256.0 KiB
#9 Accepted 2ms 256.0 KiB
#10 Accepted 2ms 256.0 KiB
#11 Accepted 2ms 256.0 KiB
#12 Accepted 3ms 256.0 KiB
#13 Accepted 1ms 256.0 KiB
#14 Accepted 2ms 256.0 KiB
#15 Accepted 2ms 256.0 KiB
#16 Accepted 2ms 256.0 KiB
#17 Accepted 2ms 256.0 KiB
#18 Accepted 2ms 256.0 KiB
#19 Accepted 2ms 256.0 KiB
#20 Accepted 1ms 256.0 KiB

信息

递交者
类型
递交
题目
P1007 每日一题-7 数字显示
语言
C
递交时间
2022-04-26 23:52:44
评测时间
2022-04-26 23:52:44
评测机
分数
100
总耗时
45ms
峰值内存
256.0 KiB