Language: C

#include<stdio.h>
#include<stdlib.h>

typedef struct {
  int key;
  sturct Node *prev, *next;
} Node;

Node *nil;

void init(){
  nil = (Node *)malloc(sizeof(Node));
  nil->prev = nil;
  nil->next = nil;
}

void insert(int key){
  Node *x = (Node *)malloc(sizeof(Node));
  x->key = key;
  x->next = nil->next;
  nil->next->prev = x;
  nil->next = x;
  x->prev = nil;
}

Node* listSearch(int key){
  Node *cur = nil->next;
  while ( cur != nil && cur->key != key ){
    cur = cur->next;
  }
  return cur;
}

void deleteNode(Node *t){
  if (t == nil) return;
  t->prev->next = t->next;
  t->next->prev = t->prev;
  free(t);
}

void deleteFirst(){
  deleteNode(nil->next);
}

void deleteLast(){
  deleteNode(nil->prev);
}

void deleteKey(int key){
  deleteNode(listSearch(key));
}

int main(void){
  int n, i, a, b = 0;
  char s[100];
  scanf("%d",&n);
  for(i=0;i<n;i++){
    scanf("%s",s);
    if(s[0] == 'd'){
      if(s[6] == 'F') deleteFirst();
      else if(s[6] == 'L') deleteLast();
      else {
        scanf("%d",&a);
        deleteKey(a);
      }
    }
    else {
      scanf("%d",&a);
      insert(a);
      b++;
    }
  }
  printf("%d",nil->next->key);
  Node *c = nil->next;
  for(i=0;i<b*2-n-1;i++){
    c = c->next;
    printf(" %d",c->key);
  }
  printf("\n");
  return 0;
}

Compiler output:
main.c:6:3: error: unknown type name 'sturct'; did you mean 'struct'?
    6 |   sturct Node *prev, *next;
      |   ^~~~~~
      |   struct
main.c:6:15: error: expected ':', ',', ';', '}' or '__attribute__' before '*' token
    6 |   sturct Node *prev, *next;
      |               ^
main.c: In function 'init':
main.c:13:6: error: 'Node' has no member named 'prev'
   13 |   nil->prev = nil;
      |      ^~
main.c:14:6: error: 'Node' has no member named 'next'
   14 |   nil->next = nil;
      |      ^~
main.c: In function 'insert':
main.c:20:4: error: 'Node' has no member named 'next'
   20 |   x->next = nil->next;
      |    ^~
main.c:20:16: error: 'Node' has no member named 'next'
   20 |   x->next = nil->next;
      |                ^~
main.c:21:6: error: 'Node' has no member named 'next'
   21 |   nil->next->prev = x;
      |      ^~
main.c:22:6: error: 'Node' has no member named 'next'
   22 |   nil->next = x;
      |      ^~
main.c:23:4: error: 'Node' has no member named 'prev'
   23 |   x->prev = nil;
      |    ^~
main.c: In function 'listSearch':
main.c:27:18: error: 'Node' has no member named 'next'
   27 |   Node *cur = nil->next;
      |                  ^~
main.c:29:14: error: 'Node' has no member named 'next'
   29 |     cur = cur->next;
      |              ^~
main.c: In function 'deleteNode':
main.c:36:4: error: 'Node' has no member named 'prev'
   36 |   t->prev->next = t->next;
      |    ^~
main.c:36:20: error: 'Node' has no member named 'next'
   36 |   t->prev->next = t->next;
      |                    ^~
main.c:37:4: error: 'Node' has no member named 'next'
   37 |   t->next->prev = t->prev;
      |    ^~
main.c:37:20: error: 'Node' has no member named 'prev'
   37 |   t->next->prev = t->prev;
      |                    ^~
main.c: In function 'deleteFirst':
main.c:42:17: error: 'Node' has no member named 'next'
   42 |   deleteNode(nil->next);
      |                 ^~
main.c: In function 'deleteLast':
main.c:46:17: error: 'Node' has no member named 'prev'
   46 |   deleteNode(nil->prev);
      |                 ^~
main.c: In function 'main':
main.c:73:18: error: 'Node' has no member named 'next'
   73 |   printf("%d",nil->next->key);
      |                  ^~
main.c:74:16: error: 'Node' has no member named 'next'
   74 |   Node *c = nil->next;
      |                ^~
main.c:76:10: error: 'Node' has no member named 'next'
   76 |     c = c->next;
      |          ^~