记录详情

Accepted

foo.c: In function 'main':
foo.c:6:9: warning: 'gets' is deprecated [-Wdeprecated-declarations]
    6 |         gets(s);
      |         ^~~~
In file included from foo.c:1:
/nix/store/rffag931pvbdiabwwa539wnwg1piqpx0-glibc-2.35-163-dev/include/stdio.h:605:14: note: declared here
  605 | extern char *gets (char *__s) __wur __attribute_deprecated__;
      |              ^~~~
foo.c:11:28: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   11 |                 if(s[i]>=65&&s[i]<=90||s[i]>=97&&s[i]<=122)
      |                    ~~~~~~~~^~~~~~~~~~
foo.c:14:49: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   14 |                         if(s[i]+k>122||s[i]+k>90&&s[i]+k<97)
      |                                        ~~~~~~~~~^~~~~~~~~~~
/nix/store/jfkmqz20q8fsaqizcml86adxqyzlwllx-binutils-2.38/bin/ld: /tmp/ccbw3HPT.o: in function `main':
foo.c:(.text.startup+0x10): warning: the `gets' function is dangerous and should not be used.
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 2ms 256.0 KiB
#2 Accepted 2ms 256.0 KiB
#3 Accepted 2ms 256.0 KiB
#4 Accepted 2ms 256.0 KiB
#5 Accepted 3ms 384.0 KiB

信息

递交者
类型
递交
题目
4-6 一个密钥的凯撒密码
语言
C
递交时间
2022-10-07 15:53:19
评测时间
2022-10-07 15:53:19
评测机
分数
100
总耗时
14ms
峰值内存
384.0 KiB