foo.c:3: warning: ignoring '#pragma warning ' [-Wunknown-pragmas]
3 | #pragma warning(disable:4996)
|
foo.c:11:12: error: unknown type name 'Node'
11 | int Search(Node* head, int x)
| ^~~~
foo.c:26:13: error: unknown type name 'Node'
26 | void Insert(Node* &head, int x)
| ^~~~
foo.c: In function 'main':
foo.c:50:5: error: unknown type name 'Node'; use 'struct' keyword to refer to the type
50 | Node* head = NULL;
| ^~~~
| struct
foo.c:54:9: warning: implicit declaration of function 'Insert' [-Wimplicit-function-declaration]
54 | Insert(head, k);
| ^~~~~~
foo.c:57:12: warning: implicit declaration of function 'Search'; did you mean 'bsearch'? [-Wimplicit-function-declaration]
57 | int h= Search(head, x);
| ^~~~~~
| bsearch
[Hydro](https://hydro.ac)提供评测服务