记录详情

Wrong Answer

foo.c: In function 'main':
foo.c:6:17: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'char (*)[10000]' [-Wformat=]
    6 |         scanf("%s",&s1);
      |                ~^  ~~~
      |                 |  |
      |                 |  char (*)[10000]
      |                 char *
foo.c:7:17: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'char (*)[10000]' [-Wformat=]
    7 |         scanf("%s",&s2);
      |                ~^  ~~~
      |                 |  |
      |                 |  char (*)[10000]
      |                 char *
foo.c:8:9: warning: implicit declaration of function 'Length' [-Wimplicit-function-declaration]
    8 |         Length(s1);
      |         ^~~~~~
foo.c: At top level:
foo.c:13:6: warning: conflicting types for 'Length'; have 'void(char *)'
   13 | void Length(char s[])
      |      ^~~~~~
foo.c:8:9: note: previous implicit declaration of 'Length' with type 'void(char *)'
    8 |         Length(s1);
      |         ^~~~~~
foo.c: In function 'Length':
foo.c:16:1: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
   16 | while(s[i]!=0)
      | ^~~~~
foo.c:18:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'while'
   18 |         printf("%d",i);
      |         ^~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Standard answer longer than user output. 2ms 284.0 KiB

信息

递交者
类型
自测
题目
A8-1 字符串的输出函数
语言
C
递交时间
2023-12-05 14:47:42
评测时间
2023-12-05 14:47:42
评测机
分数
0
总耗时
2ms
峰值内存
284.0 KiB