foo.c: In function 'InsertHead':
foo.c:23:20: error: 'new' undeclared (first use in this function); did you mean 'newp'?
23 | Node *newp=new Node; newp->data=x;
| ^~~
| newp
foo.c:23:20: note: each undeclared identifier is reported only once for each function it appears in
foo.c:23:24: error: expected ',' or ';' before 'Node'
23 | Node *newp=new Node; newp->data=x;
| ^~~~
foo.c: In function 'Insert':
foo.c:40:20: error: 'new' undeclared (first use in this function); did you mean 'newp'?
40 | Node *newp=new Node; newp->data=x;
| ^~~
| newp
foo.c:40:24: error: expected ',' or ';' before 'Node'
40 | Node *newp=new Node; newp->data=x;
| ^~~~
[Hydro](https://hydro.ac)提供评测服务