记录详情

Wrong Answer

/in/foo.c: In function 'main':
/in/foo.c:6:10: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'char (*)[10000]' [-Wformat=]
  scanf("%s",&s1);
          ^
/in/foo.c:7:10: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'char (*)[10000]' [-Wformat=]
  scanf("%s",&s2);
          ^
/in/foo.c:8:2: warning: implicit declaration of function 'Length' [-Wimplicit-function-declaration]
  Length(s1);
  ^~~~~~
/in/foo.c: At top level:
/in/foo.c:13:6: warning: conflicting types for 'Length'
 void Length(char s[])
      ^~~~~~
/in/foo.c:8:2: note: previous implicit declaration of 'Length' was here
  Length(s1);
  ^~~~~~
/in/foo.c: In function 'Length':
/in/foo.c:16:1: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
 while(s[i]!=0)
 ^~~~~
/in/foo.c:18:2: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'while'
  printf("%d",i);
  ^~~~~~
# 状态 耗时 内存占用
#1 Wrong Answer 1ms 224.0 KiB

信息

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