记录详情

Compile Error

foo.c: In function 'main':
foo.c:6:25: error: expected ')' before 's2'
    6 |         scanf("%s %s",s1 s2);
      |              ~          ^~~
      |                         )
foo.c:6:20: warning: format '%s' expects a matching 'char *' argument [-Wformat=]
    6 |         scanf("%s %s",s1 s2);
      |                   ~^
      |                    |
      |                    char *
foo.c:7:9: warning: implicit declaration of function 'Length' [-Wimplicit-function-declaration]
    7 |         Length(s1);
      |         ^~~~~~
foo.c: At top level:
foo.c:12:6: warning: conflicting types for 'Length'; have 'void(char *)'
   12 | void Length(char s[])
      |      ^~~~~~
foo.c:7:9: note: previous implicit declaration of 'Length' with type 'void(char *)'
    7 |         Length(s1);
      |         ^~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

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