Language: C++

#include<iostream>
#include<string>
using namespace std;

bool Smaller(char a*, int a_length, char b*, int b_length){
  	int i;
  	int min_length = a_length < b_length ? a_length : b_length;
  	for(i=0; i<min_length; i++){
      if(a[i] < b[i])return true;
      else if(a[i] > b[i]) return false;
    }
  	return false;
  }

void Swap(char a*, char b*, int length){
  int i;
  for(i=0;i<length;i++){
    char c;
    c = a[i];
   	a[i] = b[i];
    b[i] = c;
  }
  return;
}

int main(){
  cin >> string_length >> string_num;
  
  char strContainer[string_num][string_length];
  
  int i;
  
  for(i=0;i<string_num;i++){
    cin >> strContainer[i];
  }
  
  //今回はバブルソートで
  bool sorting = true;
  while(sorting){
    sorting=false;
    for(i=0;i<sorting_num-1;i++){
      if(!Smaller(strContainer[i], string_length, strContainer[i+1], string_length){
      	Swap(strContainer[i], strContainer[i+1], string_length);
        sorting=true;
      }
    }
    
    char result[] = "";
    
    for(i=0; i < string_num;i++){
      cout << strContainer[i];
    }         
  }
  
  return 0;
}

Compiler output:
a.cc:5:20: error: expected ',' or '...' before '*' token
    5 | bool Smaller(char a*, int a_length, char b*, int b_length){
      |                    ^
a.cc: In function 'bool Smaller(char)':
a.cc:7:26: error: 'a_length' was not declared in this scope; did you mean 'min_length'?
    7 |         int min_length = a_length < b_length ? a_length : b_length;
      |                          ^~~~~~~~
      |                          min_length
a.cc:7:37: error: 'b_length' was not declared in this scope; did you mean 'min_length'?
    7 |         int min_length = a_length < b_length ? a_length : b_length;
      |                                     ^~~~~~~~
      |                                     min_length
a.cc:9:11: error: invalid types 'char[int]' for array subscript
    9 |       if(a[i] < b[i])return true;
      |           ^
a.cc:9:17: error: 'b' was not declared in this scope
    9 |       if(a[i] < b[i])return true;
      |                 ^
a.cc:10:16: error: invalid types 'char[int]' for array subscript
   10 |       else if(a[i] > b[i]) return false;
      |                ^
a.cc: At global scope:
a.cc:15:17: error: expected ',' or '...' before '*' token
   15 | void Swap(char a*, char b*, int length){
      |                 ^
a.cc: In function 'void Swap(char)':
a.cc:17:13: error: 'length' was not declared in this scope
   17 |   for(i=0;i<length;i++){
      |             ^~~~~~
a.cc:19:10: error: invalid types 'char[int]' for array subscript
   19 |     c = a[i];
      |          ^
a.cc:20:10: error: invalid types 'char[int]' for array subscript
   20 |         a[i] = b[i];
      |          ^
a.cc:20:16: error: 'b' was not declared in this scope
   20 |         a[i] = b[i];
      |                ^
a.cc: In function 'int main()':
a.cc:27:10: error: 'string_length' was not declared in this scope
   27 |   cin >> string_length >> string_num;
      |          ^~~~~~~~~~~~~
a.cc:27:27: error: 'string_num' was not declared in this scope
   27 |   cin >> string_length >> string_num;
      |                           ^~~~~~~~~~
a.cc:34:12: error: 'strContainer' was not declared in this scope
   34 |     cin >> strContainer[i];
      |            ^~~~~~~~~~~~
a.cc:41:15: error: 'sorting_num' was not declared in this scope; did you mean 'sorting'?
   41 |     for(i=0;i<sorting_num-1;i++){
      |               ^~~~~~~~~~~
      |               sorting
a.cc:42:19: error: 'strContainer' was not declared in this scope
   42 |       if(!Smaller(strContainer[i], string_length, strContainer[i+1], string_length){
      |                   ^~~~~~~~~~~~
a.cc:42:84: error: expected ')' before '{' token
   42 |       if(!Smaller(strContainer[i], string_length, strContainer[i+1], string_length){
      |         ~                                                                          ^
      |                                                                                    )
a.cc:46:5: error: expected primary-expression before '}' token
   46 |     }
      |     ^
a.cc:51:15: error: 'strContainer' was not declared in this scope
   51 |       cout << strContainer[i];
      |               ^~~~~~~~~~~~