记录详情

Compile Error

foo.c:3:11: error: unknown type name 'cjar'; did you mean 'char'?
    3 | void play(cjar a[],char b[])
      |           ^~~~
      |           char
foo.c:5:4: warning: data definition has no type or storage class
    5 |    strcat(b,a);
      |    ^~~~~~
foo.c:5:4: warning: type defaults to 'int' in declaration of 'strcat' [-Wimplicit-int]
foo.c:5:4: warning: parameter names (without types) in function declaration
foo.c:5:4: error: conflicting types for 'strcat'; have 'int()'
In file included from foo.c:2:
/nix/store/linb70pgp53f0kygxm5wk163dx22d681-glibc-2.37-45-dev/include/string.h:149:14: note: previous declaration of 'strcat' with type 'char *(char *, const char *)'
  149 | extern char *strcat (char *__restrict __dest, const char *__restrict __src)
      |              ^~~~~~
foo.c:6:1: error: expected identifier or '(' before ')' token
    6 | )
      | ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
自测
题目
2-2 语言的起点
语言
C
递交时间
2023-12-05 15:14:36
评测时间
2023-12-05 15:14:36
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes