Language: C++

#include<cstdio>
#include<cstdlib>
typedef struct  node
{
	int value;
	Node* prev,* next;
}Node;
Node* head;
void Init()
{
    head=(Node*)malloc(sizeof(Node));
    head->next=head;
    head->prev=head;
}

Node* FindNode(int x)
{
	Node*temp=head->next;
	while(temp!=head&&temp->value!=x)
        temp=temp->next;
    return temp;
}
void Insert(int x)
{
	Node*temp=(Node*)malloc(sizeof(Node));
    temp->value=x;
    head->next->prev=temp;
    temp->next=head->next;
    head->next=temp;
    temp->prev=head;
}

void Delete(Node*temp)
{
	if(!temp)
        return ;
	temp->next->prev=temp->prev;
	temp->prev->next=temp->next;
    free(temp);
}

void DeleteFirst()
{
    Delete(head->next);
}
void DeleteLast()
{
	Delete(head->prev);
}

void PrintList()
{
    Node*temp=head->next;
    int flag=0;
    while(1)
    {
        if(temp=head)
            break;
        else
        {
            if(flag++>0)
                printf(" ");
            printf("%d",temp->value);
            temp=temp->next;
        }
    }
    printf("\n");
}
int main()
{
	int n;
	scanf("%d",&n);
	char str[12];
	int x;
	Init();
	/*
	while(n--)
	{
		scanf("%s%d",str,&x);
		if(str[0]=='i'){Insert(x);}
		else if(str[0]=='d'&&str[6]=='F')DeleteFirst();
		else if(str[0]=='d'&&str[6]=='L')DeleteLast();
		else if(str[0]=='d'){Delete(FindNode(x));}
	}
	*/
	for(int i = 0; i < n; i++) {
        scanf("%s %d", str, &x);
        if (str[0] == 'i') {
            Insert(x);
        }
        else if(str[0] == 'd') {
            if(str[6] == 'F')
                DeleteFirst();
            else if(str[6] == 'L')
                DeleteLast();
            else
                delete(FindNode(x));
        }
    }
    /*
    Node* temp=head->next;
    while(temp->next!=head)
    {
        printf("%d ",temp->value);
        temp=temp->next;
    }
    printf("%d\n",temp->value);
    */
    PrintList();
	return 0;
}

Compiler output:
a.cc:6:9: error: 'Node' does not name a type; did you mean 'node'?
    6 |         Node* prev,* next;
      |         ^~~~
      |         node
a.cc: In function 'void Init()':
a.cc:12:11: error: 'Node' {aka 'struct node'} has no member named 'next'
   12 |     head->next=head;
      |           ^~~~
a.cc:13:11: error: 'Node' {aka 'struct node'} has no member named 'prev'
   13 |     head->prev=head;
      |           ^~~~
a.cc: In function 'Node* FindNode(int)':
a.cc:18:25: error: 'Node' {aka 'struct node'} has no member named 'next'
   18 |         Node*temp=head->next;
      |                         ^~~~
a.cc:20:20: error: 'Node' {aka 'struct node'} has no member named 'next'
   20 |         temp=temp->next;
      |                    ^~~~
a.cc: In function 'void Insert(int)':
a.cc:27:11: error: 'Node' {aka 'struct node'} has no member named 'next'
   27 |     head->next->prev=temp;
      |           ^~~~
a.cc:28:11: error: 'Node' {aka 'struct node'} has no member named 'next'
   28 |     temp->next=head->next;
      |           ^~~~
a.cc:28:22: error: 'Node' {aka 'struct node'} has no member named 'next'
   28 |     temp->next=head->next;
      |                      ^~~~
a.cc:29:11: error: 'Node' {aka 'struct node'} has no member named 'next'
   29 |     head->next=temp;
      |           ^~~~
a.cc:30:11: error: 'Node' {aka 'struct node'} has no member named 'prev'
   30 |     temp->prev=head;
      |           ^~~~
a.cc: In function 'void Delete(Node*)':
a.cc:37:15: error: 'Node' {aka 'struct node'} has no member named 'next'
   37 |         temp->next->prev=temp->prev;
      |               ^~~~
a.cc:37:32: error: 'Node' {aka 'struct node'} has no member named 'prev'
   37 |         temp->next->prev=temp->prev;
      |                                ^~~~
a.cc:38:15: error: 'Node' {aka 'struct node'} has no member named 'prev'
   38 |         temp->prev->next=temp->next;
      |               ^~~~
a.cc:38:32: error: 'Node' {aka 'struct node'} has no member named 'next'
   38 |         temp->prev->next=temp->next;
      |                                ^~~~
a.cc: In function 'void DeleteFirst()':
a.cc:44:18: error: 'Node' {aka 'struct node'} has no member named 'next'
   44 |     Delete(head->next);
      |                  ^~~~
a.cc: In function 'void DeleteLast()':
a.cc:48:22: error: 'Node' {aka 'struct node'} has no member named 'prev'
   48 |         Delete(head->prev);
      |                      ^~~~
a.cc: In function 'void PrintList()':
a.cc:53:21: error: 'Node' {aka 'struct node'} has no member named 'next'
   53 |     Node*temp=head->next;
      |                     ^~~~
a.cc:64:24: error: 'Node' {aka 'struct node'} has no member named 'next'
   64 |             temp=temp->next;
      |                        ^~~~