Language: C

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

struct unit{
  int a;
  int number;
};

int main(void){
  int N,i,j;
  unit *A;
  scanf("%d",&N);
  A=(unit*)malloc(sizeof(unit)*N);
  for(i=0;i<N;i++){
    scanf("%d",&A[i].a);
    A[i].number=i;
  }
  for(i=0;i<2;i++){
    for(j=N-1;j>i;j--){
      if(A[j].a>A[j-1].a){
        int tmpA,tmpnum;
        tmpA=A[j-1].a;
        tmpnum=A[j-1].number;
        A[j-1].a=A[j].a;
        A[j-1].number=A[j].number;
        A[j].a=tmpA;
        A[j].number=tmpnum;
      }
    }
  }
  for(i=0;i<N;i++){
    if(i!=A[0].number){
      printf("%d\n",A[0].a);
    }else{
      printf("%d\n",A[1].a);
    }
  }
  free(A);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:3: error: unknown type name 'unit'; use 'struct' keyword to refer to the type
   11 |   unit *A;
      |   ^~~~
      |   struct 
main.c:13:6: error: 'unit' undeclared (first use in this function)
   13 |   A=(unit*)malloc(sizeof(unit)*N);
      |      ^~~~
main.c:13:6: note: each undeclared identifier is reported only once for each function it appears in
main.c:13:11: error: expected expression before ')' token
   13 |   A=(unit*)malloc(sizeof(unit)*N);
      |           ^
main.c:15:21: error: request for member 'a' in something not a structure or union
   15 |     scanf("%d",&A[i].a);
      |                     ^
main.c:16:9: error: request for member 'number' in something not a structure or union
   16 |     A[i].number=i;
      |         ^
main.c:20:14: error: request for member 'a' in something not a structure or union
   20 |       if(A[j].a>A[j-1].a){
      |              ^
main.c:20:23: error: request for member 'a' in something not a structure or union
   20 |       if(A[j].a>A[j-1].a){
      |                       ^
main.c:22:20: error: request for member 'a' in something not a structure or union
   22 |         tmpA=A[j-1].a;
      |                    ^
main.c:23:22: error: request for member 'number' in something not a structure or union
   23 |         tmpnum=A[j-1].number;
      |                      ^
main.c:24:15: error: request for member 'a' in something not a structure or union
   24 |         A[j-1].a=A[j].a;
      |               ^
main.c:24:22: error: request for member 'a' in something not a structure or union
   24 |         A[j-1].a=A[j].a;
      |                      ^
main.c:25:15: error: request for member 'number' in something not a structure or union
   25 |         A[j-1].number=A[j].number;
      |               ^
main.c:25:27: error: request for member 'number' in something not a structure or union
   25 |         A[j-1].number=A[j].number;
      |                           ^
main.c:26:13: error: request for member 'a' in something not a structure or union
   26 |         A[j].a=tmpA;
      |             ^
main.c:27:13: error: request for member 'number' in something not a structure or union
   27 |         A[j].number=tmpnum;
      |             ^
main.c:32:15: error: request for member 'number' in something not a structure or union
   32 |     if(i!=A[0].number){
      |               ^
main.c:33:25: error: request for member 'a' in something not a structure or union
   33 |       printf("%d\n",A[0].a);
      |                         ^
main.c:35:25: error: request for member 'a' in something not a structure or union
   35 |       printf("%d\n",A[1].a);
      |                         ^