记录详情

Compile Error

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)提供评测服务

信息

递交者
类型
递交
比赛
2023 程序设计与竞赛(作业8:链表的世界)
语言
C
递交时间
2023-11-25 23:27:28
评测时间
2023-11-25 23:27:28
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes