foo.c:2: warning: ignoring '#pragma warning ' [-Wunknown-pragmas]
2 | #pragma warning(disable:4996)
|
foo.c:7:5: error: unknown type name 'Node'
7 | Node* next;
| ^~~~
foo.c:10:12: error: unknown type name 'Node'
10 | int Search(Node* head, int x)
| ^~~~
foo.c:25:13: error: unknown type name 'Node'
25 | void Insert(Node* head, int x)
| ^~~~
foo.c: In function 'main':
foo.c:49:5: error: unknown type name 'Node'; use 'struct' keyword to refer to the type
49 | Node* head = NULL;
| ^~~~
| struct
foo.c:53:9: warning: implicit declaration of function 'Insert' [-Wimplicit-function-declaration]
53 | Insert(head, k);
| ^~~~~~
foo.c:56:12: warning: implicit declaration of function 'Search' [-Wimplicit-function-declaration]
56 | int h= Search(head, x);
| ^~~~~~
[Hydro](https://hydro.ac)提供评测服务