这份代码的语法错误怎么纠正
```c
#include<stdio.h>
#include<malloc.h>
#define ERROR 0
#define OK 1
#define ElemType int
typedef int Status;
typedef struct LNode
{
int data;
struct LNode *next;
}LNode,*LinkList;
Status ListInsert_L(LinkList &L, int i, ElemType e) { // 算法2.9
// 在带头结点的单链线性表L的第i个元素之前插入元素e
LinkList p,s;
p = L;
int j = 0;
while (p && j < i-1) { // 寻找第i-1个结点
p = p->next;
++j;
}
if (!p || j > i-1) return ERROR; // i小于1或者大于表长
s = (LinkList)malloc(sizeof(LNode)); // 生成新结点
s->data = e; s->next = p->next; // 插入L中
p->next = s;
return OK;
} // LinstInsert_L
Status ListDelete_L(LinkList &L, int i, ElemType &e) { // 算法2.10
// 在带头结点的单链线性表L中,删除第i个元素,并由e返回其值
LinkList p,q;
p = L;
int j = 0;
while (p->next && j < i-1) { // 寻找第i个结点,并令p指向其前趋
p = p->next;
++j;
}
if (!(p->next) || j > i-1) return ERROR; // 删除位置不合理
q = p->next;
p->next = q->next; // 删除并释放结点
e = q->data;
free(q);
return OK;
} // ListDelete_L
Status init(LinkList &L)
{
L=(LinkList)malloc(sizeof(LNode));
L->next=NULL;
if(!L) return ERROR;
return OK;
}
int main()
{
int m,n,i;
LNode L1,L2,L3;
init(L1);
scanf("%d",&m);
for(i=0;i<m;i++)
{
int e;
scanf("%d",&e);
ListInsert_L(L1, i+1,e);
}
init(L2);
scanf("%d",&n);
for(i=0;i<n;i++)
{
int e;
scanf("%d",&e);
ListInsert_L(L2, i+1,e);
}
init(L3);
L3=(LinkList)malloc((m+n)*sizeof(LNode));
LinkList p1,p2,p3,p1_last,p2_last;
p1=L1;
p2=L2;
p3=L3;
p1_last=L1+m-1;
p2_last=L2+n-1;
while(p1<=p1_last&&p2<=p2_last)
{
if(p1->data<=p2->data)
{p3->data=p1->data;
p1=p1->next;}
else
{
p3->data=p2->data;
p2=p2->next;
}
p3=p3->next;
}
if(p1!=NULL)
{
p3->next=p1;
}
if(p2!=NULL)
p3->next=p2;
//以下为输出
printf("List A:");
LinkList temp=L1->next;
while(temp)
{
printf("%d ",temp->data);
temp=temp->next;
}
printf("\n");
printf("List B:");
temp=L2->next;
while(temp)
{
printf("%d ",temp->data);
temp=temp->next;
}
printf("\n");
printf("List C:");
temp=L3->next;
while(temp)
{
printf("%d ",temp->data);
temp=temp->next;
}
return 0;
}
```