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* Merge(Node* head1, Node* head2) {
| ^~~~
| struct
foo.c:24:13: error: unknown type name 'Node'
24 | Node* Merge(Node* head1, Node* head2) {
| ^~~~
foo.c:24:26: error: unknown type name 'Node'
24 | Node* Merge(Node* head1, Node* head2) {
| ^~~~
foo.c: In function 'main':
foo.c:63:9: error: unknown type name 'Node'; use 'struct' keyword to refer to the type
63 | Node* head1 = NULL,*head2=NULL,*head3=NULL,*head4=NULL,*head5=NULL;
| ^~~~
| struct
foo.c:75:17: warning: implicit declaration of function 'Merge' [-Wimplicit-function-declaration]
75 | head4 = Merge(head1,head2);
| ^~~~~
foo.c:75:15: warning: assignment to 'int *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
75 | head4 = Merge(head1,head2);
| ^
foo.c:76:15: warning: assignment to 'int *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
76 | head5 = Merge(head1,head3);
| ^
foo.c:77:9: warning: implicit declaration of function 'Output' [-Wimplicit-function-declaration]
77 | Output(head4);
| ^~~~~~
[Hydro](https://hydro.ac)提供评测服务