记录详情

Wrong Answer

foo.c: In function 'main':
foo.c:8:5: warning: 'gets' is deprecated [-Wdeprecated-declarations]
    8 |     gets(s1);
      |     ^~~~
In file included from /usr/include/stdio.h:867,
                 from foo.c:1:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:235:1: note: declared here
  235 | gets (char *__str)
      | ^~~~
foo.c:9:2: warning: 'gets' is deprecated [-Wdeprecated-declarations]
    9 |  gets(s2);
      |  ^~~~
In file included from /usr/include/stdio.h:867,
                 from foo.c:1:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:235:1: note: declared here
  235 | gets (char *__str)
      | ^~~~
foo.c:14:20: warning: comparison between pointer and integer
   14 |   if(s1[i]>='a'&&s1<='z')
      |                    ^~
foo.c:19:20: warning: comparison between pointer and integer
   19 |   if(s2[i]>='a'&&s2<='z')
      |                    ^~
foo.c:8:5: warning: ignoring return value of 'gets', declared with attribute warn_unused_result [-Wunused-result]
    8 |     gets(s1);
      |     ^~~~~~~~
foo.c:9:2: warning: ignoring return value of 'gets', declared with attribute warn_unused_result [-Wunused-result]
    9 |  gets(s2);
      |  ^~~~~~~~
/usr/bin/ld: /tmp/ccvseJaj.o: in function `main':
foo.c:(.text.startup+0x4d): warning: the `gets' function is dangerous and should not be used.
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 0, expect 14. 1ms 256.0 KiB

信息

递交者
类型
自测
题目
P2998 A8-2 字符串的统计函数
语言
C
递交时间
2022-01-09 17:38:04
评测时间
2022-01-09 17:38:04
评测机
分数
0
总耗时
1ms
峰值内存
256.0 KiB