Language: C++

int main() {
	vector<int> v1[3][10] = {0};
	vector<int> v2[3][10] = {0};
	vector<int> v3[3][10] = {0};
	vector<int> v4[3][10] = {0};
	int n;
	cin >> n, a, b, c, v;
	for (int i = 0; i < n; i++) {
		cin >> a >> b >> c >> v;
		if (a == 1) {
			v1[b][c] = v;
		} else if (a == 2) {
			v2[b][c] = v;
		} else if (a == 3) {
			v3[b][c] = v;
		} else if (a == 4) {
			v4[b][c] = v;
		}
	}
	for (int i = 0; i < 3; i++) {
		for (int j = 0; j < 10; j++) {
			cout << v1[i][j];
		}
		cout << endl;
	}
	
	cout << "####################" << endl;
	
	for (int i = 0; i < 3; i++) {
		for (int j = 0; j < 10; j++) {
			cout << v2[i][j];
		}
		cout << endl;
	}
	
	cout << "####################" << endl;
	
	for (int i = 0; i < 3; i++) {
		for (int j = 0; j < 10; j++) {
			cout << v3[i][j];
		}
		cout << endl;
	}
	
	cout << "####################" << endl;
	
	for (int i = 0; i < 3; i++) {
		for (int j = 0; j < 10; j++) {
			cout << v4[i][j];
		}
		cout << endl;
	}
	
	
	
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:2:9: error: 'vector' was not declared in this scope
    2 |         vector<int> v1[3][10] = {0};
      |         ^~~~~~
a.cc:2:16: error: expected primary-expression before 'int'
    2 |         vector<int> v1[3][10] = {0};
      |                ^~~
a.cc:3:16: error: expected primary-expression before 'int'
    3 |         vector<int> v2[3][10] = {0};
      |                ^~~
a.cc:4:16: error: expected primary-expression before 'int'
    4 |         vector<int> v3[3][10] = {0};
      |                ^~~
a.cc:5:16: error: expected primary-expression before 'int'
    5 |         vector<int> v4[3][10] = {0};
      |                ^~~
a.cc:7:9: error: 'cin' was not declared in this scope
    7 |         cin >> n, a, b, c, v;
      |         ^~~
a.cc:7:19: error: 'a' was not declared in this scope
    7 |         cin >> n, a, b, c, v;
      |                   ^
a.cc:7:22: error: 'b' was not declared in this scope
    7 |         cin >> n, a, b, c, v;
      |                      ^
a.cc:7:25: error: 'c' was not declared in this scope
    7 |         cin >> n, a, b, c, v;
      |                         ^
a.cc:7:28: error: 'v' was not declared in this scope
    7 |         cin >> n, a, b, c, v;
      |                            ^
a.cc:11:25: error: 'v1' was not declared in this scope
   11 |                         v1[b][c] = v;
      |                         ^~
a.cc:13:25: error: 'v2' was not declared in this scope
   13 |                         v2[b][c] = v;
      |                         ^~
a.cc:15:25: error: 'v3' was not declared in this scope
   15 |                         v3[b][c] = v;
      |                         ^~
a.cc:17:25: error: 'v4' was not declared in this scope
   17 |                         v4[b][c] = v;
      |                         ^~
a.cc:22:25: error: 'cout' was not declared in this scope
   22 |                         cout << v1[i][j];
      |                         ^~~~
a.cc:22:33: error: 'v1' was not declared in this scope
   22 |                         cout << v1[i][j];
      |                                 ^~
a.cc:24:17: error: 'cout' was not declared in this scope
   24 |                 cout << endl;
      |                 ^~~~
a.cc:24:25: error: 'endl' was not declared in this scope
   24 |                 cout << endl;
      |                         ^~~~
a.cc:27:9: error: 'cout' was not declared in this scope
   27 |         cout << "####################" << endl;
      |         ^~~~
a.cc:27:43: error: 'endl' was not declared in this scope
   27 |         cout << "####################" << endl;
      |                                           ^~~~
a.cc:31:33: error: 'v2' was not declared in this scope
   31 |                         cout << v2[i][j];
      |                                 ^~
a.cc:40:33: error: 'v3' was not declared in this scope
   40 |                         cout << v3[i][j];
      |                                 ^~
a.cc:49:33: error: 'v4' was not declared in this scope
   49 |                         cout << v4[i][j];
      |                                 ^~