foo.c:4:9: error: unknown type name 'Node'
4 | Node* next;
| ^~~~
foo.c:6:13: error: unknown type name 'Node'
6 | void Output(Node* head) {
| ^~~~
foo.c:13:1: error: unknown type name 'Node'; use 'struct' keyword to refer to the type
13 | Node* create(int arr[], int n) {
| ^~~~
| struct
foo.c: In function 'create':
foo.c:14:9: error: unknown type name 'Node'; use 'struct' keyword to refer to the type
14 | Node* head = NULL;
| ^~~~
| struct
foo.c:17:17: error: unknown type name 'Node'; use 'struct' keyword to refer to the type
17 | Node* newp = new Node;
| ^~~~
| struct
foo.c:17:30: error: 'new' undeclared (first use in this function); did you mean 'newp'?
17 | Node* newp = new Node;
| ^~~
| newp
foo.c:17:30: note: each undeclared identifier is reported only once for each function it appears in
foo.c:17:34: error: expected ',' or ';' before 'Node'
17 | Node* newp = new Node;
| ^~~~
foo.c:18:21: error: request for member 'data' in something not a structure or union
18 | newp->data = arr[i];
| ^~
foo.c:19:21: error: request for member 'next' in something not a structure or union
19 | newp->next = head;
| ^~
foo.c: At top level:
foo.c:24:1: error: unknown type name 'Node'; use 'struct' keyword to refer to the type
24 | Node* Unique(Node* head) {
| ^~~~
| struct
foo.c:24:14: error: unknown type name 'Node'
24 | Node* Unique(Node* head) {
| ^~~~
foo.c:41:1: error: unknown type name 'Node'; use 'struct' keyword to refer to the type
41 | Node* SetInter(Node* head1, Node* head2) {
| ^~~~
| struct
foo.c:41:16: error: unknown type name 'Node'
41 | Node* SetInter(Node* head1, Node* head2) {
| ^~~~
foo.c:41:29: error: unknown type name 'Node'
41 | Node* SetInter(Node* head1, Node* head2) {
| ^~~~
foo.c: In function 'main':
foo.c:57:9: error: unknown type name 'Node'; use 'struct' keyword to refer to the type
57 | Node* head1 = NULL,*head2=NULL,*head3=NULL,*head4=NULL,*head5=NULL;
| ^~~~
| struct
foo.c:69:17: warning: implicit declaration of function 'Unique' [-Wimplicit-function-declaration]
69 | head1 = Unique(head1);
| ^~~~~~
foo.c:69:15: warning: assignment to 'int *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
69 | head1 = Unique(head1);
| ^
foo.c:70:15: warning: assignment to 'int *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
70 | head2 = Unique(head2);
| ^
foo.c:71:15: warning: assignment to 'int *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
71 | head3 = Unique(head3);
| ^
foo.c:72:17: warning: implicit declaration of function 'SetInter' [-Wimplicit-function-declaration]
72 | head4 = SetInter(head1,head2);
| ^~~~~~~~
foo.c:72:15: warning: assignment to 'int *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
72 | head4 = SetInter(head1,head2);
| ^
foo.c:73:15: warning: assignment to 'int *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
73 | head5 = SetInter(head1,head3);
| ^
foo.c:74:9: warning: implicit declaration of function 'Output' [-Wimplicit-function-declaration]
74 | Output(head4);
| ^~~~~~
[Hydro](https://hydro.ac)提供评测服务