Language: C++

#include<iostream>
using namespace std;

struct Card { char suit, value; };
void bubble(struct Card A[], int N) {
　for ( int i = 0; i < N; i++) {
　　for ( int j = N - 1; j >= i + 1: j-- )　｛
　　　if ( A[j].value < A[j - 1].value ) {
        Card t = A[j]; A[j] = A[j - 1]; A[j - 1] = t;
}
}
}

void selection(struct Card A[], int N) {
for ( int i = 0; i < N; i++ ) {
int minj = i;
for ( int j =  i; j < N; j++ ) {
if ( A[j].value < A[minj].value ) minj = j;
}
Card t = A[i]; A[i] = A[minj]; A[minj] = t;
}
}

void print(struct Card A[], int N) {
for ( int i = 0; i < N; i++ ) {
if ( i > 0 ) cout << " ";
cout << A[i].suit << A[i].value;
}
cout << endl;
}


bool isStable(struct Card C1[], struct Card C2[], int N) {
 for ( int i = 0; i < N; i++ ) {
if ( C1[i].suit != C2[i].suit ) return false;
}
return true;
}

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];

bubble(C1, N);
selection(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:6:1: error: extended character 　 is not valid in an identifier
    6 | 　for ( int i = 0; i < N; i++) {
      | ^
a.cc:7:1: error: extended character 　 is not valid in an identifier
    7 | 　　for ( int j = N - 1; j >= i + 1: j-- )　｛
      | ^
a.cc:7:1: error: extended character 　 is not valid in an identifier
a.cc:7:43: error: extended character 　 is not valid in an identifier
    7 | 　　for ( int j = N - 1; j >= i + 1: j-- )　｛
      |                                           ^
a.cc:8:1: error: extended character 　 is not valid in an identifier
    8 | 　　　if ( A[j].value < A[j - 1].value ) {
      | ^
a.cc:8:1: error: extended character 　 is not valid in an identifier
a.cc:8:1: error: extended character 　 is not valid in an identifier
a.cc:56:9: error: extended character 　 is not valid in an identifier
   56 | cout << "Stable"　<< endl;
      |         ^
a.cc: In function 'void bubble(Card*, int)':
a.cc:6:9: error: expected primary-expression before 'int'
    6 | 　for ( int i = 0; i < N; i++) {
      |         ^~~
a.cc:6:20: error: 'i' was not declared in this scope
    6 | 　for ( int i = 0; i < N; i++) {
      |                    ^
a.cc: In function 'int main()':
a.cc:41:19: error: expected ']' before numeric constant
   41 | Card C1[100], C2[[100];
      |                   ^~~
      |                   ]
a.cc:50:33: error: no match for 'operator[]' (operand types are 'Card' and 'int')
   50 | for ( int i = 0; i < N; i++ ) C2[i] = C1[i];
      |                                 ^
a.cc:53:11: error: cannot convert 'Card' to 'Card*'
   53 | selection(C2, N);
      |           ^~
      |           |
      |           Card
a.cc:14:28: note:   initializing argument 1 of 'void selection(Card*, int)'
   14 | void selection(struct Card A[], int N) {
      |                ~~~~~~~~~~~~^~~
a.cc:56:9: error: unable to find string literal operator 'operator""\U00003000' with 'const char [7]', 'long unsigned int' arguments
   56 | cout << "Stable"　<< endl;
      |         ^~~~~~~~~~
a.cc:57:7: error: cannot convert 'Card' to 'Card*'
   57 | print(C2, N);
      |       ^~
      |       |
      |       Card
a.cc:24:24: note:   initializing argument 1 of 'void print(Card*, int)'
   24 | void print(struct Card A[], int N) {
      |            ~~~~~~~~~~~~^~~
a.cc:58:19: error: cannot convert 'Card' to 'Card*'
   58 | if ( isStable(C1, C2, N) ) {
      |                   ^~
      |                   |
      |                   Card
a.cc:33:45: note:   initializing argument 2 of 'bool isStable(Card*, Card*, int)'
   33 | bool isStable(struct Card C1[], struct Card C2[], int N) {
      |                                 ~~~~~~~~~~~~^~~~