记录详情

Compile Error

/in/foo.c:6:5: error: unknown type name 'Node'
     Node* next;
     ^~~~
/in/foo.c:9:1: error: unknown type name 'Node'
 Node* Insert(Node* head, int x)
 ^~~~
/in/foo.c:9:1: note: use 'struct' keyword to refer to the type
/in/foo.c:9:14: error: unknown type name 'Node'
 Node* Insert(Node* head, int x)
              ^~~~
/in/foo.c:32:13: error: unknown type name 'Node'
 void Printf(Node* node)
             ^~~~
/in/foo.c: In function 'main':
/in/foo.c:45:5: error: unknown type name 'Node'
     Node* head = NULL;
     ^~~~
/in/foo.c:45:5: note: use 'struct' keyword to refer to the type
/in/foo.c:49:14: warning: implicit declaration of function 'Insert' [-Wimplicit-function-declaration]
         head=Insert(head, k);
              ^~~~~~
/in/foo.c:49:13: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
         head=Insert(head, k);
             ^
/in/foo.c:52:9: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
     head=Insert(head, k);
         ^
/in/foo.c:53:5: warning: implicit declaration of function 'Printf' [-Wimplicit-function-declaration]
     Printf(head);
     ^~~~~~

信息

递交者
类型
递交
题目
A7-5 数组的有序插入函数
比赛
2023 程序设计与竞赛(作业8:链表的世界)
语言
C
递交时间
2023-11-25 10:57:06
评测时间
2023-11-25 10:57:06
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes