criyle/codenet-compile-errors huggingface dataset:
Language: C++

#include<iostream>
using namespace std;

int main(){
    int rooms[5][4][11];
    
    for(int i=1; i<=4; i++)
        for(int j=1; j<=3; j++)
            for(int k=1; k<=10; k++)
                rooms[i][j][k]=0;
                
    int n,b,f,r,v;
    cin>>n;
    for(int k=1; k<=n; n++){
        cin>>b>>f>>r>>v;
        rooms[b][f][r]=v;
    }
    for(int a=1; a<=10; a++)
        rooms[1][1][a]=0;
        cout<<rooms[1][1][a]<<endl;
    for(int b=1; b<=10; b++)
        rooms[1][2][b]=0;
        cout<<rooms[1][2][b]<<endl;
    for(int c=1; c<=10; c++)
        rooms[1][3][c]=0;
        cout<<rooms[1][3][a]<<endl<<"####################"<<endl;
    for(int d=1; d<=10; d++)
        rooms[2][1][d]=0;
        cout<<rooms[2][1][d]<<endl;
    for(int e=1; e<=10; e++)
        rooms[2][2][e]=0;
        cout<<rooms[2][2][e]<<endl;
    for(int f=1; f<=10; f++)
        rooms[2][3][f]=0;
        cout<<rooms[2][3][f]<<endl<<"####################"<<endl;
    for(int g=1; g<=10; g++)
        rooms[3][1][g]=0;
        cout<<rooms[3][1][g]<<endl;
    for(int h=1; h<=10; h++)
        rooms[3][2][h]=0;
        cout<<rooms[3][2][g]<<endl;
    for(int l=1; l<=10; l++)
        rooms[3][3][l]=0;
        cout<<rooms[3][3][l]<<endl<<"####################"<<endl;
    for(int m=1; m<=10; m++)
        rooms[4][1][m]=0;
        cout<<rooms[4][1][m]<<endl;
    for(int o=1; o<=10; o++)
        rooms[4][2][0]=0;
        cout<<rooms[4][2][o]<<endl;
    for(int p=1; p<=10; p++)
        rooms[4][3][p]=0;
        cout<<rooms[4][3][p]<<endl;
        
        
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:20:27: error: 'a' was not declared in this scope
   20 |         cout<<rooms[1][1][a]<<endl;
      |                           ^
a.cc:29:27: error: 'd' was not declared in this scope
   29 |         cout<<rooms[2][1][d]<<endl;
      |                           ^
a.cc:32:27: error: 'e' was not declared in this scope
   32 |         cout<<rooms[2][2][e]<<endl;
      |                           ^
a.cc:38:27: error: 'g' was not declared in this scope
   38 |         cout<<rooms[3][1][g]<<endl;
      |                           ^
a.cc:44:27: error: 'l' was not declared in this scope
   44 |         cout<<rooms[3][3][l]<<endl<<"####################"<<endl;
      |                           ^
a.cc:47:27: error: 'm' was not declared in this scope
   47 |         cout<<rooms[4][1][m]<<endl;
      |                           ^
a.cc:50:27: error: 'o' was not declared in this scope
   50 |         cout<<rooms[4][2][o]<<endl;
      |                           ^
a.cc:53:27: error: 'p' was not declared in this scope
   53 |         cout<<rooms[4][3][p]<<endl;
      |                           ^
Language: C++

#include<iostream>
using namespace std;

int main(){
    int rooms[5][4][11],n;
    
    for(int i=1; i<=4; i++)
        for(int j=1; j<=3; j++)
            for(int k=1; k<=10; k++) rooms[i][j][k]=0;
                
    cin>>n;
    for(int i=0; i<=n; i++){
        int b,f,r,v;
        cin>>b>>f>>r>>v;
        rooms[b][f][r]+=v;
    }
    
    for(int b=1; b<=4; ++){
        if(b>1) cout<<"####################"<<"\n";
        for(int f=1; f<=3; f++){
            for(int r=1; r<=10; r++){
                cout<<" "<<rooms[b][f][r];
            }
            cout<<endl;
        }
    }
    
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:26: error: expected primary-expression before ')' token
   18 |     for(int b=1; b<=4; ++){
      |                          ^
Language: C++

#include<iostream>
using namespace std;
int main(){
    int n,b,f,r,v;  // ｎは情報の数, bは棟の数、fは階数、rは何番目の部屋、vは入居してきた人数
    cin >> n;
    int house[4][3][10] = {0};
    
    for(int i = 0; i<n; i++){
        cin >> b >> f >> r >> v;
        house[b-1][f-1][r-1] = v;
    }
    
    for(int j = 0;j < 4; j++){
        
        for(int k = 0; k < 3 ;k++){
            
            for(int l = 0; l < 10; l++){
                cout << house[i][j][k] << " " ;
            }
            cout << endl;
        }
        
        for(int z = 0; z < 20; z++){
            cout << "#" ;
        }
        cout << endl;
    }
    
    
    
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:31: error: 'i' was not declared in this scope
   18 |                 cout << house[i][j][k] << " " ;
      |                               ^
Language: C++

#include<iostream>
using namespace std;
int main(){
    int n,b,f,r,v;  // ｎは情報の数, bは棟の数、fは階数、rは何番目の部屋、vは入居してきた人数
    cin >> n;
    int house[4][3][10] = {0};
    
    for(int i = 0; i<n; i++){
        cin >> b >> f >> r >> v;
        house[b-1][f-1][r-1] = v;
    }
    
    for(int j = 0;j < 4; j++){
        
        for(int k = 0; k < 3 ;k++){
            
            for(int l = 0; l < 10; l++){
                cout << house[j][k][l] << " " ;
            }
            cout << endl;
        }
        
        if(j != 3){
            for(int z = 0; z < 20; z++){
                cout << #;
            }
            cout << endl;
        }
    }
    
    
    
    return 0;
}


Compiler output:
a.cc:25:25: error: stray '#' in program
   25 |                 cout << #;
      |                         ^
a.cc: In function 'int main()':
a.cc:25:26: error: expected primary-expression before ';' token
   25 |                 cout << #;
      |                          ^
Language: C++

#include<iostream>
using namespace std;
int main(){
    int n,b,f,r,v;
    int  x[4][3][10] ;
    cin>>n;
    for(int i=1;i<=n;i++){
        cin>>b>>f>>r>>v;
        x[b][f][r]=v;
    }
    for(int i=1;i<=4;i++){
        for(int j=1;j<=3;j++){
            for(int k=1;k<=10;k++){
                cout<<" ":
                cout<<x[i][j][k];
            }
            cout<<endl;
        }
        if(i<3){
            cout<<"####################"<<endl;
        }
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:26: error: expected ';' before ':' token
   14 |                 cout<<" ":
      |                          ^
      |                          ;
Language: C++

#include<iostream>
using namespace std;
int main(){
    int n,b,f,r,v;
    int  x[4][3][10]=0 ;
    cin>>n;
    for(int i=1;i<=n;i++){
        cin>>b>>f>>r>>v;
        x[b][f][r]+=v;
    }
    for(int i=1;i<=4;i++){
        for(int j=1;j<=3;j++){
            for(int k=1;k<=10;k++){
                cout<<" ";
                cout<<x[i][j][k];
            }
            cout<<endl;
        }
        if(i<3){
            cout<<"####################"<<endl;
        }
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:22: error: array must be initialized with a brace-enclosed initializer
    5 |     int  x[4][3][10]=0 ;
      |                      ^
Language: C++

#include<iostream>
using namespace std;
int main(){
    int n,b,f,r,v;
    int  x[5][4][11] ;
    cin>>n;
    for(int i=1;i<=n;i++){
        cin>>b>>f>>r>>v;
        x[b][f][r]=v;
    }
    for(int i=1;i<=4;i++){
        for(int j=1;j<=3;j++){
            for(int k=1;k<=10;k++){
                cout<<" ";
                cout<<x[i][j][k];
            }
            cout<<endl;
        }
        if(i=<3){
            cout<<"####################"<<endl;
        }
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:14: error: expected primary-expression before '<' token
   19 |         if(i=<3){
      |              ^
Language: C++

#include<iostream>
using namespace std;
int main(){
    int n,b,f,r,v;
    int  x[4][3][10]==0 ;
    cin>>n;
    for(int i=0;i<n;i++){
        cin>>b>>f>>r>>v;
        x[b-1][f-1][r-1]+=v;
    }
    for(int i=0;i<4;i++){
        for(int j=0;j<3;j++){
            for(int k=0;k<10;k++){
                cout<<" ";
                cout<<x[i][j][k];
            }
            cout<<endl;
        }
        if(i<3){
            cout<<"####################"<<endl;
        }
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:21: error: expected initializer before '==' token
    5 |     int  x[4][3][10]==0 ;
      |                     ^~
a.cc:9:9: error: 'x' was not declared in this scope
    9 |         x[b-1][f-1][r-1]+=v;
      |         ^
a.cc:15:23: error: 'x' was not declared in this scope
   15 |                 cout<<x[i][j][k];
      |                       ^
Language: C++

#include<iostream>
using namespace std;
int main(){
    int n,b,f,r,v;
    int  x[4][3][10] valse ;
    cin>>n;
    for(int i=0;i<n;i++){
        cin>>b>>f>>r>>v;
        x[b-1][f-1][r-1]=v;
    }
    for(int i=0;i<4;i++){
        for(int j=0;j<3;j++){
            for(int k=0;k<10;k++){
                cout<<" ";
                cout<<x[i][j][k];
            }
            cout<<endl;
        }
        if(i<3){
            cout<<"####################"<<endl;
        }
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:22: error: expected initializer before 'valse'
    5 |     int  x[4][3][10] valse ;
      |                      ^~~~~
a.cc:9:9: error: 'x' was not declared in this scope
    9 |         x[b-1][f-1][r-1]=v;
      |         ^
a.cc:15:23: error: 'x' was not declared in this scope
   15 |                 cout<<x[i][j][k];
      |                       ^
Language: C++

#include<iostream>
using namespace std;
int main(){
  int n,b,f,r,v;
  int kousya[4][3][10];
  cin >> n;
  for(i=0;i<n;i++){
    cin >> b >> f >> r >> v;
    kousya[b-1][f-1][r-1]+=v;
  }
  for(int i=0;i<4;i++){
    for(int j=0;j<3;j++){
      for(int k=0;k<10;k++){
	cout << " "<< kousya[i][j][k];
      }
      cout << endl;
    }
    if(i<3)cout << "####################" << endl;
  }
  return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: 'i' was not declared in this scope
    7 |   for(i=0;i<n;i++){
      |       ^
Language: C++

#include<iostream>
using namespace std;
int main(){
  int n,b,f,r,v;
  int kousya[4][3][10];
  cin >> n;
  for(i=0;i<n;i++){
    cin >> b >> f >> r >> v;
    kousya[b-1][f-1][r-1]+=v;
  }
  for(int i=0;i<4;i++){
    for(int j=0;j<3;j++){
      for(int k=0;k<10;k++){
	cout << " "<< kousya[i][j][k];
      }
      cout << endl;
    }
    if(int i<3)cout << "####################" << endl;
  }
  return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: 'i' was not declared in this scope
    7 |   for(i=0;i<n;i++){
      |       ^
a.cc:18:13: error: expected initializer before '<' token
   18 |     if(int i<3)cout << "####################" << endl;
      |             ^
a.cc:18:13: error: expected ')' before '<' token
   18 |     if(int i<3)cout << "####################" << endl;
      |       ~     ^
      |             )
Language: C++

#include<iostream>
using namespace std;
int main(){
    int U[4][3][10]={{{}}};
    int b,f,r,v,n;
    cin >> n
    int i;
    for(i=0;i<n;i++){
            cin >>b >>f >> r >>v;
            U[b-1][f-1][r-1]+=v;
            
    }
    int j,k;
    for(i=0;i<4;i++){
        for(j=0;j<3;j++){
            for(k=0;k<10;k++){
                cout<<" ";
                cout<<U[i][j][k];
            }
            cout<<endl;
        }
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:13: error: expected ';' before 'int'
    6 |     cin >> n
      |             ^
      |             ;
    7 |     int i;
      |     ~~~      
a.cc:8:9: error: 'i' was not declared in this scope
    8 |     for(i=0;i<n;i++){
      |         ^
a.cc:14:9: error: 'i' was not declared in this scope
   14 |     for(i=0;i<4;i++){
      |         ^
Language: C++

#include<iostream>
using namespace std;
int main(){
    int U[4][3][10]={{{}}};
    int b,f,r,v,n;
    cin >> n;
    int i;
    for(i=0;i<n;i++){
            cin >>b >>f >> r >>v;
            U[b-1][f-1][r-1]+=v;
            
    }
    int j,k;
    for(i=0;i<4;i++){
        for(j=0;j<3;j++){
            for(k=0;k<10;k++){
                cout<<" ";
                cout<<U[i][j][k];
            }
            cout<<endl;
        }
        if(i%3=0)cout<<"####################"<<endl;
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:22:13: error: lvalue required as left operand of assignment
   22 |         if(i%3=0)cout<<"####################"<<endl;
      |            ~^~
Language: C++

#include<iostream>
using namespace std;
int main(){
    int U[4][3][10]={{{}}};
    int b,f,r,v,n;
    cin >> n;
    int i;
    for(i=0;i<n;i++){
            cin >>b >>f >> r >>v;
            U[b-1][f-1][r-1]+=v;
            
    }
    int j,k;
    for(i=0;i<4;i++){
        for(j=0;j<3;j++){
            for(k=0;k<10;k++){
                cout<<" ";
                cout<<U[i][j][k];
            }
            cout<<endl;
        }
        if(i<3=0)cout<<"####################"<<endl;
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:22:13: error: lvalue required as left operand of assignment
   22 |         if(i<3=0)cout<<"####################"<<endl;
      |            ~^~
Language: C++

#include <iostream>
using namespace std;

int main()
{
    int room[4][3][10];

    cin >> N;
    int b, f, r, v;
    for(int i=0; i<N ++i){
        cin >> b >> f >> r >> v;
        room[b][f][r] += v;
    }

    for(int i=0; i<4; ++i){
        for(int j=0; j<3; ++j){
            for(int k=0; k<10; ++k){
                cout << ' ' << room[i][j][k];
            }
        }
        cout << "####################" << endl;
    }

    return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: 'N' was not declared in this scope
    8 |     cin >> N;
      |            ^
a.cc:10:24: error: expected ';' before 'i'
   10 |     for(int i=0; i<N ++i){
      |                        ^
      |                        ;
Language: C++

#include <iostream>
using namespace std;

int main()
{
    int room[4][3][10];
    int N;
    cin >> N;
    int b, f, r, v;
    for(int i=0; i<N ++i){
        cin >> b >> f >> r >> v;
        room[b][f][r] += v;
    }

    for(int i=0; i<4; ++i){
        for(int j=0; j<3; ++j){
            for(int k=0; k<10; ++k){
                cout << ' ' << room[i][j][k];
            }
        }
        cout << "####################" << endl;
    }

    return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:10:24: error: expected ';' before 'i'
   10 |     for(int i=0; i<N ++i){
      |                        ^
      |                        ;
Language: C++

#include <iostream>

using namespace std;

int main() {
    int n, b, f, r, v, x[4][3][10] = {0}, i, j, k;
    cin >> n;
    for(i = 0; i < n; i++) {
        cin >> b >> f >> r >> v;
        x[b][f][r] += v
    }
    for(i = 0; i < 4; i++) {
        for(j = 0; j < 2; j++) {
            for(k = 0; k < 9; k++) {
                cout << x[i][j][k] << " ";
            }
            cout << endl;
        }
        if(i!=3) {
            for(k=0;k<20;k++)
                cout << '#'
        }
    }
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:24: error: expected ';' before '}' token
   10 |         x[b][f][r] += v
      |                        ^
      |                        ;
   11 |     }
      |     ~                   
a.cc:21:28: error: expected ';' before '}' token
   21 |                 cout << '#'
      |                            ^
      |                            ;
   22 |         }
      |         ~
Language: C++

int main()
{
	int n, b, f, r, v, c[4][3][10] = {};

	cin >> n;

	for (n; n > 0; n--) {
		cin >> b >> f >> r >> v;
		c[b - 1][f - 1][r - 1] += v;
	}

	for (int i = 0; i < 4; i++) {
		for (int j = 0; j < 3; j++) {
			for (int k = 0; k < 10; k++) {
				cout << " " << c[i][j][k];
			}
			cout << endl;
		}
		if (i < 3) cout << "####################" << endl;
	}

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'cin' was not declared in this scope
    5 |         cin >> n;
      |         ^~~
a.cc:15:33: error: 'cout' was not declared in this scope
   15 |                                 cout << " " << c[i][j][k];
      |                                 ^~~~
a.cc:17:25: error: 'cout' was not declared in this scope
   17 |                         cout << endl;
      |                         ^~~~
a.cc:17:33: error: 'endl' was not declared in this scope
   17 |                         cout << endl;
      |                                 ^~~~
a.cc:19:28: error: 'cout' was not declared in this scope
   19 |                 if (i < 3) cout << "####################" << endl;
      |                            ^~~~
a.cc:19:62: error: 'endl' was not declared in this scope
   19 |                 if (i < 3) cout << "####################" << endl;
      |                                                              ^~~~
Language: C++

l=[[[0 for i in xrange(10)]for j in xrange(3)]for k in xrange(4)]
s='#'*20+'\n'
n=input()
for i in xrange(n):
    b,f,r,v=map(int,raw_input().split())
    l[b-1][f-1][r-1]+=v
for i in xrange(4):
    for j in xrange(-3,0):
        print ' '+' '.join(map(str,l[i][j]))
        if i<3 or j<-1:print
    if i<3:print s

Compiler output:
a.cc:1:1: error: 'l' does not name a type
    1 | l=[[[0 for i in xrange(10)]for j in xrange(3)]for k in xrange(4)]
      | ^
Language: C++

#include<stdio.h>
int main()
{
int p[4][3][10];
int n, r, g, f,v;

for(int i=0;i<4;i++)
for(int j=0;j<3;j++)
for(int k=0;k<10;k++)
p[i][j][k]=0;

scanf("%d",&n)
for(int ii=0;ii<n;ii++)
{
scanf("%d",&r);scanf("%d",&g);scanf("%d",&f);scanf("%d",&v);
p[r+1][g+1][f+1]+=v;
}
for(int iii=0;iii<4;iii++)
{
for(int jj=0;jj<3;jj++)
{
for(int kk=0;kk<10;kk++)

{
printf(" %d",p[iii][jj][kk];
}
printf("\n");
}
if(iii<2)printf("####################\n");
else if(iii==2)printf("\n");
}
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:15: error: expected ';' before 'for'
   12 | scanf("%d",&n)
      |               ^
      |               ;
   13 | for(int ii=0;ii<n;ii++)
      | ~~~            
a.cc:13:14: error: 'ii' was not declared in this scope
   13 | for(int ii=0;ii<n;ii++)
      |              ^~
a.cc:25:28: error: expected ')' before ';' token
   25 | printf(" %d",p[iii][jj][kk];
      |       ~                    ^
      |                            )
Language: C++

l=[0]*120
s="#"*20
for i in range(input()):b,f,r,v=map(int,raw_input().split());l[b*30+f*10+r-41]+=v
print"",
for i in range(1,121):
 print l[i-1],
 if i==120:break
 if i%30==0:print;print s,
 if i%10==0:print;print"",

Compiler output:
a.cc:1:1: error: 'l' does not name a type
    1 | l=[0]*120
      | ^
a.cc:3:62: error: 'l' does not name a type
    3 | for i in range(input()):b,f,r,v=map(int,raw_input().split());l[b*30+f*10+r-41]+=v
      |                                                              ^
a.cc:8:19: error: 'print' does not name a type; did you mean 'int'?
    8 |  if i%30==0:print;print s,
      |                   ^~~~~
      |                   int
a.cc:9:19: error: 'print' does not name a type; did you mean 'int'?
    9 |  if i%10==0:print;print"",
      |                   ^~~~~
      |                   int
Language: C++

#include <iostream>
#define BUILD 4
#define FLOOR 3
#define ROOM  10
using namespace std;
int main() {
    // ????????????????????°
    int n;
    // ??¬???????????¨?±?????????°?????????????????????
    // ????????????????????????????£????????????¨?±????????????¨???
    // ????????????0??????????¬????
    int house[BUILD+1][FLOOR+1][ROOM+1] = {};
    cin >> n;
    // ???????????????
    for (int i = 0; i < n; i++) {
        // ??????????£????????????¨?±?????????°
        int build, floor, room, person;
        cin >> build >> floor >> room >> person;
        house[build][floor][room] += person;
    }
    // ??¢???????????????
    for (int b = 1; b <= BUILD; b++) {
        cout << (b!=1?"####################\n":"");
        for (int f = 1; f <= FLOOR; f++) {
            for (int r = 1; r <= ROOM; r++) {
                cout << " " house[b][f][r];
            }
            cout << endl;
        }
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:26:28: error: expected ';' before 'house'
   26 |                 cout << " " house[b][f][r];
      |                            ^~~~~~
      |                            ;
Language: C++

#include<iostream>
using namespace std;
int main(){
   int house[5][4][11];
   int n,b,f,r,v;
   int i,j,k,l;

   for(i=1; i<=4; i++){
   	for(j=1; j<=3; j++){
   		for(k=1; k<=10; k++){
   			house[i][j][k] = 0;
   		}
   	}
   }

   cin >> n;

   for(l=0; l<n; l++){
   	cin >> b >> f >> r >>v;
   	house[b][f][r] =+ v;
   }

   for(i=1; i<=3; i++){
   	for(j=1; j<=3; j++){
   		for(k=1; k<=9; k++){
   			cout << house[i][j][k] << " ";
   		}
   		cout << house[i][j][10]
   		cout << endl;
   	}
   	for(l=0; l<10; l++){
   		cout << "#";
   	}
   	cout << endl;
   }

   	for(j=1; j<=3; j++){
   		for(k=1; k<=9; k++){
   			cout << house[4][j][k] << " ";
   		}
   		cout << house[4][j][10]
   		cout << endl;
   	}

   return 0;
}
   

Compiler output:
a.cc: In function 'int main()':
a.cc:28:40: error: expected ';' before 'cout'
   28 |                 cout << house[i][j][10]
      |                                        ^
      |                                        ;
   29 |                 cout << endl;
      |                 ~~~~                    
a.cc:41:40: error: expected ';' before 'cout'
   41 |                 cout << house[4][j][10]
      |                                        ^
      |                                        ;
   42 |                 cout << endl;
      |                 ~~~~
Language: C++

#include<stdio.h>
int main(){
int a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,y,v,w,x,y,z;
int joho[4][3][10];
for(i=0;i<4;i++){
for(s=0;s<3;s++){
for(m=0;m<10;m++){
joho[i][s][m]=0;
}
}
}
scanf("%d",&n);
for(h=0;h<n;n++){
scanf("%d %d %d %d",&a,&b,&c,&joho[a][b][c]);
}
for(i=0;i<4;i++){
for(s=0;s<3;s++){
for(m=0;m<10;m++){
printf(" %d",joho[i][s][m]);
}
printf("\n");
}
printf("####################\n")
}
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:53: error: redeclaration of 'int y'
    3 | int a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,y,v,w,x,y,z;
      |                                                     ^
a.cc:3:45: note: 'int y' previously declared here
    3 | int a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,y,v,w,x,y,z;
      |                                             ^
a.cc:23:33: error: expected ';' before '}' token
   23 | printf("####################\n")
      |                                 ^
      |                                 ;
   24 | }
      | ~
Language: C++

#include<iostream>
using namespace std;
int zyo[5][5][11]={0},mune,kai,hidari,kazu,hito;
int in(){
cin>>kazu;
for(int a=0;a<kazu;a++){
cin>>mune>>kai>>hidari>>hito;
zyo[mune][kai][hidari]+=hito;
}
int out(){
for(int a=1;a<5;a++){
for(int b=1;b<5;b++){
for(int c=1;c<11;c++){
cout<<zyo[a][b][c];
if(c!=10)
cout<<" ";
else
cout<<endl;
}
if(b!=4)
cout<<"********************"<<endl;
}
}
}
int main(){
in();
out();
return 0;
}

Compiler output:
a.cc: In function 'int in()':
a.cc:10:8: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   10 | int out(){
      |        ^~
a.cc:10:8: note: remove parentheses to default-initialize a variable
   10 | int out(){
      |        ^~
      |        --
a.cc:10:8: note: or replace parentheses with braces to value-initialize a variable
a.cc:10:10: error: a function-definition is not allowed here before '{' token
   10 | int out(){
      |          ^
a.cc:25:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   25 | int main(){
      |         ^~
a.cc:25:9: note: remove parentheses to default-initialize a variable
   25 | int main(){
      |         ^~
      |         --
a.cc:25:9: note: or replace parentheses with braces to value-initialize a variable
a.cc:25:11: error: a function-definition is not allowed here before '{' token
   25 | int main(){
      |           ^
a.cc:29:2: error: expected '}' at end of input
   29 | }
      |  ^
a.cc:4:9: note: to match this '{'
    4 | int in(){
      |         ^
a.cc:29:2: warning: no return statement in function returning non-void [-Wreturn-type]
   29 | }
      |  ^
Language: C++

import java.util.*;
class Main{
	Scanner sc=new Scanner(System.in);
	int[][][] gundam=new int[4][3][10];
	void Main(){
		int N=sc.nextInt();
		int b,f,r,v;
		for(int i=0;i<N;i++){
			b=sc.nextInt();
			f=sc.nextInt();
			r=sc.nextInt();
			v=sc.nextInt();
			gundam[b-1][f-1][r-1]+=v;
		}
		for(int i=0;i<4;i++){
			output(i);
			if(i!=3)System.out.println("####################");
		}
	}
	void output(int b){
		for(int i=0;i<3;i++){
			for(int j=0;j<10;j++){
				System.out.print(" "+gundam[b][i][j]);
			}
			System.out.println();
		}
	}
		public static void main(String[]args){
			new Main().Main();
	}
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.*;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:9: error: 'Scanner' does not name a type
    3 |         Scanner sc=new Scanner(System.in);
      |         ^~~~~~~
a.cc:4:12: error: expected unqualified-id before '[' token
    4 |         int[][][] gundam=new int[4][3][10];
      |            ^
a.cc:5:9: error: return type specification for constructor invalid
    5 |         void Main(){
      |         ^~~~
a.cc:28:23: error: expected ':' before 'static'
   28 |                 public static void main(String[]args){
      |                       ^~~~~~~
      |                       :
a.cc:28:41: error: 'String' has not been declared
   28 |                 public static void main(String[]args){
      |                                         ^~~~~~
a.cc:28:49: error: expected ',' or '...' before 'args'
   28 |                 public static void main(String[]args){
      |                                                 ^~~~
a.cc:31:2: error: expected ';' after class definition
   31 | }
      |  ^
      |  ;
a.cc: In constructor 'Main::Main()':
a.cc:6:23: error: 'sc' was not declared in this scope
    6 |                 int N=sc.nextInt();
      |                       ^~
a.cc:13:25: error: 'gundam' was not declared in this scope
   13 |                         gundam[b-1][f-1][r-1]+=v;
      |                         ^~~~~~
a.cc:17:33: error: 'System' was not declared in this scope
   17 |                         if(i!=3)System.out.println("####################");
      |                                 ^~~~~~
a.cc: In member function 'void Main::output(int)':
a.cc:23:33: error: 'System' was not declared in this scope
   23 |                                 System.out.print(" "+gundam[b][i][j]);
      |                                 ^~~~~~
a.cc:23:54: error: 'gundam' was not declared in this scope
   23 |                                 System.out.print(" "+gundam[b][i][j]);
      |                                                      ^~~~~~
a.cc:25:25: error: 'System' was not declared in this scope
   25 |                         System.out.println();
      |                         ^~~~~~
a.cc: In static member function 'static void Main::main(int*)':
a.cc:29:35: error: expected ';' before '.' token
   29 |                         new Main().Main();
      |                                   ^
Language: C++

#include<iostream>
using namespace std;
int zyo[4][3][10]={0},mune,kai,hidari,n,hito;
int in(){
cin>>n;
for(int a=0:a<n;a++){
cin>>mune>>kai>>hidari;
cin>>hito;
zyo[mune-1][kai-1][hidari-1]+=hito;
}
}
int out(){
for(int a=0;a<4;a++){
for(int b=0;b<3;b++){
for(int c=0;c<10;c++){
cout<<" "<<zyou[a][b][c];
}
cout<<endl;
}
if(a<3)
cout<<"####################"<<endl;
}
}
int main(){
in();
out();
return 0;
}

Compiler output:
a.cc: In function 'int in()':
a.cc:6:10: error: initializer in range-based 'for' loop
    6 | for(int a=0:a<n;a++){
      |          ^
a.cc:6:16: error: expected ')' before ';' token
    6 | for(int a=0:a<n;a++){
      |    ~           ^
      |                )
a.cc:6:17: error: 'a' was not declared in this scope
    6 | for(int a=0:a<n;a++){
      |                 ^
a.cc:11:1: warning: no return statement in function returning non-void [-Wreturn-type]
   11 | }
      | ^
a.cc: In function 'int out()':
a.cc:16:12: error: 'zyou' was not declared in this scope; did you mean 'zyo'?
   16 | cout<<" "<<zyou[a][b][c];
      |            ^~~~
      |            zyo
a.cc:23:1: warning: no return statement in function returning non-void [-Wreturn-type]
   23 | }
      | ^
Language: C++

import java.io.*;
import java.util.Arrays;

public class Main{
	public static void main(String[] args) throws IOException{ 
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String sc = br.readLine();
		int n = Integer.parseInt(sc);
		int[][][] con = new int[4][3][10];
		for (int i = 0; i<n ; i++ ) {
			String line = br.readLine();
			String[] split = line.split(" ");
			int building = Integer.parseInt(split[0]);
			int floor = Integer.parseInt(split[1]);
			int rank = Integer.parseInt(split[2]);
			int mem = Integer.parseInt(split[3]);
			con[(building-1)][(floor-1)][(rank-1)] += mem;

		}
		for (int i = 0; i<4 ; i++ ) {
			for (int j = 0; j < 3  ;j++ ) {
				for (int k = 0; k < 10 ; k++ ) {
					if ( k == 9) {
						System.out.print(" " + con[i][j][k] +"\n");
					}else{

					System.out.print(" " +con[i][j][k]);
					}
				}
			}
			System.out.println("####################");
		}
	}
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.io.*;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: 'import' does not name a type
    2 | import java.util.Arrays;
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:1: error: expected unqualified-id before 'public'
    4 | public class Main{
      | ^~~~~~
Language: C++

#include <iostream>
using namespace std;

void main()
{
    const int ROOM = 10;
    const int FLOOR = 3;
    const int BUILDING = 4;
    int n,b,f,r,v;
    int arr[BUILDING][FLOOR][ROOM] = {{}};
    cin>>n;
    for(int i=0;i<n;i++)
    {
        cin>>b>>f>>r>>v;
        arr[b-1][f-1][r-1] += v;
    }

    for(int i=0;i<BUILDING;i++)
    {
        for(int j=0;j<FLOOR;j++)
        {
            for(int k=0;k<ROOM;k++)
            {
                if(k==ROOM-1)
                {
                    cout<<arr[i][j][k]<<"\n";
                }else
                {
                    cout<<arr[i][j][k]<<" ";
                }
            }
        }
        if(i==BUILDING-1)break;

        cout<<"####################\n";
    }

    return;
}

Compiler output:
a.cc:4:1: error: '::main' must return 'int'
    4 | void main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:38:5: error: return-statement with no value, in function returning 'int' [-fpermissive]
   38 |     return;
      |     ^~~~~~
Language: C++

#include <iostream>
using namespace std;
??
int main()
{
????int n,b,f,r,v;
????int people[5][4][11]={0};
????cin >> n;
??????
????for(int i=0;i<n;i++){
????????cin >> b >> f >> r >> v;
????????people[b][f][r] +=v;
????}
??????
????for(int i=1;i<=4;i++){
????????for(int j=1;j<=3;j++){
????????????for(int k=1;k<=10;k++){
????????if(people[i][j][k]<0){
????????????people[i][j][k]=0;
????????}
????????if(i!=0 && j!=0 && k!=0){
????????????cout << " " << people[i][j][k];
????????}
????????????}
????????????cout << endl;
????????}
????????if(i!=4){
????????????cout << "####################" << endl;
????????}
????}
????return 0;
}

Compiler output:
a.cc:3:1: error: expected unqualified-id before '?' token
    3 | ??
      | ^
Language: C++

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

int main(){
int n,b[100000],f[100000],r[100000],v[100000];
int A[5][4][11];

for(int i=1;i<5;i++){
for(int j=1;j<4;j++){
for(int k=1;k<11;k++){
A[i][j][k]=0;
}
}
}

cin>>n;
for(int i=1;i<=n;i++){
cin>>b[i]>>f[i]>>r[i]>>r[i];
A[b[i]][f[i]][r[i]] += v;
}

for(int i=1;i<=4;i++){
for(int j=1;j<=3;j++){
for(int k=1;k<=10;k++){
cout<<" "<<A[i][j][k];
}
cout<<endl;
}
if(i!=4){
cout<<"####################"<<endl;
}
}

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:21: error: invalid conversion from 'int*' to 'int' [-fpermissive]
   20 | A[b[i]][f[i]][r[i]] += v;
      | ~~~~~~~~~~~~~~~~~~~~^~~~
      |                     |
      |                     int*
Language: C++

#include <stdio.h>

int main(){
	int house[4][3][10];
	int b,f,r,v;
	int i,n,j,k;
	
	for(i=0;i<4;i++){
		for(j=0;j<3;j++){
			for(k=0;k<10;k++){
				house[i][j][k] = 0;
			}
		}
	}
	
	scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%d %d %d %d",&b,&f,&r,&v);
		house[b-1][f-1][r-1] = v;
	}
	for(i=0;i<4;i++){
		for(j=0;j<3;j++){
			for(k=0;k<10;k++){
				printf(" %d",house[i][j][k]);
			}
			printf("\n");
		}
		if(3-i){
		printf("####################\n");
		
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:32:2: error: expected '}' at end of input
   32 | }
      |  ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

#include <iostream>
#include <string>
#include <vector>
#include <sstream>
#include <algorithm>
#include <stdio.h>
#include <iomanip>
#define _USE_MATH_DEFINES
#include <math.h>
#include <numeric>

//#include <map>

using namespace std;

const int iNumberOfRooms = 10;
const int iNumberOfFloors = 3;
const int iNumberOfBuildings = 4;

class info {
public:
	int mb, mf, mr, mv;
	info(int b, int f, int r, int v)
	{
		mb = b;
		mf = f;
		mr = r;
		mv = v;
	}
};

class house {
private:
	int npeople[iNumberOfBuildings][iNumberOfFloors][iNumberOfRooms];
public:

	house()
	{
		memset(npeople, 0, sizeof(npeople));
	}

	void regInout(int b, int f, int r, int v)
	{
		npeople[b - 1][f -1][r - 1] += v;
	}

	void regInout(info &inf)
	{
		npeople[inf.mb - 1][inf.mf - 1][inf.mr - 1] += inf.mv;
	}

	int getPplInARoom(int b, int f, int r)
	{
		return npeople[b][f][r];
	}
};



int main()
{
	int n;
	cin >> n;

	house h;

	vector<info> vInfo;

	for (int i = 0; i < n; i++)
	{
		int b,f,r,v;
		cin >> b >> f >> r >> v;
		info inf(b, f, r, v);
		vInfo.push_back(inf);
	}

	for (int i = 0; i < vInfo.size(); i++)
	{
		h.regInout(vInfo.at(i));
	}

	for (int i = 0; i < iNumberOfBuildings; i++)
	{
		for (int j = 0; j < iNumberOfFloors; j++)
		{
			for (int k = 0; k < iNumberOfRooms; k++)
			{
				cout << " " << h.getPplInARoom(i, j, k);
			}
			cout << endl;
		}
		cout << "####################" << endl;
	}

	return 0;
}

Compiler output:
a.cc: In constructor 'house::house()':
a.cc:39:17: error: 'memset' was not declared in this scope
   39 |                 memset(npeople, 0, sizeof(npeople));
      |                 ^~~~~~
a.cc:11:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
   10 | #include <numeric>
  +++ |+#include <cstring>
   11 |
Language: C++

#include <iostream>
#include <string>
#include <vector>
#include <sstream>
#include <algorithm>
#include <stdio.h>
#include <iomanip>
#define _USE_MATH_DEFINES
#include <math.h>
#include <numeric>

//#include <map>

using namespace std;

const int iNumberOfRooms = 10;
const int iNumberOfFloors = 3;
const int iNumberOfBuildings = 4;

class info {
public:
	int mb, mf, mr, mv;
	info(int b, int f, int r, int v)
	{
		mb = b;
		mf = f;
		mr = r;
		mv = v;
	}
};

class house {
private:
	int npeople[iNumberOfBuildings][iNumberOfFloors][iNumberOfRooms];
public:

	house()
	{
		memset(npeople, 0, sizeof(npeople));
	}

	void regInout(int b, int f, int r, int v)
	{
		npeople[b - 1][f -1][r - 1] += v;
	}

	void regInout(info &inf)
	{
		npeople[inf.mb - 1][inf.mf - 1][inf.mr - 1] += inf.mv;
	}

	int getPplInARoom(int b, int f, int r)
	{
		return npeople[b][f][r];
	}
};



int main()
{
	int n;
	cin >> n;

	house h;

	vector<info> vInfo;

	for (int i = 0; i < n; i++)
	{
		int b,f,r,v;
		cin >> b >> f >> r >> v;
		info inf(b, f, r, v);
		vInfo.push_back(inf);
	}

	for (int i = 0; i < vInfo.size(); i++)
	{
		h.regInout(vInfo.at(i));
	}

	for (int i = 0; i < iNumberOfBuildings; i++)
	{
		for (int j = 0; j < iNumberOfFloors; j++)
		{
			for (int k = 0; k < iNumberOfRooms; k++)
			{
				cout << " " << h.getPplInARoom(i, j, k);
			}
			cout << endl;
		}
		if ( i != iNumberOfBuildings - 1)
			cout << "####################" << endl;
	}

	return 0;
}

Compiler output:
a.cc: In constructor 'house::house()':
a.cc:39:17: error: 'memset' was not declared in this scope
   39 |                 memset(npeople, 0, sizeof(npeople));
      |                 ^~~~~~
a.cc:11:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
   10 | #include <numeric>
  +++ |+#include <cstring>
   11 |
Language: C++

import java.util.*;

public class Main {
	public static void main(String[] args) {
		
		Scanner sc = new Scanner(System.in);

		ArrayList<Integer> bData = new ArrayList<>();
		ArrayList<Integer> fData = new ArrayList<>();
		ArrayList<Integer> rData = new ArrayList<>();
		ArrayList<Integer> vData = new ArrayList<>();
		
		int firBuild[][] = new int[10][3];
		int secoBuild[][] = new int[10][3];
		int thiBuild[][] = new int[10][3];
		int forBuild[][] = new int[10][3];
		
		//??\?????????
		int n = sc.nextInt();
		int b, f, r, v = 0;
		for(int i = 0; i < n; i++) {
			b = sc.nextInt();
			f = sc.nextInt();
			r = sc.nextInt();
			v = sc.nextInt();
			bData.add(b);
			fData.add(f);
			rData.add(r);
			vData.add(v);
		}
		
		//???????????????
		for(int j = 0; j < 3; j++) {
			for(int i = 0; i < 10; i++) {
				firBuild[i][j] = 0;
				secoBuild[i][j] = 0;
				thiBuild[i][j] = 0;
				forBuild[i][j] = 0;
			}
		}
		
		//?????????????´?
		for(int i = 0; i < n; i++) {
			if(bData.get(i) == 1) {
				firBuild[rData.get(i)-1][fData.get(i)-1] = vData.get(i);
			} else if(bData.get(i) == 2) {
				secoBuild[rData.get(i)-1][fData.get(i)-1] = vData.get(i);
			} else if(bData.get(i) == 3) {
				thiBuild[rData.get(i)-1][fData.get(i)-1] = vData.get(i);
			} else if(bData.get(i) == 4) {
				forBuild[rData.get(i)-1][fData.get(i)-1] = vData.get(i);
			}
		}
		
		//??????
		for(int k  = 0; k < 4; k++) {
			for(int j = 0; j < 3; j++) {//?????????
				for(int i = 0; i < 10; i++) {//?????????
					if(k == 0) {
						System.out.print(" " + firBuild[i][j]);
					} else if(k == 1) {
						System.out.print(" " + secoBuild[i][j]);
					} else if(k == 2) {
						System.out.print(" " + thiBuild[i][j]);
					} else if(k == 3) {
						System.out.print(" " + forBuild[i][j]);
					}
				}
				System.out.println();
			}
			if(k != 3) {
				System.out.println("####################");
			}
			System.out.println();
		}
	}
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.*;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: expected unqualified-id before 'public'
    3 | public class Main {
      | ^~~~~~
Language: C++

using namespace std;

int main(){
	int tower[4][3][10];
	int n;
	int b,f,r,v;
	for(int a=0;a<4;a++){
		for(int b=0;b<3;b++){
			for(int c=0; c<10;c++){
				tower[a][b][c]=0;
				}
			}
		}
		
	cin >> n;
	
	for(int i=0;i<n;i++){
		cin >> b >> f >> r >> v;
		tower[b-1][f-1][r-1] += v;
		}
	for(int a=0;a<4;a++){
		for(int b=0;b<3;b++){
			for(int c=0;c<10;c++){
				cout << tower[a][b][c]<<" ";
				}
			cout << "\n";
			}
		if (a!=3) {for(int d=0;d<20;d++){cout << "#";}}
		cout<<endl;
		}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:9: error: 'cin' was not declared in this scope
   15 |         cin >> n;
      |         ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:24:33: error: 'cout' was not declared in this scope
   24 |                                 cout << tower[a][b][c]<<" ";
      |                                 ^~~~
a.cc:24:33: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:26:25: error: 'cout' was not declared in this scope
   26 |                         cout << "\n";
      |                         ^~~~
a.cc:26:25: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:28:50: error: 'cout' was not declared in this scope
   28 |                 if (a!=3) {for(int d=0;d<20;d++){cout << "#";}}
      |                                                  ^~~~
a.cc:28:50: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:29:17: error: 'cout' was not declared in this scope
   29 |                 cout<<endl;
      |                 ^~~~
a.cc:29:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:29:23: error: 'endl' was not declared in this scope
   29 |                 cout<<endl;
      |                       ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
Language: C++

#include <iostream>
using namespace std;

int _tmain(int argc, _TCHAR* argv[])
{
	int mansion[4][3][10] = {0};
	int b,f,r,v,count;
	int i = 0;
	cin >> count;

	while(i < count){
		cin >> b >> f >> r >> v;
		mansion[b - 1][f - 1][r - 1] = v;
		i++;
	}

	for(int j = 0; j < 4; j++){
		for(int h = 0; h < 3; h++){
			for(int k = 0; k < 10; k++){
				cout << mansion[j][h][k] << ' ';
			}
			cout << endl;
		}
		cout << "####################" << endl;
	}

	return 0;
}

Compiler output:
a.cc:4:22: error: '_TCHAR' has not been declared
    4 | int _tmain(int argc, _TCHAR* argv[])
      |                      ^~~~~~
Language: C++

#include <iostream>
using namespace std;

int main(){
	long n = 0;
	long b = 0, f = 0, r = 0; v = 0;
	long rn = 0, rn2 = 0;
	vector<long> a(120, 0);

	cin >> n;

	for (long i = 0; i < n; i++){
		cin >> b >> f >> r >> v;
		rn = (b - 1) * 30 + (c - 1) * 10 + (r - 1);
		a[rn] += v;
	}

	for (long i = 0; i < 4; i++){
		for (long j = 0; j < 3; j++){
			for (long k = 0; k < 10; k++){
				rn2 = i * 30 + j * 10 + k;
				cout << " " << a[rn2];
			}
			cout << endl;
		}
		if (i != 3){
			cout << "####################" << endl;
		}
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:35: error: 'v' was not declared in this scope
    6 |         long b = 0, f = 0, r = 0; v = 0;
      |                                   ^
a.cc:8:9: error: 'vector' was not declared in this scope
    8 |         vector<long> a(120, 0);
      |         ^~~~~~
a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    1 | #include <iostream>
  +++ |+#include <vector>
    2 | using namespace std;
a.cc:8:16: error: expected primary-expression before 'long'
    8 |         vector<long> a(120, 0);
      |                ^~~~
a.cc:14:38: error: 'c' was not declared in this scope
   14 |                 rn = (b - 1) * 30 + (c - 1) * 10 + (r - 1);
      |                                      ^
a.cc:15:17: error: 'a' was not declared in this scope
   15 |                 a[rn] += v;
      |                 ^
a.cc:22:48: error: 'a' was not declared in this scope
   22 |                                 cout << " " << a[rn2];
      |                                                ^
Language: C++

#include <iostream>

using namespace std;

int main() {
    int house[5][4][11];
    int n;
    int b,f,r,v;
    cin>>n;
    for (int j = 1; j <= 4 ; ++j) {
        for (int i = 1; i <= 3 ; ++i) {
            for (int k = 10; k <= 10; ++k) {
                house[i][j][k] = 0;
            }
        }
    }

    for (int i = 0; i <n ; ++i) {
        cin>> b >>f >> r >> v;
        house[b][f][r] += v;
    }
    for (int f=1; f<=4 f++){
        if(f>1) cout << "####################" << endl;
        for (int b = 1; b <= 3; ++b) {
            for (int r = 0; r <= 10 ; ++r) {
                cout<<" "<<house[f][f][r];
            }
            cout << endl;
        }
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:23: error: expected ';' before 'f'
   22 |     for (int f=1; f<=4 f++){
      |                       ^~
      |                       ;
Language: C++

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

int main(){
	int n,b,f,r,v,house[4][3][10];

	for(int i=0;i<4;i++){
		for(int j=0;j<3;j++){
			for(int k=0;k<10;k++){
				house[i][j][k]=0
			}
		}
	}

	cin >> n;
	for(int i=0;i<n;i++){
		cin >> b >> f >> r >> v;
		house[b][f][r]=house[b][f][r]+v
	}

	for(int i=0;i<4;i++){
		for(int j=0;j<3;j++){
			for(int k=0;k<10;k++){
				cout << " " << house[i][j][k];
			}
			cout << endl;
		}
		if(i<3){
			cout << "####################" << endl;
		}
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:49: error: expected ';' before '}' token
   11 |                                 house[i][j][k]=0
      |                                                 ^
      |                                                 ;
   12 |                         }
      |                         ~                        
a.cc:19:48: error: expected ';' before '}' token
   19 |                 house[b][f][r]=house[b][f][r]+v
      |                                                ^
      |                                                ;
   20 |         }
      |         ~
Language: C++

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

int main(void)
{
  int n,b,f,r,v;
  int room[4][3][10]:
  int i = 0;
  char bar[20] = {"###################"};
  cin >> n;
  
  do{
    cin >> b >> f >> r >> v;
    room[b][f][r] += v;
    if(i++ == n);
  }while(b < 0 || b >= 4 || f < 0 || f >= 3 || r < 0 || r >= 10);
    
  for(int i = 0;i < 4;i++){
    for(int j = 0;j < 3;j++){
      for(int k = 0;k < 10;k++){
        printf(" %d",room[i][j][k]);
      }
      printf("\n\n");
    }
    printf("%s\n\n",bar);
  } 

  return 0;
}
  
  

Compiler output:
a.cc: In function 'int main()':
a.cc:8:21: error: expected initializer before ':' token
    8 |   int room[4][3][10]:
      |                     ^
a.cc:15:5: error: 'room' was not declared in this scope
   15 |     room[b][f][r] += v;
      |     ^~~~
a.cc:16:8: error: 'i' was not declared in this scope
   16 |     if(i++ == n);
      |        ^
a.cc:22:22: error: 'room' was not declared in this scope
   22 |         printf(" %d",room[i][j][k]);
      |                      ^~~~
Language: C++

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

int main(void)
{
  int n,b,f,r,v;
  int room[4][3][10];
  int i = 0;
  char bar[20] = {"###################"};
  cin >> n;
  for(int i = 0;i < n;i++){
    do{
      cin >> b >> f >> r >> v;
      room[b][f][r] += v;
      if(room[b][f][r] > 9) room[b][f][r] = 9;
      else if(roomb[b][f][r] < 0) room[b][f][r] = 0;

      if(i++ == n) break;
    }while(b < 0 || b > 4 || f < 0 || f > 3 || r < 0 || r > 10);
  }  
  for(int i = 0;i < 4;i++){
    for(int j = 0;j < 3;j++){
      for(int k = 0;k < 10;k++){
        printf(" %d",room[i][j][k]);
      }
      printf("\n\n");
    }
    printf("%s\n\n",bar);
  } 

  return 0;
}
  
  

Compiler output:
a.cc: In function 'int main()':
a.cc:17:15: error: 'roomb' was not declared in this scope; did you mean 'room'?
   17 |       else if(roomb[b][f][r] < 0) room[b][f][r] = 0;
      |               ^~~~~
      |               room
Language: C++

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

int main(void)
{
  int n,b,f,r,v;
  int room[4][3][10];
  int i = 0;
  char bar[20] = {"###################"};
  cin >> n;
  for(int i = 0;i < n;i++){
    do{
      cin >> b >> f >> r >> v;
      room[b][f][r] += v;
      if(room[b][f][r] > 9) room[b][f][r] = 9;
      else if(room[b][f][r] < 0) room[b][f][r] = 0;

      if(i++ == n) break;
    }while(b < 0 || b > 4 || f < 0 || f > 3 || r < 0 || r > 10);
  }  
  for(int i = 0;i < 4;i++){
    for(int j = 0;j < 3;j++){
      for(int k = 0;k < 10;k++){
        printf(" %d",room[i][j][k]);
      }
      if(i < 4)printf("\n\n");
      else printf("\n");
    }
    if(i < 4) prinf("%s\n\n",str);    
  } 

  return 0;
}
  
  

Compiler output:
a.cc: In function 'int main()':
a.cc:30:30: error: 'str' was not declared in this scope; did you mean 'std'?
   30 |     if(i < 4) prinf("%s\n\n",str);
      |                              ^~~
      |                              std
a.cc:30:15: error: 'prinf' was not declared in this scope; did you mean 'printf'?
   30 |     if(i < 4) prinf("%s\n\n",str);
      |               ^~~~~
      |               printf