记录详情

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:19: warning: implicit declaration of function 'Diff' [-Wimplicit-function-declaration]
    7 |    printf("%d %d",Diff(s1) Diff(s2));
      |                   ^~~~
foo.c:7:27: error: expected ')' before 'Diff'
    7 |    printf("%d %d",Diff(s1) Diff(s2));
      |          ~                ^~~~~
      |                           )
foo.c:7:16: warning: format '%d' expects a matching 'int' argument [-Wformat=]
    7 |    printf("%d %d",Diff(s1) Diff(s2));
      |               ~^
      |                |
      |                int
foo.c:5:24: warning: unused variable 's2' [-Wunused-variable]
    5 |     char s1[10000]={0},s2[10000]={0};
      |                        ^~
foo.c: In function 'Diff':
foo.c:16:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   16 |         if(s[k]>='a'&&s[k]<='z')
      |         ^~
foo.c:18:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
   18 |                 if(s[k]>='A'&&s[k]<='Z')
      |                 ^~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
自测
题目
A8-3 字符串的统计函数
语言
C
递交时间
2023-12-05 15:19:20
评测时间
2023-12-05 15:19:20
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes