Language: C

#include<stdio.h>
#define N 36

struct Card{
  char suit;
  int value;
};

Card C1[N],C2[N];

void BubbleSort(int);
void SelectSort(int);


int main(){
  int n, i,a;
  char ch;

  scanf("%d%c", &n, &ch);
  for ( i = 1; i <= n; i++ ){
    scanf("%c%d%c", &C1[i].suit, &C1[i].value, &ch);
  }

  BubbleSort(n);
  SelectSort(n);  

  
}

void BubbleSort(int n){
  int i,j;

  for(i=0; i<n; i++){
    for(j=n-1; j>i; j--){
      if(C1[j].value < C1[j-1].value){
	C2[j].value = C1[j-1].value;
	C2[j].suit = C1[j-1].suit;
	C2[j-1].value = C1[j].value;
	C2[j-1].suit = C[j].suit;
      }
    }
  }
  for(i=0; i<n; i++){
    printf("%c%d ",C2[i].suit,C2[i].value);
  }  

}

void SelectSort(int n){
  int i,j,mini;

  for(i=0; i<n; i++){
    mini = i;
    for(j=i; j<n; j++){
      if(C1[j].value < C1[mini].value){
        C2[j].value = C1[j-1].value;
        C2[j].suit = C1[j-1].suit;
        C2[j-1].value = C1[j].value;
        C2[j-1].suit = C[j].suit;
      }
    }
  }
  for(i=0; i<n; i++){
    printf("%c%d ",C2[i].suit,C2[i].value);
  }

}

Compiler output:
main.c:9:1: error: unknown type name 'Card'; use 'struct' keyword to refer to the type
    9 | Card C1[N],C2[N];
      | ^~~~
      | struct 
main.c: In function 'main':
main.c:21:27: error: request for member 'suit' in something not a structure or union
   21 |     scanf("%c%d%c", &C1[i].suit, &C1[i].value, &ch);
      |                           ^
main.c:21:40: error: request for member 'value' in something not a structure or union
   21 |     scanf("%c%d%c", &C1[i].suit, &C1[i].value, &ch);
      |                                        ^
main.c: In function 'BubbleSort':
main.c:35:15: error: request for member 'value' in something not a structure or union
   35 |       if(C1[j].value < C1[j-1].value){
      |               ^
main.c:35:31: error: request for member 'value' in something not a structure or union
   35 |       if(C1[j].value < C1[j-1].value){
      |                               ^
main.c:36:14: error: request for member 'value' in something not a structure or union
   36 |         C2[j].value = C1[j-1].value;
      |              ^
main.c:36:30: error: request for member 'value' in something not a structure or union
   36 |         C2[j].value = C1[j-1].value;
      |                              ^
main.c:37:14: error: request for member 'suit' in something not a structure or union
   37 |         C2[j].suit = C1[j-1].suit;
      |              ^
main.c:37:29: error: request for member 'suit' in something not a structure or union
   37 |         C2[j].suit = C1[j-1].suit;
      |                             ^
main.c:38:16: error: request for member 'value' in something not a structure or union
   38 |         C2[j-1].value = C1[j].value;
      |                ^
main.c:38:30: error: request for member 'value' in something not a structure or union
   38 |         C2[j-1].value = C1[j].value;
      |                              ^
main.c:39:16: error: request for member 'suit' in something not a structure or union
   39 |         C2[j-1].suit = C[j].suit;
      |                ^
main.c:39:24: error: 'C' undeclared (first use in this function)
   39 |         C2[j-1].suit = C[j].suit;
      |                        ^
main.c:39:24: note: each undeclared identifier is reported only once for each function it appears in
main.c:44:25: error: request for member 'suit' in something not a structure or union
   44 |     printf("%c%d ",C2[i].suit,C2[i].value);
      |                         ^
main.c:44:36: error: request for member 'value' in something not a structure or union
   44 |     printf("%c%d ",C2[i].suit,C2[i].value);
      |                                    ^
main.c: In function 'SelectSort':
main.c:55:15: error: request for member 'value' in something not a structure or union
   55 |       if(C1[j].value < C1[mini].value){
      |               ^
main.c:55:32: error: request for member 'value' in something not a structure or union
   55 |       if(C1[j].value < C1[mini].value){
      |                                ^
main.c:56:14: error: request for member 'value' in something not a structure or union
   56 |         C2[j].value = C1[j-1].value;
      |              ^
main.c:56:30: error: request for member 'value' in something not a structure or union
   56 |         C2[j].value = C1[j-1].value;
      |                              ^
main.c:57:14: error: request for member 'suit' in something not a structure or union
   57 |         C2[j].suit = C1[j-1].suit;
      |              ^
main.c:57:29: error: request for member 'suit' in something not a structure or union
   57 |         C2[j].suit = C1[j-1].suit;
      |                             ^
main.c:58:16: error: request for member 'value' in something not a structure or union
   58 |         C2[j-1].value = C1[j].value;
      |                ^
main.c:58:30: error: request for member 'value' in something not a structure or union
   58 |         C2[j-1].value = C1[j].value;
      |                              ^
main.c:59:16: error: request for member 'suit' in something not a structure or union
   59 |         C2[j-1].suit = C[j].suit;
      |                ^
main.c:59:24: error: 'C' undeclared (first use in this function)
   59 |         C2[j-1].suit = C[j].suit;
      |                        ^
main.c:64:25: error: request for member 'suit' in something not a structure or union
   64 |     printf("%c%d ",C2[i].suit,C2[i].value);
      |                         ^
main.c:64:36: error: request for member 'value' in something not a structure or union
   64 |     printf("%c%d ",C2[i].suit,C2[i].value);
      |                                    ^