Language: C

#include <stdio.h>

typedef struct Card{char suit, value;};

int bubble(Card a[],int N){
  int i,j,z;
  z=0;
  for(i=0;i<N;i++){
    for(j=N-1;j>=i+1;j--){
      if(a[j].value<a[j-1].value){
        Card 
        z=a[j-1];
        a[j-1]=a[j];
        a[j]=z;
      }
    }
  }
}

int select(struct Card a[],int N){
  int i,j,s,z,minj;
  z=0;
  for(i=0;i<N-1;i++){
    minj=i;
    for(j=i;j<N;j++){
      if(a[j].value<a[minj].value){
        minj=j;
      }
    }
    Card z=b[i];
    b[i]=b[minj];
    b[minj]=z;
  }
}

int print(struct Card a[],int N){
  int i;
  for(i=0;i<N;i++){
    if(i>0){
      prrintf(" ");
      }
    printf("%d",a[i].suit);
    printf("%d",a[i].value);
  }
  printf("\n");
}

int isStable(struct Card C1[],struct Card C2[],int N){
  int i,j,x,y,flag;
  flag=1;
  for(i=0;flag;i++){
      flag=0;
      for(j=i+1;j<N-1;j++){
        for(x=0;x<N-1;x++){
          for(y=x+1;y<N-1;y++){
            if(C1[i].suit==C1[j].suit&&C1[i].suit==C2[y].suit&&C1[j].suit==C2[x].suit){
              printf("Stable\n");
              flag=1;
            }
          }
        }
      }
  printf("Not stable\n");
  }
}

int main(void)
{
  Card C1[100],C2[100];
  int N;
  char ch;

  scanf("%d",&N);
  for(i=0;i<N;i++){
    scanf("%d",&a[i].suit);
    scanf("%d",&a[i].value);
    }
  for(i=0;i<N;i++){
    C2[i]=C1[i];
  }
  bubble(C1,N);
  select(C2,N);

  print(C1,N);
  printf("Stable\n");
  print(C2,N);
  if(isStable(C1,C2,N)){
    printf("Stable\n");
    }
  else{
    printf("Not stable\n");
  }
  return 0;
}

Compiler output:
main.c:3:16: warning: useless storage class specifier in empty declaration
    3 | typedef struct Card{char suit, value;};
      |                ^~~~
main.c:5:12: error: unknown type name 'Card'
    5 | int bubble(Card a[],int N){
      |            ^~~~
main.c: In function 'select':
main.c:30:5: error: unknown type name 'Card'; use 'struct' keyword to refer to the type
   30 |     Card z=b[i];
      |     ^~~~
      |     struct 
main.c:30:12: error: 'b' undeclared (first use in this function)
   30 |     Card z=b[i];
      |            ^
main.c:30:12: note: each undeclared identifier is reported only once for each function it appears in
main.c: In function 'print':
main.c:40:7: error: implicit declaration of function 'prrintf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   40 |       prrintf(" ");
      |       ^~~~~~~
      |       printf
main.c: In function 'main':
main.c:69:3: error: unknown type name 'Card'; use 'struct' keyword to refer to the type
   69 |   Card C1[100],C2[100];
      |   ^~~~
      |   struct 
main.c:74:7: error: 'i' undeclared (first use in this function)
   74 |   for(i=0;i<N;i++){
      |       ^
main.c:75:17: error: 'a' undeclared (first use in this function)
   75 |     scanf("%d",&a[i].suit);
      |                 ^
main.c:81:3: error: implicit declaration of function 'bubble' [-Wimplicit-function-declaration]
   81 |   bubble(C1,N);
      |   ^~~~~~
main.c:82:10: error: passing argument 1 of 'select' from incompatible pointer type [-Wincompatible-pointer-types]
   82 |   select(C2,N);
      |          ^~
      |          |
      |          int *
main.c:20:24: note: expected 'struct Card *' but argument is of type 'int *'
   20 | int select(struct Card a[],int N){
      |            ~~~~~~~~~~~~^~~
main.c:84:9: error: passing argument 1 of 'print' from incompatible pointer type [-Wincompatible-pointer-types]
   84 |   print(C1,N);
      |         ^~
      |         |
      |         int *
main.c:36:23: note: expected 'struct Card *' but argument is of type 'int *'
   36 | int print(struct Card a[],int N){
      |           ~~~~~~~~~~~~^~~
main.c:86:9: error: passing argument 1 of 'print' from incompatible pointer type [-Wincompatible-pointer-types]
   86 |   print(C2,N);
      |         ^~
      |         |
      |         int *
main.c:36:23: note: expected 'struct Card *' but argument is of type 'int *'
   36 | int print(struct Card a[],int N){
      |           ~~~~~~~~~~~~^~~
main.c:87:15: error: passing argument 1 of 'isStable' from incompatible pointer type [-Wincompatible-pointer-types]
   87 |   if(isStable(C1,C2,N)){
      |               ^~
      |               |
      |               int *
main.c:48:26: note: expected 'struct Card *' but argument is of type 'int *'
   48 | int isStable(struct Card C1[],struct Card C2[],int N){
      |              ~~~~~~~~~~~~^~~~
main.c:87:18: error: passing argument 2 of 'isStable' from incompatible pointer type [-Wincompatible-pointer-types]
   87 |   if(isStable(C1,C2,N)){
      |                  ^~
      |                  |
      |                  int *
main.c:48:43: note: expected 'struct Card *' but argument is of type 'int *'
   48 | int isStable(struct Card C1[],struct Card C2[],int N){
      |                               ~~~~~~~~~~~~^~~~