Data structures Datastrcutre LinkedList BASIC

Data structures Datastrcutre LinkedList BASIC,data-structures,linked-list,Data Structures,Linked List,使用此函数修改插入函数:- ` `Node*temp=(Node*)malloc(sizeof(struct Node))替换为Node*temp=(Node*)malloc(sizeof(Node))谢谢#塔内·卡诺加 **## GETTING COMPILE TIME ERROR ## #include<stdio.h> #include<stdlib.h> struct Node {

使用此函数修改插入函数:- `

`
Node*temp=(Node*)malloc(sizeof(struct Node))替换为
Node*temp=(Node*)malloc(sizeof(Node))谢谢#塔内·卡诺加
    **## GETTING COMPILE TIME ERROR ##
        #include<stdio.h>
        #include<stdlib.h>

        struct Node
        {
            int data;
            struct Node* next;
        };

        struct Node* head;

        void insertFirst(int value)
        {
            Node* temp = (Node*)malloc(sizeof(struct Node));
            temp -> data = value;
            temp -> next = head;
            head = temp;
        }
        void display()
        {
            struct Node* temp1 = head;
            while(temp1!=NULL)
            {
                printf("%d",temp1->data);
                temp1 = temp1->next;
            }

        }
        int main()
        {
            head = NULL;
            int numbers,i, dat;
            printf("How many numbers u want to insert?");
            scanf("%d", &numbers);
            for(i = 0; i < numbers; i++)
            {
                printf("\nEnter the number:");
                scanf("%d",&dat);
                insertFirst(dat);
                displayAll();

            }

        }



    /////////////////////////////////////////////////////////////////////
How to solve this error?
Compile time Error:

    main.c:12:24: error: expected expression before ')' token                                                                      
         Node* temp = (Node*)malloc(sizeof(struct Node));                                                                          
                            ^                                                                                                      
    main.c:13:10: error: request for member 'data' in something not a structure or union                                           
         temp -> data = value;                                                                                                     
              ^                                                                                                                    
    main.c:14:10: error: request for member 'next' in something not a structure or union                                           
         temp -> next = head;                                                                                                      
              ^                                                                                                                    
    main.c:15:10: warning: assignment from incompatible pointer type [enabled by default]                                          
         head = temp;**  
void insert(int num)
{
    if(head==NULL)
    {
        struct Node* temp = (struct Node*)malloc(sizeof(struct Node));
        temp -> data = num;
        temp -> next = NULL;
        head = temp;
    }
    else
    {
        struct Node* temp1 = (struct Node*)malloc(sizeof(struct Node));
        temp -> data = num; 
        temp -> next = head;
        head = temp;
    }
}