Language: C++

#include<iostream>

using namespace std;
int main(){
	int n = 0, v = 0;
	int a = 0;
	int b = 0;
	int c = 0;
	int d = 0;
	int a[4][3][11] = 0;
	cin >> n;
	for (int i = 0; i <= n; i++){
		cin >> a >> b >> c >> d;
		if (a == 1){
			if (b == 1){
				if (c == 1){
					a[0][0][0] = b;
				}
				else if (c == 2){
					a[0][0][1] = b;
				}
				else if (c == 3){
					a[0][0][2] = b;
				}
				else if (c == 4){
					a[0][0][3] = b;
				}
				else if (c == 5){
					a[0][0][4] = b;
				}
				else if (c == 6){
					a[0][0][5] = b;
				}
				else if (c == 7){
					a[0][0][6] = b;
				}
				else if (c == 8){
					a[0][0][7] = b;
				}
				else if (c == 9){
					a[0][0][8] = b;
				}
			}
			else if (b == 2){
				if (c == 1){
					a[0][1][0] = b;
				}
				else if (c == 2){
					a[0][1][1] = b;
				}
				else if (c == 3){
					a[0][1][2] = b;
				}
				else if (c == 4){
					a[0][1][3] = b;
				}
				else if (c == 5){
					a[0][1][4] = b;
				}
				else if (c == 6){
					a[0][1][5] = b;
				}
				else if (c == 7){
					a[0][1][6] = b;
				}
				else if (c == 8){
					a[0][1][7] = b;
				}
				else if (c == 9){
					a[0][1][8] = b;
				}
			}
			else if (b == 3){
				if (c == 1){
					a[0][2][0] = b;
				}
				else if (c == 2){
					a[0][2][1] = b;
				}
				else if (c == 3){
					a[0][2][2] = b;
				}
				else if (c == 4){
					a[0][2][3] = b;
				}
				else if (c == 5){
					a[0][2][4] = b;
				}
				else if (c == 6){
					a[0][2][5] = b;
				}
				else if (c == 7){
					a[0][2][6] = b;
				}
				else if (c == 8){
					a[0][2][7] = b;
				}
				else if (c == 9){
					a[0][2][8] = b;
				}
			}
		}
	}
	else if (a == 2){
		if (b == 1){
			if (c == 1){
				a[1][0][0] = b;
			}
			else if (c == 2){
				a[1][0][1] = b;
			}
			else if (c == 3){
				a[1][0][2] = b;
			}
			else if (c == 4){
				a[1][0][3] = b;
			}
			else if (c == 5){
				a[1][0][4] = b;
			}
			else if (c == 6){
				a[1][0][5] = b;
			}
			else if (c == 7){
				a[1][0][6] = b;
			}
			else if (c == 8){
				a[1][0][7] = b;
			}
			else if (c == 9){
				a[1][0][8] = b;
			}
		}
		else if (b == 2){
			if (c == 1){
				a[1][1][0] = b;
			}
			else if (c == 2){
				a[1][1][1] = b;
			}
			else if (c == 3){
				a[1][1][2] = b;
			}
			else if (c == 4){
				a[1][1][3] = b;
			}
			else if (c == 5){
				a[1][1][4] = b;
			}
			else if (c == 6){
				a[1][1][5] = b;
			}
			else if (c == 7){
				a[1][1][6] = b;
			}
			else if (c == 8){
				a[1][1][7] = b;
			}
			else if (c == 9){
				a[1][1][8] = b;
			}
		}
		else if (b == 3){
			if (c == 1){
				a[1][2][0] = b;
			}
			else if (c == 2){
				a[1][2][1] = b;
			}
			else if (c == 3){
				a[1][2][2] = b;
			}
			else if (c == 4){
				a[1][2][3] = b;
			}
			else if (c == 5){
				a[1][2][4] = b;
			}
			else if (c == 6){
				a[1][2][5] = b;
			}
			else if (c == 7){
				a[1][2][6] = b;
			}
			else if (c == 8){
				a[1][2][7] = b;
			}
			else if (c == 9){
				a[1][2][8] = b;
			}
		}
	}
}
else if (a == 3){
	if (b == 1){
		if (c == 1){
			a[2][0][0] = b;
		}
		else if (c == 2){
			a[2][0][1] = b;
		}
		else if (c == 3){
			a[2][0][2] = b;
		}
		else if (c == 4){
			a[2][0][3] = b;
		}
		else if (c == 5){
			a[2][0][4] = b;
		}
		else if (c == 6){
			a[2][0][5] = b;
		}
		else if (c == 7){
			a[2][0][6] = b;
		}
		else if (c == 8){
			a[2][0][7] = b;
		}
		else if (c == 9){
			a[2][0][8] = b;
		}
	}
	else if (b == 2){
		if (c == 1){
			a[2][1][0] = b;
		}
		else if (c == 2){
			a[2][1][1] = b;
		}
		else if (c == 3){
			a[2][1][2] = b;
		}
		else if (c == 4){
			a[2][1][3] = b;
		}
		else if (c == 5){
			a[2][1][4] = b;
		}
		else if (c == 6){
			a[2][1][5] = b;
		}
		else if (c == 7){
			a[2][1][6] = b;
		}
		else if (c == 8){
			a[2][1][7] = b;
		}
		else if (c == 9){
			a[2][1][8] = b;
		}
	}
	else if (b == 3){
		if (c == 1){
			a[2][2][0] = b;
		}
		else if (c == 2){
			a[2][2][1] = b;
		}
		else if (c == 3){
			a[2][2][2] = b;
		}
		else if (c == 4){
			a[2][2][3] = b;
		}
		else if (c == 5){
			a[2][2][4] = b;
		}
		else if (c == 6){
			a[2][2][5] = b;
		}
		else if (c == 7){
			a[2][2][6] = b;
		}
		else if (c == 8){
			a[2][2][7] = b;
		}
		else if (c == 9){
			a[2][2][8] = b;
		}
	}
}
	}
	else if (a == 4){
		if (b == 1){
			if (c == 1){
				a[3][0][0] = b;
			}
			else if (c == 2){
				a[3][0][1] = b;
			}
			else if (c == 3){
				a[3][0][2] = b;
			}
			else if (c == 4){
				a[3][0][3] = b;
			}
			else if (c == 5){
				a[3][0][4] = b;
			}
			else if (c == 6){
				a[3][0][5] = b;
			}
			else if (c == 7){
				a[3][0][6] = b;
			}
			else if (c == 8){
				a[3][0][7] = b;
			}
			else if (c == 9){
				a[3][0][8] = b;
			}
		}
		else if (b == 2){
			if (c == 1){
				a[3][1][0] = b;
			}
			else if (c == 2){
				a[3][1][1] = b;
			}
			else if (c == 3){
				a[3][1][2] = b;
			}
			else if (c == 4){
				a[3][1][3] = b;
			}
			else if (c == 5){
				a[3][1][4] = b;
			}
			else if (c == 6){
				a[3][1][5] = b;
			}
			else if (c == 7){
				a[3][1][6] = b;
			}
			else if (c == 8){
				a[3][1][7] = b;
			}
			else if (c == 9){
				a[3][1][8] = b;
			}
		}
		else if (b == 3){
			if (c == 1){
				a[3][2][0] = b;
			}
			else if (c == 2){
				a[3][2][1] = b;
			}
			else if (c == 3){
				a[3][2][2] = b;
			}
			else if (c == 4){
				a[3][2][3] = b;
			}
			else if (c == 5){
				a[3][2][4] = b;
			}
			else if (c == 6){
				a[3][2][5] = b;
			}
			else if (c == 7){
				a[3][2][6] = b;
			}
			else if (c == 8){
				a[3][2][7] = b;
			}
			else if (c == 9){
				a[3][2][8] = b;
			}
		}
	}
	}
	for (int h = 0; h <= 10; h++){
		for (int ht = 0; ht < 3; ht++){
			cout << a[0][ht][h];
		}
		cout << endl;
	}
	cout << "####################" << endl;
	for (int h = 0; h <= 10; h++){
		for (int ht = 0; ht < 3; ht++){
			cout << a[1][ht][h];
		}
		cout << endl;
	}
	cout << "####################" << endl;
	for (int h = 0; h <= 10; h++){
		for (int ht = 0; ht < 3; ht++){
			cout << a[2][ht][h];
		}
		cout << endl;
	}
	cout << "####################" << endl;
	for (int h = 0; h <= 10; h++){
		for (int ht = 0; ht < 3; ht++){
			cout << a[3][ht][h];
		}
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:13: error: conflicting declaration 'int a [4][3][11]'
   10 |         int a[4][3][11] = 0;
      |             ^
a.cc:6:13: note: previous declaration as 'int a'
    6 |         int a = 0;
      |             ^
a.cc:17:42: error: invalid types 'int[int]' for array subscript
   17 |                                         a[0][0][0] = b;
      |                                          ^
a.cc:20:42: error: invalid types 'int[int]' for array subscript
   20 |                                         a[0][0][1] = b;
      |                                          ^
a.cc:23:42: error: invalid types 'int[int]' for array subscript
   23 |                                         a[0][0][2] = b;
      |                                          ^
a.cc:26:42: error: invalid types 'int[int]' for array subscript
   26 |                                         a[0][0][3] = b;
      |                                          ^
a.cc:29:42: error: invalid types 'int[int]' for array subscript
   29 |                                         a[0][0][4] = b;
      |                                          ^
a.cc:32:42: error: invalid types 'int[int]' for array subscript
   32 |                                         a[0][0][5] = b;
      |                                          ^
a.cc:35:42: error: invalid types 'int[int]' for array subscript
   35 |                                         a[0][0][6] = b;
      |                                          ^
a.cc:38:42: error: invalid types 'int[int]' for array subscript
   38 |                                         a[0][0][7] = b;
      |                                          ^
a.cc:41:42: error: invalid types 'int[int]' for array subscript
   41 |                                         a[0][0][8] = b;
      |                                          ^
a.cc:46:42: error: invalid types 'int[int]' for array subscript
   46 |                                         a[0][1][0] = b;
      |                                          ^
a.cc:49:42: error: invalid types 'int[int]' for array subscript
   49 |                                         a[0][1][1] = b;
      |                                          ^
a.cc:52:42: error: invalid types 'int[int]' for array subscript
   52 |                                         a[0][1][2] = b;
      |                                          ^
a.cc:55:42: error: invalid types 'int[int]' for array subscript
   55 |                                         a[0][1][3] = b;
      |                                          ^
a.cc:58:42: error: invalid types 'int[int]' for array subscript
   58 |                                         a[0][1][4] = b;
      |                                          ^
a.cc:61:42: error: invalid types 'int[int]' for array subscript
   61 |                                         a[0][1][5] = b;
      |                                          ^
a.cc:64:42: error: invalid types 'int[int]' for array subscript
   64 |                                         a[0][1][6] = b;
      |                                          ^
a.cc:67:42: error: invalid types 'int[int]' for array subscript
   67 |                                         a[0][1][7] = b;
      |                                          ^
a.cc:70:42: error: invalid types 'int[int]' for array subscript
   70 |                                         a[0][1][8] = b;
      |                                          ^
a.cc:75:42: error: invalid types 'int[int]' for array subscript
   75 |                                         a[0][2][0] = b;
      |                                          ^
a.cc:78:42: error: invalid types 'int[int]' for array subscript
   78 |                                         a[0][2][1] = b;
      |                                          ^
a.cc:81:42: error: invalid types 'int[int]' for array subscript
   81 |                                         a[0][2][2] = b;
      |                                          ^
a.cc:84:42: error: invalid types 'int[int]' for array subscript
   84 |                                         a[0][2][3] = b;
      |                                          ^
a.cc:87:42: error: invalid types 'int[int]' for array subscript
   87 |                                         a[0][2][4] = b;
      |                                          ^
a.cc:90:42: error: invalid types 'int[int]' for array subscript
   90 |                                         a[0][2][5] = b;
      |                                          ^
a.cc:93:42: error: invalid types 'int[int]' for array subscript
   93 |                                         a[0][2][6] = b;
      |                                          ^
a.cc:96:42: error: invalid types 'int[int]' for array subscript
   96 |                                         a[0][2][7] = b;
      |                                          ^
a.cc:99:42: error: invalid types 'int[int]' for array subscript
   99 |                                         a[0][2][8] = b;
      |                                          ^
a.cc:104:9: error: 'else' without a previous 'if'
  104 |         else if (a == 2){
      |         ^~~~
a.cc:107:34: error: invalid types 'int[int]' for array subscript
  107 |                                 a[1][0][0] = b;
      |                                  ^
a.cc:110:34: error: invalid types 'int[int]' for array subscript
  110 |                                 a[1][0][1] = b;
      |                                  ^
a.cc:113:34: error: invalid types 'int[int]' for array subscript
  113 |                                 a[1][0][2] = b;
      |                                  ^
a.cc:116:34: error: invalid types 'int[int]' for array subscript
  116 |                                 a[1][0][3] = b;
      |                                  ^
a.cc:119:34: error: invalid types 'int[int]' for array subscript
  119 |                                 a[1][0][4] = b;
      |                                  ^
a.cc:122:34: error: invalid types 'int[int]' for array subscript
  122 |                                 a[1][0][5] = b;
      |                                  ^
a.cc:125:34: error: invalid types 'int[int]' for array subscript
  125 |                                 a[1][0][6] = b;
      |                                  ^
a.cc:128:34: error: invalid types 'int[int]' for array subscript
  128 |                                 a[1][0][7] = b;
      |                                  ^
a.cc:131:34: error: invalid types 'int[int]' for array subscript
  131 |                                 a[1][0][8] = b;
      |                                  ^
a.cc:136:34: error: invalid types 'int[int]' for array subscript
  136 |                                 a[1][1][0] = b;
      |                                  ^
a.cc:139:34: error: invalid types 'int[int]' for array subscript
  139 |                                 a[1][1][1] = b;
      |                                  ^
a.cc:142:34: error: invalid types 'int[int]' for array subscript
  142 |                                 a[1][1][2] = b;
      |                                  ^
a.cc:145:34: error: invalid types 'int[int]' for array subscript
  145 |                                 a[1][1][3] = b;
      |                                  ^
a.cc:148:34: error: invalid types 'int[int]' for array subscript
  148 |                                 a[1][1][4] = b;
      |                                  ^
a.cc:151:34: error: invalid types 'int[int]' for array subscript
  151 |                                 a[1][1][5] = b;
      |                                  ^
a.cc:154:34: error: invalid types 'int[int]' for array subscript
  154 |                                 a[1][1][6] = b;
      |                                  ^
a.cc:157:34: error: invalid types 'int[int]' for array subscript
  157 |                                 a[1][1][7] = b;
      |                                  ^
a.cc:160:34: error: invalid types 'int[int]' for array subscript
  160 |                                 a[1][1][8] = b;
      |                                  ^
a.cc:165:34: error: invalid types 'int[int]' for array subscript
  165 |                                 a[1][2][0] = b;
      |                                  ^
a.cc:168:34: error: invalid types 'int[int]' for array subscript
  168 |                                 a[1][2][1] = b;
      |                                  ^
a.cc:171:34: error: invalid types 'int[int]' for array subscript
  171 |                                 a[1][2][2] = b;
      |                                  ^
a.cc:174:34: error: invalid types 'int[int]' for array subscript
  174 |                                 a[1][2][3] = b;
      |                                  ^
a.cc:177:34: error: invalid types 'int[int]' for array subscript
  177 |                                 a[1][2][4] = b;
      |                                  ^
a.cc:180:34: error: invalid types 'int[int]' for array subscript
  180 |                                 a[1][2][5] = b;
      |                                  ^
a.cc:183:34: error: invalid types 'int[int]' for array subscript
  183 |                                 a[1][2][6] = b;
      |                                  ^
a.cc:186:34: error: invalid types 'int[int]' for array subscript
  186 |                                 a[1][2][7] = b;
      |                                  ^
a.cc:189:34: error: invalid types 'int[int]' for array subscript
  189 |                                 a[1][2][8] = b;
      |                                  ^
a.cc: At global scope:
a.cc:194:1: error: expected unqualified-id before 'else'
  194 | else if (a == 3){
      | ^~~~
a.cc:283:9: error: expected declaration before '}' token
  283 |         }
      |         ^
a.cc:284:9: error: expected unqualified-id before 'else'
  284 |         else if (a == 4){
      |         ^~~~
a.cc:373:9: error: expected declaration before '}' token
  373 |         }
      |         ^
a.cc:374:9: error: expected unqualified-id before 'for'
  374 |         for (int h = 0; h <= 10; h++){
      |         ^~~
a.cc:374:25: error: 'h' does not name a type
  374 |         for (int h = 0; h <= 10