链栈不带头节点的代码报错,该怎么修改呢?

#include <stdio.h>
#include <stdbool.h>
#include <stdlib.h>
typedef int ElemType;
typedef struct Node{
    ElemType data;
    struct LNode *next;
}Node; 

Node *InitStack(Node *top){
    top->next=NULL;
    return top;
}

void Create(Node *top){
    Node *p;
    int i=1;
    ElemType e;
    while(i!=0){
        scanf("%d",&e);
        if(e!=9999){
            p=(Node *)malloc(sizeof(Node));
            p->data=e;
            if(top==NULL) top=p;
            else{
                p->next=top->next;
                top=p; 
            }
        }else i=0;
    }
}

void push(Node *top,ElemType e){
    Node *s=(Node *)malloc(sizeof(Node));
    s->data=e;
    s->next=top->next;
    top=s;
    printf("元素%d进栈!\n",s->data); 
}

void pop(Node *top){
    Node *s=top;
    if(s==NULL) printf("该链栈为空,无法出栈!\n");
    else{
        int e=s->data;
        printf("元素%d出栈!\n",e);
        top->next=s->next;
        free(s);
    }
}

void print(Node *top){
    Node *p=top;
    if(p==NULL) printf("该链栈为空,无法打印!\n");
    else{
        printf("该链表的内容为:");
        while(p!=NULL){
            printf("%d ",p->data);
            p=p->next;
        }
        printf("\n");
    }
}

int main(){
    Node *s;
    s=InitStack(s);
    printf("链栈初始化成功!\n");
    printf("请输入新链栈的值:\n");
    Create(s);
    print(s);
    push(s,15);
    print(s);
    pop(s);
    print(s);    
    return 0;
}

![img](https://img-mid.csdnimg.cn/release/static/image/mid/ask/859409234746118.png "#left")


你代码里根本没有LNode这个东西啊,怎么会报这个错误呢。是不是你还有别的文件啊