foo.c: In function 'findN':
foo.c:24:17: warning: assignment to 'N *' from incompatible pointer type 'struct Node *' [-Wincompatible-pointer-types]
24 | current = current->next;
| ^
foo.c: In function 'insertN':
foo.c:45:21: warning: assignment to 'N *' from incompatible pointer type 'struct Node *' [-Wincompatible-pointer-types]
45 | current = current->next;
| ^
foo.c:47:23: warning: assignment to 'struct Node *' from incompatible pointer type 'N *' [-Wincompatible-pointer-types]
47 | current->next = newN;
| ^
foo.c: In function 'SetUnion':
foo.c:58:18: warning: assignment to 'N *' from incompatible pointer type 'struct Node *' [-Wincompatible-pointer-types]
58 | current1 = current1->next;
| ^
foo.c:64:18: warning: assignment to 'N *' from incompatible pointer type 'struct Node *' [-Wincompatible-pointer-types]
64 | current2 = current2->next;
| ^
foo.c: In function 'printList':
foo.c:74:17: warning: assignment to 'N *' from incompatible pointer type 'struct Node *' [-Wincompatible-pointer-types]
74 | current = current->next;
| ^
foo.c: At top level:
foo.c:78:15: error: unknown type name 'Node'
78 | void freeList(Node* head)
| ^~~~
foo.c: In function 'main':
foo.c:110:9: warning: implicit declaration of function 'insertNode'; did you mean 'insertN'? [-Wimplicit-function-declaration]
110 | insertNode(&list1, a1[i]);
| ^~~~~~~~~~
| insertN
foo.c:125:5: warning: implicit declaration of function 'freeList' [-Wimplicit-function-declaration]
125 | freeList(result1);
| ^~~~~~~~
[Hydro](https://hydro.ac)提供评测服务