Language: C++

#include<stdio.h>
#include<iostream>
using namespace std;
struct Card{char suit,value;};

void bubble(struct Card A[], int n){
  int i,j;
  bool flag=1;
  for ( i = 0; flag; i++ ){
      flag=0;
      for ( j = n-1; i < j; j-- ){
        if(A[j].value < A[j-1].value){
        swap(A[j],A[j-1]);
        flag=1;
        }
      }
  }
}

void selectinsert(struct Card A[], int n){
  int i,j,minv;
    for ( i = 0;i<n-1;i++){
      minv=i;
      for (j=i;n>j;j++){
        if(A[minv].value>A[j].value){
        minv=j;
        }
      }
      swap(A[i],A[minv]);
  }
}
void print(Struct Card A[],int N){
  for ( i = 0; i < n; i++ ){
    if ( i > 0 ) cout << " ";
    cout << A[i].suit << A[i].value;
  }
  cout << endl;
}
bool isStable(Struct Card A1[],Struct Card A2[],int n){
  for ( i = 0; i < n; i++ ){
  if (A1[i].suit != A2[i].suit){
  return falese;
  }
 return true;
 }
}


int main(){
  int n, i, j,sw;
  Card C1[100],C2[100];
  scanf("%d", &n);
  for ( i = 0; i < n; i++ ) cin >> C1[i].suit >> C1[i].value ;
  for(i=0;i<n;i++)C2[i]=C1[i];
  bubble(C1,n);
  selectinsert(C2,n);
  print(C1,n);
  cout << "Stable" << endl;
  print(C2,n);
  if (isStable(C1,C2,N){
  cout << "Stable" << endl;
  }else{
  cout << "Not stable" << endl;
  }

    return 0;
}

Compiler output:
a.cc:32:6: error: variable or field 'print' declared void
   32 | void print(Struct Card A[],int N){
      |      ^~~~~
a.cc:32:12: error: 'Struct' was not declared in this scope; did you mean 'struct'?
   32 | void print(Struct Card A[],int N){
      |            ^~~~~~
      |            struct
a.cc:32:28: error: expected primary-expression before 'int'
   32 | void print(Struct Card A[],int N){
      |                            ^~~
a.cc:39:15: error: 'Struct' was not declared in this scope; did you mean 'struct'?
   39 | bool isStable(Struct Card A1[],Struct Card A2[],int n){
      |               ^~~~~~
      |               struct
a.cc:39:32: error: 'Struct' was not declared in this scope; did you mean 'struct'?
   39 | bool isStable(Struct Card A1[],Struct Card A2[],int n){
      |                                ^~~~~~
      |                                struct
a.cc:39:49: error: expected primary-expression before 'int'
   39 | bool isStable(Struct Card A1[],Struct Card A2[],int n){
      |                                                 ^~~
a.cc:39:54: error: expression list treated as compound expression in initializer [-fpermissive]
   39 | bool isStable(Struct Card A1[],Struct Card A2[],int n){
      |                                                      ^
a.cc: In function 'int main()':
a.cc:57:3: error: 'print' was not declared in this scope; did you mean 'printf'?
   57 |   print(C1,n);
      |   ^~~~~
      |   printf
a.cc:60:22: error: 'N' was not declared in this scope
   60 |   if (isStable(C1,C2,N){
      |                      ^
a.cc:60:23: error: 'isStable' cannot be used as a function
   60 |   if (isStable(C1,C2,N){
      |                       ^
a.cc:62:4: error: expected primary-expression before 'else'
   62 |   }else{
      |    ^~~~
a.cc:62:4: error: expected ')' before 'else'
   62 |   }else{
      |    ^~~~
      |    )
a.cc:60:6: note: to match this '('
   60 |   if (isStable(C1,C2,N){
      |      ^