请教:下面的算法错在哪里?
typedef int ElemTpye;
typedef struct{
ElemTpye *elem;
int length;
int listsize;
}SpList;
Status InitList_Sq(SqList &L){
L.elem=(ElemType*)malloc(LIST_SIZE*sizeof(ElemType));
L.length=0;
L.listsize=LIST_INIT.SIZE;
return OK;}
main(){
InitList_Sq(SqList A);
InitList_Sq(SqList B);
}