Language: C++

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

void BubbleSort(struct Card A[],int n){
	Card tmp;
	for (int i = 0; i < n; i++){
		for (int j = n - 1; j >= i; j--){
			if (C[j].value > C[j - 1]){
				tmp = C[j]; C[j] = C[j - 1]; C[j - 1] = tmp;
			}
		}
	}
}

void SelectionSort(struct Card A[],int n){
	Card tmp;
	for (int i = 0; i < n; i++){
		min = i;
		for (int j = i; j < n; j++){
			if (C[j].value < C[min].value){
				min=j
			}
		}
		tmp = C[j]; C[j] = C[j - 1]; C[j - 1] = tmp;
	}
}

void print(Card A[],int n){
	for (int i = 0; i < n; i++){
		if (i != 0)
			cout << " ";
		cout << C[i].suit << C[i].value;
	}
	cout << endl;
}
int main(){
	Card C1[100], C2[100];
	int n;
	char ch;
	cin >> n;
	for (int i = 0; i < n; i++){
		cin >> C1[i].suit >> C1[i].value;
	}
	for (int i = 0; i < n; i++)
		C2[i] = C1[i];
	BubbleSort(C1, n);
	SelectionSort(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:5:1: error: 'stuct' does not name a type; did you mean 'struct'?
    5 | stuct Card{ char suit, value };
      | ^~~~~
      | struct
a.cc: In function 'void BubbleSort(Card*, int)':
a.cc:8:14: error: aggregate 'Card tmp' has incomplete type and cannot be defined
    8 |         Card tmp;
      |              ^~~
a.cc:11:29: error: 'C' was not declared in this scope
   11 |                         if (C[j].value > C[j - 1]){
      |                             ^
a.cc: In function 'void SelectionSort(Card*, int)':
a.cc:19:14: error: aggregate 'Card tmp' has incomplete type and cannot be defined
   19 |         Card tmp;
      |              ^~~
a.cc:21:23: error: overloaded function with no contextual type information
   21 |                 min = i;
      |                       ^
a.cc:23:29: error: 'C' was not declared in this scope
   23 |                         if (C[j].value < C[min].value){
      |                             ^
a.cc:24:37: error: overloaded function with no contextual type information
   24 |                                 min=j
      |                                     ^
a.cc:27:23: error: 'C' was not declared in this scope
   27 |                 tmp = C[j]; C[j] = C[j - 1]; C[j - 1] = tmp;
      |                       ^
a.cc:27:25: error: 'j' was not declared in this scope
   27 |                 tmp = C[j]; C[j] = C[j - 1]; C[j - 1] = tmp;
      |                         ^
a.cc: In function 'void print(Card*, int)':
a.cc:35:25: error: 'C' was not declared in this scope
   35 |                 cout << C[i].suit << C[i].value;
      |                         ^
a.cc: In function 'int main()':
a.cc:40:14: error: elements of array 'Card C1 [100]' have incomplete type
   40 |         Card C1[100], C2[100];
      |              ^~
a.cc:40:14: error: storage size of 'C1' isn't known
a.cc:40:23: error: elements of array 'Card C2 [100]' have incomplete type
   40 |         Card C1[100], C2[100];
      |                       ^~
a.cc:40:23: error: storage size of 'C2' isn't known
a.cc:54:13: error: 'isStable' was not declared in this scope
   54 |         if (isStable(C1, C2, n)){
      |             ^~~~~~~~