记录详情

Wrong Answer

foo.c: In function 'DD':
foo.c:12:53: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   12 |   if ((s[i] >= 'a' && s[i] <= 'z') || (s[i]) >= 'A' && s[i] <= 'Z')
      |                                       ~~~~~~~~~~~~~~^~~~~~~~~~~~~~
foo.c: In function 'main':
foo.c:22:2: warning: 'gets' is deprecated [-Wdeprecated-declarations]
   22 |  gets(s);
      |  ^~~~
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:22:2: warning: ignoring return value of 'gets', declared with attribute warn_unused_result [-Wunused-result]
   22 |  gets(s);
      |  ^~~~~~~
foo.c:23:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
   23 |  scanf("%d", &k);
      |  ^~~~~~~~~~~~~~~
/usr/bin/ld: /tmp/ccTCgFBQ.o: in function `main':
foo.c:(.text.startup+0x45): warning: the `gets' function is dangerous and should not be used.
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read [i, expect Ai. 2ms 256.0 KiB
#2 Wrong Answer Read |j, expect bj. 2ms 256.0 KiB
#3 Accepted 1ms 256.0 KiB
#4 Accepted 3ms 256.0 KiB
#5 Accepted 2ms 256.0 KiB

信息

递交者
类型
递交
题目
4-6 一个密钥的凯撒密码
比赛
2022春 C语言课程设计 作业3
语言
C
递交时间
2022-04-28 18:38:26
评测时间
2022-04-28 18:38:26
评测机
分数
60
总耗时
12ms
峰值内存
256.0 KiB