Language: C

#include<stdio.h>
 
typedef struct{
  char mark;
  int  num;
} card;
int main()
{
   
  int n, i, j, minj, stable;
  card data[35];
  card data_copy[35];
  card A;
  stable = 1;
  scanf("%d", &n);
  for(i = 0; i < n; i++){
    scanf("%1s%d", &data[i].mark, &data[i].num);
  }
   
  for(i = 0; i < n; i++){
    data_copy[i] = data[i];
  }
   
  //Bubble
  for(i = 0; i < n; i++){
    for(j = n-1; j > i; j--){
      if (data[j].num < data[j-1].num)
        A = data[j];
        data[j] = data[j-1];
        data[j-1] = A;
      }
    }
  }
   
  printf("%s%d", data[1].mark, data[1].num);
  for (i = 1; i < n; i++){
    printf(" %s%d", data[i].mark, data[i].num);
  }
  printf("\n");
  printf("Stable\n");
 
  //Selection
 
  for(i = 0; i < n; i++){
    data[i] = data_copy[i];
  }
   
  for(i = 0; i < n; i++){
    minj = i;
    for(j = i; j < n; j++){
      if(data[j].num < data[minj].num);
        if data[j].num == data[minj]{
          stable = 0;
        }
        minj = j;
      }
      A = data[i];
      data[i] = data[minj];
      data[minj] = A;
    }
  }
   
  printf("%s%d", data[1].mark, data[1],num);
  for(i = 0; i < n; i++){
    printf(" %s%d", data[i].mark, data[i].num);
  }
  printf("\n");
  if (stable == 1){
    printf("Stable");
  }else{
    printf("Not stable");
  }
}

Compiler output:
main.c:35:10: error: expected declaration specifiers or '...' before string constant
   35 |   printf("%s%d", data[1].mark, data[1].num);
      |          ^~~~~~
main.c:35:18: error: unknown type name 'data'
   35 |   printf("%s%d", data[1].mark, data[1].num);
      |                  ^~~~
main.c:35:32: error: unknown type name 'data'
   35 |   printf("%s%d", data[1].mark, data[1].num);
      |                                ^~~~
main.c:36:3: error: expected identifier or '(' before 'for'
   36 |   for (i = 1; i < n; i++){
      |   ^~~
main.c:36:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
   36 |   for (i = 1; i < n; i++){
      |                 ^
main.c:36:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
   36 |   for (i = 1; i < n; i++){
      |                       ^~
main.c:39:10: error: expected declaration specifiers or '...' before string constant
   39 |   printf("\n");
      |          ^~~~
main.c:40:10: error: expected declaration specifiers or '...' before string constant
   40 |   printf("Stable\n");
      |          ^~~~~~~~~~
main.c:44:3: error: expected identifier or '(' before 'for'
   44 |   for(i = 0; i < n; i++){
      |   ^~~
main.c:44:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
   44 |   for(i = 0; i < n; i++){
      |                ^
main.c:44:22: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
   44 |   for(i = 0; i < n; i++){
      |                      ^~
main.c:48:3: error: expected identifier or '(' before 'for'
   48 |   for(i = 0; i < n; i++){
      |   ^~~
main.c:48:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
   48 |   for(i = 0; i < n; i++){
      |                ^
main.c:48:22: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
   48 |   for(i = 0; i < n; i++){
      |                      ^~
main.c:61:3: error: expected identifier or '(' before '}' token
   61 |   }
      |   ^
main.c:63:10: error: expected declaration specifiers or '...' before string constant
   63 |   printf("%s%d", data[1].mark, data[1],num);
      |          ^~~~~~
main.c:63:18: error: unknown type name 'data'
   63 |   printf("%s%d", data[1].mark, data[1],num);
      |                  ^~~~
main.c:63:32: error: unknown type name 'data'
   63 |   printf("%s%d", data[1].mark, data[1],num);
      |                                ^~~~
main.c:63:40: error: unknown type name 'num'; did you mean 'enum'?
   63 |   printf("%s%d", data[1].mark, data[1],num);
      |                                        ^~~
      |                                        enum
main.c:64:3: error: expected identifier or '(' before 'for'
   64 |   for(i = 0; i < n; i++){
      |   ^~~
main.c:64:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
   64 |   for(i = 0; i < n; i++){
      |                ^
main.c:64:22: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
   64 |   for(i = 0; i < n; i++){
      |                      ^~
main.c:67:10: error: expected declaration specifiers or '...' before string constant
   67 |   printf("\n");
      |          ^~~~
main.c:68:3: error: expected identifier or '(' before 'if'
   68 |   if (stable == 1){
      |   ^~
main.c:70:4: error: expected identifier or '(' before 'else'
   70 |   }else{
      |    ^~~~
main.c:73:1: error: expected identifier or '(' before '}' token
   73 | }
      | ^