Language: C++

#include <iostream>
int main(){
    int x[4][3][10] = {0}
    int b,f,r,v,tou,kai,heya,q,e,n,v,xx,yy,zz;
    std::cin >> n;
    for(int ee = 0;ee < n;ee++){
        std::cin >> tou >> kai >> heya >> v;
        b = tou - 1;
        f = kai - 1;
        r = heya - 1;
        if(x[b][f][r] == 0){
            q = 0;
            x[b][f][r] = q;
            e = v + q;
            x[b][f][r] = e;
            q = e;
            xx = b;
            yy = f;
            zz = r;
        }else{
            x[b][f][r] = q;
            e = v + q;
            x[b][f][r] = e;
            q = e;
            xx = b;
            yy = f;
            zz = r;
        }
    }
    for(int g = 0;g < 3;g++){
        for(int h = 0;h < 10;h++){
            std::cout <<" ";
            std::cout <<x[0][g][h];
        }
        std::cout << std::endl;
    }
    std::cout <<"####################"<<std::endl;
    for(int aa = 0;aa < 3;aa++){
        for(int bb = 0:bb < 10;bb++){
            std::cout << " ";
            std::cout << x[1][aa][bb];
        }
        std::cout <<std::endl;
    }
    std::cout <<"####################"<<std::endl;
    for(int cc = 0;cc < 3;cc++){
        for(int dd = 0;dd < 10;d++){
            std::cout << " ";
            std::cout << x[2][cc][dd];
        }
        std::cout << std::endl;
    }
    std::cout <<"####################"<<std::endl;
    for(int ff = 0;ff < 3;ff++){
        for(int gg = 0;gg < 10;gg++)
            std::cout << " ";
            std::cout << x[3][ff][gg];
    }
    std::cout <<std::endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:5: error: expected ',' or ';' before 'int'
    4 |     int b,f,r,v,tou,kai,heya,q,e,n,v,xx,yy,zz;
      |     ^~~
a.cc:5:17: error: 'n' was not declared in this scope
    5 |     std::cin >> n;
      |                 ^
a.cc:7:21: error: 'tou' was not declared in this scope
    7 |         std::cin >> tou >> kai >> heya >> v;
      |                     ^~~
a.cc:7:28: error: 'kai' was not declared in this scope
    7 |         std::cin >> tou >> kai >> heya >> v;
      |                            ^~~
a.cc:7:35: error: 'heya' was not declared in this scope
    7 |         std::cin >> tou >> kai >> heya >> v;
      |                                   ^~~~
a.cc:7:43: error: 'v' was not declared in this scope
    7 |         std::cin >> tou >> kai >> heya >> v;
      |                                           ^
a.cc:8:9: error: 'b' was not declared in this scope
    8 |         b = tou - 1;
      |         ^
a.cc:9:9: error: 'f' was not declared in this scope
    9 |         f = kai - 1;
      |         ^
a.cc:10:9: error: 'r' was not declared in this scope
   10 |         r = heya - 1;
      |         ^
a.cc:12:13: error: 'q' was not declared in this scope
   12 |             q = 0;
      |             ^
a.cc:14:13: error: 'e' was not declared in this scope; did you mean 'ee'?
   14 |             e = v + q;
      |             ^
      |             ee
a.cc:17:13: error: 'xx' was not declared in this scope; did you mean 'x'?
   17 |             xx = b;
      |             ^~
      |             x
a.cc:18:13: error: 'yy' was not declared in this scope
   18 |             yy = f;
      |             ^~
a.cc:19:13: error: 'zz' was not declared in this scope
   19 |             zz = r;
      |             ^~
a.cc:21:26: error: 'q' was not declared in this scope
   21 |             x[b][f][r] = q;
      |                          ^
a.cc:22:13: error: 'e' was not declared in this scope; did you mean 'ee'?
   22 |             e = v + q;
      |             ^
      |             ee
a.cc:25:13: error: 'xx' was not declared in this scope; did you mean 'x'?
   25 |             xx = b;
      |             ^~
      |             x
a.cc:26:13: error: 'yy' was not declared in this scope
   26 |             yy = f;
      |             ^~
a.cc:27:13: error: 'zz' was not declared in this scope
   27 |             zz = r;
      |             ^~
a.cc:39:20: error: initializer in range-based 'for' loop
   39 |         for(int bb = 0:bb < 10;bb++){
      |                    ^
a.cc:39:31: error: expected ')' before ';' token
   39 |         for(int bb = 0:bb < 10;bb++){
      |            ~                  ^
      |                               )
a.cc:39:32: error: 'bb' was not declared in this scope
   39 |         for(int bb = 0:bb < 10;bb++){
      |                                ^~
a.cc:47:32: error: 'd' was not declared in this scope; did you mean 'dd'?
   47 |         for(int dd = 0;dd < 10;d++){
      |                                ^
      |                                dd
a.cc:57:35: error: 'gg' was not declared in this scope
   57 |             std::cout << x[3][ff][gg];
      |                                   ^~