记录详情

Wrong Answer

foo.c: In function 'main':
foo.c:7:17: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'char (*)[101]' [-Wformat=]
    7 |         scanf("%s %s",&a,&b);
      |                ~^     ~~
      |                 |     |
      |                 |     char (*)[101]
      |                 char *
foo.c:7:20: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'char (*)[101]' [-Wformat=]
    7 |         scanf("%s %s",&a,&b);
      |                   ~^     ~~
      |                    |     |
      |                    |     char (*)[101]
      |                    char *
foo.c:8:13: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
    8 |         len=strlen(a);
      |             ^~~~~~
foo.c:2:1: note: include '<string.h>' or provide a declaration of 'strlen'
    1 | #include <stdio.h>
  +++ |+#include <string.h>
    2 | int main()
foo.c:8:13: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch]
    8 |         len=strlen(a);
      |             ^~~~~~
foo.c:8:13: note: include '<string.h>' or provide a declaration of 'strlen'
foo.c:5:15: warning: unused variable 'j' [-Wunused-variable]
    5 |         int i,j,len;
      |               ^
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read Even, expect Odd. 2ms 284.0 KiB
#2 Wrong Answer Read Odd, expect Even. 1ms 284.0 KiB
#3 Wrong Answer Read Odd, expect Even. 2ms 284.0 KiB
#4 Wrong Answer Read Odd, expect Even. 1ms 284.0 KiB
#5 Wrong Answer Read Even, expect Odd. 2ms 284.0 KiB
#6 Wrong Answer Read Even, expect Odd. 2ms 284.0 KiB
#7 Wrong Answer Read Odd, expect Even. 1ms 284.0 KiB
#8 Accepted 2ms 200.0 KiB
#9 Accepted 1ms 284.0 KiB
#10 Wrong Answer Read Odd, expect Even. 1ms 284.0 KiB

信息

递交者
类型
递交
题目
P1491 D. 梅开二度
比赛
2023年新生赛(第三场)
语言
C
递交时间
2023-09-09 21:45:56
评测时间
2023-09-09 21:45:56
评测机
分数
20
总耗时
19ms
峰值内存
284.0 KiB