Language: C++

using System;

namespace ConsoleApplication3
{
    class Program
    {
        static void Main(string[] args)
        {
            string lines = new string('#', 20);
            int num = int.Parse(Console.ReadLine());
            int[,,] array = new int[4, 3, 10];
            for (int i = 0; i < num; i++)
            {
                string[] info = Console.ReadLine().Split(' ');
                int b, f, r, v;
                b = int.Parse(info[0]);
                f = int.Parse(info[1]);
                r = int.Parse(info[2]);
                v = int.Parse(info[3]);
                array[b - 1, f - 1, r - 1] += v;          
            }

            for (int house = 0; house < 4; house++)
            {
                for (int floor = 0; floor < 3; floor++)
                {
                    for (int room = 0; room < 10; room++)
                    {
                        Console.Write(" " + array[house, floor, room]);
                    }
                    Console.WriteLine();
                }
                Console.WriteLine(lines);
            }
        }
    }
}

Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:7:26: error: 'string' has not been declared
    7 |         static void Main(string[] args)
      |                          ^~~~~~
a.cc:7:35: error: expected ',' or '...' before 'args'
    7 |         static void Main(string[] args)
      |                                   ^~~~
a.cc:36:6: error: expected ';' after class definition
   36 |     }
      |      ^
      |      ;
a.cc: In static member function 'static void ConsoleApplication3::Program::Main(int*)':
a.cc:9:13: error: 'string' was not declared in this scope
    9 |             string lines = new string('#', 20);
      |             ^~~~~~
a.cc:10:23: error: expected primary-expression before 'int'
   10 |             int num = int.Parse(Console.ReadLine());
      |                       ^~~
a.cc:11:17: error: expected identifier before ',' token
   11 |             int[,,] array = new int[4, 3, 10];
      |                 ^
a.cc:11:17: error: expected ']' before ',' token
a.cc:11:16: error: structured binding declaration cannot have type 'int'
   11 |             int[,,] array = new int[4, 3, 10];
      |                ^
a.cc:11:16: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:11:16: error: empty structured binding declaration
a.cc:11:21: error: expected initializer before 'array'
   11 |             int[,,] array = new int[4, 3, 10];
      |                     ^~~~~
a.cc:14:24: error: expected primary-expression before ']' token
   14 |                 string[] info = Console.ReadLine().Split(' ');
      |                        ^
a.cc:16:21: error: expected primary-expression before 'int'
   16 |                 b = int.Parse(info[0]);
      |                     ^~~
a.cc:17:21: error: expected primary-expression before 'int'
   17 |                 f = int.Parse(info[1]);
      |                     ^~~
a.cc:18:21: error: expected primary-expression before 'int'
   18 |                 r = int.Parse(info[2]);
      |                     ^~~
a.cc:19:21: error: expected primary-expression before 'int'
   19 |                 v = int.Parse(info[3]);
      |                     ^~~
a.cc:20:17: error: 'array' was not declared in this scope
   20 |                 array[b - 1, f - 1, r - 1] += v;
      |                 ^~~~~
a.cc:29:25: error: 'Console' was not declared in this scope
   29 |                         Console.Write(" " + array[house, floor, room]);
      |                         ^~~~~~~
a.cc:29:45: error: 'array' was not declared in this scope
   29 |                         Console.Write(" " + array[house, floor, room]);
      |                                             ^~~~~
a.cc:31:21: error: 'Console' was not declared in this scope
   31 |                     Console.WriteLine();
      |                     ^~~~~~~
a.cc:33:17: error: 'Console' was not declared in this scope
   33 |                 Console.WriteLine(lines);
      |                 ^~~~~~~
a.cc:33:35: error: 'lines' was not declared in this scope
   33 |                 Console.WriteLine(lines);
      |                                   ^~~~~