记录详情

Wrong Answer

foo.c: In function 'main':
foo.c:12:3: warning: 'gets' is deprecated [-Wdeprecated-declarations]
   12 |   gets(s[i]);
      |   ^~~~
In file included from /usr/include/stdio.h:867,
                 from foo.c:3:
/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%d\n",&n,&m);
      |  ^~~~~~~~~~~~~~~~~~~~~
foo.c:12:3: warning: ignoring return value of 'gets', declared with attribute warn_unused_result [-Wunused-result]
   12 |   gets(s[i]);
      |   ^~~~~~~~~~
In file included from /usr/include/stdio.h:867,
                 from foo.c:3:
In function 'gets',
    inlined from 'main' at foo.c:12:3:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:239:10: warning: call to '__gets_warn' declared with attribute warning: please use fgets or getline instead, gets can't specify buffer size [-Wattribute-warning]
  239 |   return __gets_warn (__str);
      |          ^~~~~~~~~~~~~~~~~~~
/usr/bin/ld: /tmp/ccMLH3gT.o: in function `main':
foo.c:(.text.startup+0x7b): warning: the `gets' function is dangerous and should not be used.
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 3ms 1.125 MiB
#2 Wrong Answer Read 1, expect 19. 4ms 1.125 MiB
#3 Wrong Answer Read 6, expect 66. 5ms 1.25 MiB
#4 Wrong Answer Read 1, expect 10. 3ms 1.125 MiB
#5 Wrong Answer Read 1, expect 13. 4ms 1.25 MiB
#6 Wrong Answer Read 3, expect 77. 3ms 1.25 MiB
#7 Wrong Answer Read 6, expect 80. 3ms 1.125 MiB
#8 Wrong Answer Read 2, expect 271. 2ms 1.125 MiB
#9 Wrong Answer Read 4, expect 267. 2ms 1.125 MiB
#10 Wrong Answer Read 8, expect 894. 2ms 1.125 MiB
#11 Wrong Answer Read 9, expect 993. 3ms 1.25 MiB
#12 Wrong Answer Read 8, expect 6813. 3ms 1.25 MiB
#13 Wrong Answer Read 9, expect 4911. 3ms 1.25 MiB
#14 Wrong Answer Read 4, expect 4277. 6ms 1.25 MiB
#15 Wrong Answer Read 3633, expect 5786. 4ms 1.125 MiB
#16 Wrong Answer Read 1, expect 13860. 24ms 1.375 MiB
#17 Wrong Answer Read 3, expect 33266. 29ms 1.301 MiB
#18 Wrong Answer Read 7, expect 5722. 17ms 1.375 MiB
#19 Wrong Answer Read 6, expect 62670. 28ms 1.375 MiB
#20 Wrong Answer Read 3, expect 36364. 27ms 1.367 MiB

信息

递交者
类型
递交
题目
P1347 2B Chtholly
比赛
悬赏令第二周
语言
C
递交时间
2022-04-04 15:47:48
评测时间
2022-04-04 15:47:48
评测机
分数
5
总耗时
184ms
峰值内存
1.375 MiB