permission denied ld returned 1 exit status 是怎么一回事啊 听别人的360关了也不行啊
#include <cstdlib>#include <iostream>
#include <malloc.h>
#define status int
#define FALSE -1
#define OK 1
#define ElemType int
using namespace std;
typedef struct LNode
{ElemType data;
struct LNode *next;}*LinkList;
status initlist(LinkList &L)
{
if((L=(LinkList)malloc(sizeof(LNode)))==NULL)return FALSE;
L->next=NULL;
return OK; }
status CreateList(LinkList &L,int n)
{ int j;
LinkList p,q;
q=L;
for(j=0;j<n;j++)
{
p=(LinkList)malloc(sizeof(LNode));
scanf("%d",&p->data) ;
q->next=p;
q=p;
}
q->next=NULL;
return OK;
}
void ListDelete(LinkList &L)
{LinkList p,q,r;
p=L;
q=p;
p=p->next;
while ((p=p->next)!=NULL)
{q=p;
p=p->next;
if(p->data==q->data)
{q->next=p->next;
r=p;
p=p->next;
free(q);}
}}
status DisplayList(LinkList L){
LinkList p;
p=p->next;
while((p->next)!=NULL)
{
printf("%d\n",p->data);
p=p->next;}
return OK; }
int main()
{int i,j;
LinkList La;
initlist (La);
printf("请输入链表长度");
printf("%d",&j);
printf("请输入元素:\n");
scanf("%d",&i);
CreateList(La,j);
DisplayList(La);
ListDelete(La);
DisplayList(La);
system("pause");
return 0;}
我用的是Dev c++ 怎么总是出来permission denied ld returned 1 exit status 啊
请大家帮帮忙啊