foo.c:6:9: error: unknown type name 'Node'
6 | Node*next;
| ^~~~
foo.c:8:1: error: unknown type name 'Node'; use 'struct' keyword to refer to the type
8 | Node *Create(char s[])
| ^~~~
| struct
foo.c: In function 'Create':
foo.c:11:9: error: unknown type name 'Node'; use 'struct' keyword to refer to the type
11 | Node*head;
| ^~~~
| struct
foo.c:12:9: error: unknown type name 'Node'; use 'struct' keyword to refer to the type
12 | Node*p=head;
| ^~~~
| struct
foo.c:15:17: error: unknown type name 'Node'; use 'struct' keyword to refer to the type
15 | Node*newp=(Node*)malloc(sizeof(Node));
| ^~~~
| struct
foo.c:15:28: error: 'Node' undeclared (first use in this function)
15 | Node*newp=(Node*)malloc(sizeof(Node));
| ^~~~
foo.c:15:28: note: each undeclared identifier is reported only once for each function it appears in
foo.c:15:33: error: expected expression before ')' token
15 | Node*newp=(Node*)malloc(sizeof(Node));
| ^
foo.c:16:21: error: request for member 'data' in something not a structure or union
16 | newp->data=s[i];
| ^~
foo.c:18:21: error: request for member 'next' in something not a structure or union
18 | newp->next=NULL;
| ^~
foo.c:19:18: error: request for member 'next' in something not a structure or union
19 | p->next=newp;
| ^~
foo.c: At top level:
foo.c:25:14: error: unknown type name 'Node'
25 | void shanchu(Node*head,char t[])
| ^~~~
foo.c:49:13: error: unknown type name 'Node'
49 | void Output(Node*head)
| ^~~~
foo.c: In function 'main':
foo.c:60:9: error: unknown type name 'Node'; use 'struct' keyword to refer to the type
60 | Node*heads=Create(s);
| ^~~~
| struct
foo.c:61:9: warning: implicit declaration of function 'shanchu' [-Wimplicit-function-declaration]
61 | shanchu(heads,t);
| ^~~~~~~
foo.c:62:9: warning: implicit declaration of function 'Output' [-Wimplicit-function-declaration]
62 | Output(heads);
| ^~~~~~
[Hydro](https://hydro.ac)提供评测服务