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

nclude<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[21] = { "####################" };

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

	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;
		} 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:1:1: error: 'nclude' does not name a type
    1 | nclude<iostream>
      | ^~~~~~
a.cc: In function 'int main()':
a.cc:20:9: error: 'cin' was not declared in this scope
   20 |         cin >> n;
      |         ^~~
a.cc:3:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    2 | #include<cstdio>
  +++ |+#include <iostream>
    3 | using namespace std;
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[21] = { "####################" };

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

	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;
		} 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");
			if (i != 3 || j != 2)printf("\n");
		}
		if (i < 3) printf("%s\n\n", bar);
	}

	return 0;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:20:9: error: 'cin' was not declared in this scope
   20 |         cin >> n;
      |         ^~~
a.cc:3:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    2 | #include<cstdio>
  +++ |+#include <iostream>
    3 | using namespace std;
Language: C++

#include<iostream>
using namespce std;

int main(void) {
    int max,min,num,average,avsum;
    do{
        cin>>num;
        int rawdata[1000] = {0};
        if(num == 0){
            return 0;
        }
        else{
        max = 0,min = 1000,avsum = num,average = 0;
        }
        while(num > 0){
            num--;
            cin>>rawdata[num];
        }
        for(int i = 0; i < avsum;i++) {
            avarage += rawdata[i];
            if(max < rawdata[i]){
                max = rawdata[i];}
            if(min > rawdata[i]){
                min = rawdata[i];}
        }
        
        avarage -= max;
        avarage -= min;
        
        avarage /= (avsum - 2);
        cout<<average<<endl;
    }while(1);
    return 0;
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespce'
    2 | using namespce std;
      |       ^~~~~~~~
a.cc: In function 'int main()':
a.cc:7:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |         cin>>num;
      |         ^~~
      |         std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:20:13: error: 'avarage' was not declared in this scope; did you mean 'average'?
   20 |             avarage += rawdata[i];
      |             ^~~~~~~
      |             average
a.cc:27:9: error: 'avarage' was not declared in this scope; did you mean 'average'?
   27 |         avarage -= max;
      |         ^~~~~~~
      |         average
a.cc:31:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   31 |         cout<<average<<endl;
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:31:24: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   31 |         cout<<average<<endl;
      |                        ^~~~
      |                        std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include<iostream>
using namespace std;

int main(void) {
    int max,min,num,average,avsum;
    do{
        cin>>num;
        int rawdata[1000] = {0};
        if(num == 0){
            return 0;
        }
        else{
        max = 0,min = 1000,avsum = num,average = 0;
        }
        while(num > 0){
            num--;
            cin>>rawdata[num];
        }
        for(int i = 0; i < avsum;i++) {
            avarage += rawdata[i];
            if(max < rawdata[i]){
                max = rawdata[i];}
            if(min > rawdata[i]){
                min = rawdata[i];}
        }
        
        avarage -= max;
        avarage -= min;
        
        avarage /= (avsum - 2);
        cout<<average<<endl;
    }while(1);
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:13: error: 'avarage' was not declared in this scope; did you mean 'average'?
   20 |             avarage += rawdata[i];
      |             ^~~~~~~
      |             average
a.cc:27:9: error: 'avarage' was not declared in this scope; did you mean 'average'?
   27 |         avarage -= max;
      |         ^~~~~~~
      |         average
Language: C++

#include<iostream>
using namespace std;

int main(void) {
    int max,min,num,average,avsum;
    do{
        cin>>num;
        int rawdata[1000] = {0};
        if(num == 0){
            average=0;
            return 0;
        }
        else{
        max = 0,min = 1000,avsum = num,average = 0;
        }
        while(num > 0){
            num--;
            cin>>rawdata[num];
        }
        for(int i = 0; i < avsum;i++) {
            avarage += rawdata[i];
            if(max < rawdata[i]){
                max = rawdata[i];}
            if(min > rawdata[i]){
                min = rawdata[i];}
        }
        
        avarage -= max;
        avarage -= min;
        
        avarage /= (avsum - 2);
        cout<<average<<endl;
    }while(1);
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:13: error: 'avarage' was not declared in this scope; did you mean 'average'?
   21 |             avarage += rawdata[i];
      |             ^~~~~~~
      |             average
a.cc:28:9: error: 'avarage' was not declared in this scope; did you mean 'average'?
   28 |         avarage -= max;
      |         ^~~~~~~
      |         average
Language: C++

#include<iostream>
using namespace std;

int main() {
	int n, b, f, r, v;
	int count[5][4][11] = { 0 };

	cin >> n;

	for (int i = 0; i < n; i++) {
		cin >> b >> f >> r >> v;
		count[b][f][r] += v;
	}
int
	for (int i = 1; i <= 4; i++)
		for (int j = 1; j <= 3; j++) {
			for (int k = 1; k <= 10; k++) {
				cout << ' ' << count[i][j][k];
			}
			cout << "\n";
			if (j == 3 && i != 4)
				cout << "####################\n";
		}

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:9: error: expected unqualified-id before 'for'
   15 |         for (int i = 1; i <= 4; i++)
      |         ^~~
a.cc:15:25: error: 'i' was not declared in this scope
   15 |         for (int i = 1; i <= 4; i++)
      |                         ^
a.cc:16:33: error: 'j' was not declared in this scope
   16 |                 for (int j = 1; j <= 3; j++) {
      |                                 ^
Language: C++

#include <iostream>
using namespace std;

int main() {
  int FLOORS = 3;
  int ROOMS = 10;
  int NUM_B = 4;
  int first_b[FLOORS][ROOMS];
  int second_b[FLOORS][ROOMS];
  int third_b[FLOORS][ROOMS];
  int fourth_b[FLOORS][ROOMS];
  int all_b[NUM_B] = {first_b, second_b, third_b, fourth_b};

  int n, b, f, r, v;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> b >> f >> r >> v;
    if (b == 1 ) {
      first_b[f-1][r-1] += v;
    } else if (b == 2) {
      second_b[f-1][r-1] += v;
    } else if (b == 3) {
      third_b[f-1][r-1] += v;
    } else if (b == 4) {
      fourth_b[f-1][r-1] += v;
    }
  }

  for (int i = 0; i < NUM_B; i++) {
    for (int j = 0; j < FLOORS; j++) {
      for (int k = 0; k < ROOMS; k++) {
        cout << all_b[i][j][k];
      }
      cout << endl;
    }
    cout << "#" * 20 << endl;
  }

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:23: error: invalid conversion from 'int (*)[ROOMS]' to 'int' [-fpermissive]
   12 |   int all_b[NUM_B] = {first_b, second_b, third_b, fourth_b};
      |                       ^~~~~~~
      |                       |
      |                       int (*)[ROOMS]
a.cc:12:32: error: invalid conversion from 'int (*)[ROOMS]' to 'int' [-fpermissive]
   12 |   int all_b[NUM_B] = {first_b, second_b, third_b, fourth_b};
      |                                ^~~~~~~~
      |                                |
      |                                int (*)[ROOMS]
a.cc:12:42: error: invalid conversion from 'int (*)[ROOMS]' to 'int' [-fpermissive]
   12 |   int all_b[NUM_B] = {first_b, second_b, third_b, fourth_b};
      |                                          ^~~~~~~
      |                                          |
      |                                          int (*)[ROOMS]
a.cc:12:51: error: invalid conversion from 'int (*)[ROOMS]' to 'int' [-fpermissive]
   12 |   int all_b[NUM_B] = {first_b, second_b, third_b, fourth_b};
      |                                                   ^~~~~~~~
      |                                                   |
      |                                                   int (*)[ROOMS]
a.cc:32:25: error: invalid types 'int[int]' for array subscript
   32 |         cout << all_b[i][j][k];
      |                         ^
a.cc:36:17: error: invalid operands of types 'const char [2]' and 'int' to binary 'operator*'
   36 |     cout << "#" * 20 << endl;
      |             ~~~ ^ ~~
      |             |     |
      |             |     int
      |             const char [2]
Language: C++

#include <iostream>
using namespace std;

int main() {
  int FLOORS = 3;
  int ROOMS = 10;
  int NUM_B = 4;
  int first_b[FLOORS][ROOMS];
  int second_b[FLOORS][ROOMS];
  int third_b[FLOORS][ROOMS];
  int fourth_b[FLOORS][ROOMS];
  array all_b[NUM_B] = {first_b, second_b, third_b, fourth_b};

  int n, b, f, r, v;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> b >> f >> r >> v;
    if (b == 1 ) {
      first_b[f-1][r-1] += v;
    } else if (b == 2) {
      second_b[f-1][r-1] += v;
    } else if (b == 3) {
      third_b[f-1][r-1] += v;
    } else if (b == 4) {
      fourth_b[f-1][r-1] += v;
    }
  }

  for (int i = 0; i < NUM_B; i++) {
    for (int j = 0; j < FLOORS; j++) {
      for (int k = 0; k < ROOMS; k++) {
        cout << all_b[i][j][k];
      }
      cout << endl;
    }
    cout << "#" * 20 << endl;
  }

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:3: error: missing template argument list after 'std::array'; for deduction, template placeholder must be followed by a simple declarator-id
   12 |   array all_b[NUM_B] = {first_b, second_b, third_b, fourth_b};
      |   ^~~~~
      |        <>
In file included from /usr/include/c++/14/bits/stl_algobase.h:64,
                 from /usr/include/c++/14/string:51,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_pair.h:99:12: note: 'template<class _Tp, long unsigned int _Nm> struct std::array' declared here
   99 |     struct array;
      |            ^~~~~
a.cc:32:17: error: 'all_b' was not declared in this scope
   32 |         cout << all_b[i][j][k];
      |                 ^~~~~
a.cc:36:17: error: invalid operands of types 'const char [2]' and 'int' to binary 'operator*'
   36 |     cout << "#" * 20 << endl;
      |             ~~~ ^ ~~
      |             |     |
      |             |     int
      |             const char [2]
Language: C++

#include <iostream>
using namespace std;

int main() {
  int FLOORS = 3;
  int ROOMS = 10;
  int NUM_B = 4;
  int first_b[FLOORS][ROOMS] = {{}, {}, {}, {}};
  int second_b[FLOORS][ROOMS] = {{}, {}, {}, {}};
  int third_b[FLOORS][ROOMS] = {{}, {}, {}, {}};
  int fourth_b[FLOORS][ROOMS] = {{}, {}, {}, {}};
  int all_b[NUM_B] = {first_b, second_b, third_b, fourth_b};

  int n, b, f, r, v;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> b >> f >> r >> v;
    if (b == 1 ) {
      first_b[f-1][r-1] += v;
    } else if (b == 2) {
      second_b[f-1][r-1] += v;
    } else if (b == 3) {
      third_b[f-1][r-1] += v;
    } else if (b == 4) {
      fourth_b[f-1][r-1] += v;
    }
  }

  for (int i = 0; i < NUM_B; i++) {
    for (int j = 0; j < FLOORS; j++) {
      for (int k = 0; k < ROOMS; k++) {
        cout << all_b[i][j][k];
      }
      cout << endl;
    }
    cout << "#" * 20 << endl;
  }

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:23: error: invalid conversion from 'int (*)[ROOMS]' to 'int' [-fpermissive]
   12 |   int all_b[NUM_B] = {first_b, second_b, third_b, fourth_b};
      |                       ^~~~~~~
      |                       |
      |                       int (*)[ROOMS]
a.cc:12:32: error: invalid conversion from 'int (*)[ROOMS]' to 'int' [-fpermissive]
   12 |   int all_b[NUM_B] = {first_b, second_b, third_b, fourth_b};
      |                                ^~~~~~~~
      |                                |
      |                                int (*)[ROOMS]
a.cc:12:42: error: invalid conversion from 'int (*)[ROOMS]' to 'int' [-fpermissive]
   12 |   int all_b[NUM_B] = {first_b, second_b, third_b, fourth_b};
      |                                          ^~~~~~~
      |                                          |
      |                                          int (*)[ROOMS]
a.cc:12:51: error: invalid conversion from 'int (*)[ROOMS]' to 'int' [-fpermissive]
   12 |   int all_b[NUM_B] = {first_b, second_b, third_b, fourth_b};
      |                                                   ^~~~~~~~
      |                                                   |
      |                                                   int (*)[ROOMS]
a.cc:32:25: error: invalid types 'int[int]' for array subscript
   32 |         cout << all_b[i][j][k];
      |                         ^
a.cc:36:17: error: invalid operands of types 'const char [2]' and 'int' to binary 'operator*'
   36 |     cout << "#" * 20 << endl;
      |             ~~~ ^ ~~
      |             |     |
      |             |     int
      |             const char [2]
Language: C++

#include <iostream>
using namespace std;

int main() {
  int FLOORS = 3;
  int ROOMS = 10;
  int first_b[FLOORS][ROOMS];
  int second_b[FLOORS][ROOMS];
  int third_b[FLOORS][ROOMS];
  int fourth_b[FLOORS][ROOMS];

  int n, b, f, r, v;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> b >> f >> r >> v;
    if (b == 1 ) {
      first_b[f-1][r-1] += v;
    } else if (b == 2) {
      second_b[f-1][r-1] += v;
    } else if (b == 3) {
      third_b[f-1][r-1] += v;
    } else if (b == 4) {
      fourth_b[f-1][r-1] += v;
    }
  }


  for (int i = 0; i < FLOORS; i++) {
    for (int j = 0; j < ROOMS; j++) {
      cout << first_b[i][j];
    }
    cout << endl;
  }
  cout << "#" * 20 << endl;
  for (int i = 0; i < FLOORS; i++) {
    for (int j = 0; j < ROOMS; j++) {
      cout << second_b[i][j];
    }
    cout << endl;
  }
  cout << "#" * 20 << endl;
  for (int i = 0; i < FLOORS; i++) {
    for (int j = 0; j < ROOMS; j++) {
      cout << third_b[i][j];
    }
    cout << endl;
  }
  cout << "#" * 20 << endl;
  for (int i = 0; i < FLOORS; i++) {
    for (int j = 0; j < ROOMS; j++) {
      cout << fourth_b[i][j];
    }
    cout << endl;
  }

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:34:15: error: invalid operands of types 'const char [2]' and 'int' to binary 'operator*'
   34 |   cout << "#" * 20 << endl;
      |           ~~~ ^ ~~
      |           |     |
      |           |     int
      |           const char [2]
a.cc:41:15: error: invalid operands of types 'const char [2]' and 'int' to binary 'operator*'
   41 |   cout << "#" * 20 << endl;
      |           ~~~ ^ ~~
      |           |     |
      |           |     int
      |           const char [2]
a.cc:48:15: error: invalid operands of types 'const char [2]' and 'int' to binary 'operator*'
   48 |   cout << "#" * 20 << endl;
      |           ~~~ ^ ~~
      |           |     |
      |           |     int
      |           const char [2]
Language: C++

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


int main() {
	int n;
	int room[5][4][11] = { 0 };
	cin >> n;
	for (int i = 0; i < n; i++) {
		int b, f, r, v;
		cin >> b >> f >> r >> v;
		room[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 << ' ' << room[i][j][k];
			}
			cout << endl;
		}if(i!=3){
		cout << "####################" << endl;
	}
	
	return 0;
}

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

#include<stdio.h>
int main(){
int a[12][10],s,b,c,d,e;
scanf("%d",&s);
for(int x==0;x<12;x++){
for(int y=0;y<10;y++){
a[x][y]=0;
}
}
for(int i=0;i<s;i++){
scanf("%d %d %d %d",&b,&c,&d,&e);
a[b*3-c][d-1]+=e;
}
for(int x=0;x<3;x++){
for(int y=0;y<3;y++){
for(int z=0;z<10;z++){
printf("%d",a[x*3-y]);
}
printf("\n");
}
printf("####################\n");
}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:10: error: expected ';' before '==' token
    5 | for(int x==0;x<12;x++){
      |          ^~
      |          ;
a.cc:5:10: error: expected primary-expression before '==' token
    5 | for(int x==0;x<12;x++){
      |          ^~
a.cc:5:18: error: expected ')' before ';' token
    5 | for(int x==0;x<12;x++){
      |    ~             ^
      |                  )
a.cc:5:19: error: 'x' was not declared in this scope
    5 | for(int x==0;x<12;x++){
      |                   ^
Language: C++

#include<stdio.h>
int main(){
int a[16][10],s,b,c,d,e;
scanf_s("%d",&s);
for(int x=0;x<16;x++){
for(int y=0;y<10;y++){
a[x][y]=0;
}
}
for(int i=0;i<s;i++){
scanf_s("%d %d %d %d",&b,&c,&d,&e);
a[(b-1)*3+c-1][d-1]+=e;
}
for(int x=0;x<4;x++){
for(int y=0;y<3;y++){
for(int z=0;z<10;z++){
printf("%d ",a[x*3+y][z]);
}
printf("\n");
}
printf("####################\n");
}
scanf_s("%d", &d);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:1: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    4 | scanf_s("%d",&s);
      | ^~~~~~~
      | scanf
Language: C++

#include<stdio.h>
int main(){
int a[16][10],s,b,c,d,e;
scanf("%d",&s);
for(int x=0;x<16;x++){
for(int y=0;y<10;y++){
a[x][y]=0;
}
}
for(int i=0;i<s;i++){
scanf("%d %d %d %d",&b,&c,&d,&e);
a[(b-1)*3+c-1][d-1]+=e;
}
for(int x=0;x<4;x++){
for(int y=0;y<3;y++){
for(int z=0;z<10;z++){
printf("%d ",a[x*3+y][z]);
}
printf("\n");
}
printf("####################\n");
}
scanf_s("%d", &d);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:1: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
   23 | scanf_s("%d", &d);
      | ^~~~~~~
      | scanf
Language: C++

#include<stdio.h>
int main(){
int a[16][10],s,b,c,d,e;
scanf("%d",&s);
for(int x=0;x<16;x++){
for(int y=0;y<10;y++){
a[x][y]=0;
}
}
for(int i=0;i<s;i++){
scanf("%d %d %d %d",&b,&c,&d,&e);
a[(b-1)*3+c-1][d-1]+=e;
}
for(int x=0;x<4;x++){
for(int y=0;y<3;y++){
for(int z=0;z<10;z++){
printf(" %d",a[x*3+y][z]);
}
printf(" ");
if(x<3||y<2)printf("\n");
}
if(x<3)printf("#################### ");
orintf("\n");
}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:1: error: 'orintf' was not declared in this scope; did you mean 'printf'?
   23 | orintf("\n");
      | ^~~~~~
      | printf
Language: C++

#include<stdio.h>
int main() {
	int a[16][10], s, b, c, d, e;
	scanf("%d", &s);
	for (int x = 0; x<16; x++) {
		for (int y = 0; y<10; y++) {
			a[x][y] = 0;
		}
	}
	for (int i = 0; i<s; i++) {
		scanf("%d %d %d %d", &b, &c, &d, &e);
		a[(b - 1) * 3 + c - 1][d - 1] += e;
	}
	for (int x = 0; x<4; x++) {
		for (int y = 0; y<3; y++) {
			for (int z = 0; z<10; z++) {
				printf(" %d", a[x * 3 + y][z]);
			}
			printf("\n");
		}
		if (x<3)printf("####################\n");
	}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: expected ',' or ';' before 'int'
   10 |         int i,j,k;
      |         ^~~
a.cc:12:14: error: 'i' was not declared in this scope
   12 |         for( i = 0; i < 4; i++){
      |              ^
a.cc:17:14: error: 'i' was not declared in this scope
   17 |         for( i = 0; i < 4; i++){
      |              ^
a.cc:18:22: error: 'j' was not declared in this scope
   18 |                 for( j = 0; j < 3; j++){
      |                      ^
a.cc:19:30: error: 'k' was not declared in this scope
   19 |                         for( k = 0; k < 10; k++){
      |                              ^
Language: C++

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

Compiler output:
a.cc:36:5: error: expected unqualified-id before 'for'
   36 |     for(int i=B-1;i<B;i++){
      |     ^~~
a.cc:36:19: error: 'i' does not name a type
   36 |     for(int i=B-1;i<B;i++){
      |                   ^
a.cc:36:23: error: 'i' does not name a type
   36 |     for(int i=B-1;i<B;i++){
      |                       ^
a.cc:45:5: error: expected unqualified-id before 'return'
   45 |     return 0;
      |     ^~~~~~
a.cc:46:1: error: expected declaration before '}' token
   46 | }
      | ^
Language: C++

#include<iostream>
using namespace std;
int main()
{
	int count[4][3][10];
	for (int i = 0; i < 4; i++)
	{
		for (int j = 0; j < 3; j++)
		{
			for (int k = 0; k < 10; k++)
			{
				count[i][j][k] = 0;
			}
		}
	}
	int n, b, f, r, v;
	cin >> n;
	for (int i = 0; i < n; i++)
	{
		cin >> b >> f >> r >> v;
		count[b - 1][f - 1][r - 1] = count[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++)
			{
				if (k == 9)cout <<" "<< count[i][j][k] << endl;
				else cout <<" "<< count[i][j][k] ;
				if (k == 9 && j == 2)
				{
					if (i < 3)cout << "####################" << endl;
				}
			}
		}
	}
	


	return 0;

Compiler output:
a.cc: In function 'int main()':
a.cc:41:18: error: expected '}' at end of input
   41 |         return 0;
      |                  ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C++

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:36: error: expected initializer before '+=' token
   12 |                 int count[b][f][r] += v;
      |                                    ^~
Language: C++

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:14:36: error: expected initializer before '+=' token
   14 |                 int count[b][f][r] += v;
      |                                    ^~
Language: C++

#include<iostream>
using namespace std;

int main(){
	int n;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:14:36: error: expected initializer before '+=' token
   14 |                 int count[b][f][r] += v;
      |                                    ^~
Language: C++

#include <iostream>

using namespace std;

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

    for (int i = 0; i < 4; i++) {
         for (int j = 0; j < 3; j++) {
	      for (int k = 0; k < 10; k++) {
		   count[i][j][k] = 0;
              }
	 }
    }
    
    cin >> n;

    for (int i = 0; i < n; i++) {
         do {
             cin >> b >> f >> r >> v;
         } while ((b < 1 || b > 4) || (f < 1 || f > 3) || (r < 1 || r > 10) ||
                  (count[b - 1][f - 1][r - 1] + v > 9));
 
	 count[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 < 9; k++) {
	           cout << count[i][j][k] << " ";
              }

              cout << count[i][j][k] endl;                       
	 }   

         cout << "###################" endl;         
    }
    
    return (0);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:36:35: error: 'k' was not declared in this scope
   36 |               cout << count[i][j][k] endl;
      |                                   ^
a.cc:39:39: error: expected ';' before 'endl'
   39 |          cout << "###################" endl;
      |                                       ^~~~~
      |                                       ;
Language: C++


#include<iostream>
using namespace std;

int main(){
	int n,b,f,r,v;
	int i,j,k;
	int count[4][3][10]={0};
	
	cin>>n;
	
	for(i=0;i<n;i++){
		cin>>b>>f>>r>>v;
		count[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++){
					cout<<" "<<count[i][j][k];
				}
				cout<<endl;
			}
			if(i<3){
				cout<<"####################"<<endl;
			}
		}
	}
	
	return 0;
}

Compiler output:
a.cc:30:9: error: expected unqualified-id before 'return'
   30 |         return 0;
      |         ^~~~~~
a.cc:31:1: error: expected declaration before '}' token
   31 | }
      | ^
Language: C++

#include<iostream>
using namespace std;

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

Compiler output:
a.cc:12:6: error: expected unqualified-id before 'for'
   12 |      for(int i=0,i<4;i++){
      |      ^~~
a.cc:12:22: error: 'i' does not name a type
   12 |      for(int i=0,i<4;i++){
      |                      ^
a.cc:19:1: error: expected declaration before '}' token
   19 | }
      | ^
Language: C++

#include<iostream>
using namespace std;

int main(){
     int house[4][3][10];
     int n,b,f,j,v;
     cin>>n;
     for(int i=0;i<n;i++)
         cin>>b>>f>>j>>v;
         house[b-1][f-1][j-1]+=v;
     }
     for(int i=0,i<4;i++){
          for(int i=0,i<3;i++){ 
              for(int i=0,i<10;i++){
                  cout<<house[i][j][k];
              }
              cout<<endl;
           }
           for(int k=0;k<20;k++) cout<<"#";
           cout<<endl;
      } 
}

Compiler output:
a.cc:12:6: error: expected unqualified-id before 'for'
   12 |      for(int i=0,i<4;i++){
      |      ^~~
a.cc:12:22: error: 'i' does not name a type
   12 |      for(int i=0,i<4;i++){
      |                      ^
a.cc:22:1: error: expected declaration before '}' token
   22 | }
      | ^
Language: C++

#include<iostream>
using namespace std;

int main(){
     int house[4][3][10];
     int n,b,f,j,v;
     cin>>n;
     for(int i=0;i<n;i++)
         cin>>b>>f>>j>>v;
         house[b-1][f-1][j-1]+=v;
     }
     for(int i=0;i<4;i++){
          for(int i=0;i<3;i++){ 
              for(int i=0;i<10;i++){
                  cout<<house[i][j][k];
              }
              cout<<endl;
           }
           for(int k=0;k<20;k++) cout<<"#";
           cout<<endl;
      } 
}

Compiler output:
a.cc:12:6: error: expected unqualified-id before 'for'
   12 |      for(int i=0;i<4;i++){
      |      ^~~
a.cc:12:18: error: 'i' does not name a type
   12 |      for(int i=0;i<4;i++){
      |                  ^
a.cc:12:22: error: 'i' does not name a type
   12 |      for(int i=0;i<4;i++){
      |                      ^
a.cc:22:1: error: expected declaration before '}' token
   22 | }
      | ^
Language: C++

#include<iostream>
using namespace std;

int main(){
     int house[4][3][10];
     int n,b,f,j,v;
     cin>>n;
     for(int i=0;i<n;i++)
         cin>>b>>f>>j>>v;
         house[b-1][f-1][j-1]+=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;
           }
           for(int k=0;k<20;k++) cout<<"#";
           cout<<endl;
      } 
}

Compiler output:
a.cc:12:6: error: expected unqualified-id before 'for'
   12 |      for(int i=0;i<4;i++){
      |      ^~~
a.cc:12:18: error: 'i' does not name a type
   12 |      for(int i=0;i<4;i++){
      |                  ^
a.cc:12:22: error: 'i' does not name a type
   12 |      for(int i=0;i<4;i++){
      |                      ^
a.cc:22:1: error: expected declaration before '}' token
   22 | }
      | ^
Language: C++

#include<cstdio>
#include<iostream>
using namespace std;
int main(){
  unsigned int data[4 * 3 * 10] = {0};

  int n;
  cin >> n;
  for(int i = 0 ; i < n ; i++){
    int b, f, r, v;
    cin >> b >> f >> r >> v;

    b--;
    f--;
    r--;

    data[(b*30)+(f*10)+r] += v;
  }

  for (int i = 0; i < 4 * 3 * 10; i++) {
    if (i != 0 && i % 10 == 0) printf("\n");
    if (i != 0 && i % (10 * 3) == 0) printf("####################\n");
    cout << data[i] << " ";
  }

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

#include <iostream>
#include <vector>
#include <stdio.h>
using namespace std;
#define PI 3.141592653589

int main(){
    int n, a, b, c, d;
    int num[4][3][10]={0};
	cin >> n;
	for(int i = 0;i < n;i++){
		cin >> a >> b >> c >> d;
		num[a-1][b-1][c-1] = d;
	}
	for(int i = 0;i < 4;i++){
		for(int j = 0;j < 3;j++){
			for(int k = 0;k < 10;k++){
				cout << " " << num[i][j][k];
			}
			cout << endl;
		}
		if(j != 2)cout << "####################" << endl;
	}

    cin>>n;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:20: error: 'j' was not declared in this scope
   22 |                 if(j != 2)cout << "####################" << endl;
      |                    ^
Language: C++

//---- Official House
int main(void){
    int n, b, f, r, v, Bdgs[4][3][10]={0};
    cin >> n;
    for(int i=0; i<n; i++){
        cin >> b >> f >> r >> v;
        Bdgs[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 << " " << Bdgs[i][j][k];
            }
            cout << endl;
        }
        if(i<3){cout << "####################" << endl;}
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:5: error: 'cin' was not declared in this scope
    4 |     cin >> n;
      |     ^~~
a.cc:12:17: error: 'cout' was not declared in this scope
   12 |                 cout << " " << Bdgs[i][j][k];
      |                 ^~~~
a.cc:14:13: error: 'cout' was not declared in this scope
   14 |             cout << endl;
      |             ^~~~
a.cc:14:21: error: 'endl' was not declared in this scope
   14 |             cout << endl;
      |                     ^~~~
a.cc:16:17: error: 'cout' was not declared in this scope
   16 |         if(i<3){cout << "####################" << endl;}
      |                 ^~~~
a.cc:16:51: error: 'endl' was not declared in this scope
   16 |         if(i<3){cout << "####################" << endl;}
      |                                                   ^~~~
Language: C++

int main() {
	int n[5][4][11] = { {{0}} };
	int a = 0,b = 0, f = 0, r = 0, v = 0;

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

	for (b = 1; b <= 4;b++) {
		for (f = 1;f <= 3;f++) {
			for (r = 1;r <= 10;r++) {
				cout << " " << n[b][f][r];
			}
			cout << endl;
		}
		if(b != 4)
			cout << "####################" << endl;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'cin' was not declared in this scope
    5 |         cin >> a;
      |         ^~~
a.cc:14:33: error: 'cout' was not declared in this scope
   14 |                                 cout << " " << n[b][f][r];
      |                                 ^~~~
a.cc:16:25: error: 'cout' was not declared in this scope
   16 |                         cout << endl;
      |                         ^~~~
a.cc:16:33: error: 'endl' was not declared in this scope
   16 |                         cout << endl;
      |                                 ^~~~
a.cc:19:25: error: 'cout' was not declared in this scope
   19 |                         cout << "####################" << endl;
      |                         ^~~~
a.cc:19:59: error: 'endl' was not declared in this scope
   19 |                         cout << "####################" << endl;
      |                                                           ^~~~
Language: C++

#include<iostream>;
using namespace std;

int main() {
        int rooms[4][3][10], b, f, r, v, x, y, z, n;
        for (x = 0; x < 4) {
                for (y = 0; y < 3) {
                        for (z = 0; z < 10) {
                                rooms[x][y][z] = 0;
                        }
                }
        }
        cin >> n;
        for (int i = 0; i < n;; i++) {
                cin >> b >> f >> r >> v;
                rooms[b - 1][f - 1][r - 1] = v;
        }
        for ( x = 0; x < 4) {
                for ( y = 0; y < 3) {
                        for ( z = 0; z < 10) {
                                cout << cards[x][y][z] << " ";
                        }
                        cout << endl;
                }
                cout << "##########" << endl;
        }
        return 0;
}

Compiler output:
a.cc:1:19: warning: extra tokens at end of #include directive
    1 | #include<iostream>;
      |                   ^
a.cc: In function 'int main()':
a.cc:6:26: error: expected ';' before ')' token
    6 |         for (x = 0; x < 4) {
      |                          ^
      |                          ;
a.cc:7:34: error: expected ';' before ')' token
    7 |                 for (y = 0; y < 3) {
      |                                  ^
      |                                  ;
a.cc:8:43: error: expected ';' before ')' token
    8 |                         for (z = 0; z < 10) {
      |                                           ^
      |                                           ;
a.cc:14:31: error: expected primary-expression before ';' token
   14 |         for (int i = 0; i < n;; i++) {
      |                               ^
a.cc:14:31: error: expected ')' before ';' token
   14 |         for (int i = 0; i < n;; i++) {
      |             ~                 ^
      |                               )
a.cc:14:33: error: 'i' was not declared in this scope
   14 |         for (int i = 0; i < n;; i++) {
      |                                 ^
a.cc:18:27: error: expected ';' before ')' token
   18 |         for ( x = 0; x < 4) {
      |                           ^
      |                           ;
a.cc:19:35: error: expected ';' before ')' token
   19 |                 for ( y = 0; y < 3) {
      |                                   ^
      |                                   ;
a.cc:20:44: error: expected ';' before ')' token
   20 |                         for ( z = 0; z < 10) {
      |                                            ^
      |                                            ;
a.cc:21:41: error: 'cards' was not declared in this scope
   21 |                                 cout << cards[x][y][z] << " ";
      |                                         ^~~~~
Language: C++

#include<iostream>;
using namespace std;

int main() {
        int rooms[4][3][10], b, f, r, v, x, y, z, n;
        for (x = 0; x < 4; x++) {
                for (y = 0; y < 3; y++) {
                        for (z = 0; z < 10; z++) {
                                rooms[x][y][z] = 0;
                        }
                }
        }
        cin >> n;
        for (int i = 0; i < n; i++) {
                cin >> b >> f >> r >> v;
                rooms[b - 1][f - 1][r - 1] = v;
        }
        for ( x = 0; x < 4; x++) {
                for ( y = 0; y < 3; y++) {
                        for ( z = 0; z < 10, z++) {
                                cout << rooms[x][y][z] << " ";
                        }
                        cout << endl;
                }
                cout << "##########" << endl;
        }
        return 0;
}}

Compiler output:
a.cc:1:19: warning: extra tokens at end of #include directive
    1 | #include<iostream>;
      |                   ^
a.cc: In function 'int main()':
a.cc:20:49: error: expected ';' before ')' token
   20 |                         for ( z = 0; z < 10, z++) {
      |                                                 ^
      |                                                 ;
a.cc: At global scope:
a.cc:28:2: error: expected declaration before '}' token
   28 | }}
      |  ^
Language: C++

#include<iostream>
#include<vector>
#include<algorithm>
#include<map>
#include<string>
using namespace std;


int main(void) {

  int n;
  cin >> n;

  vector< vector< vector<int> > > a(4, vector< vector<int> >(3, vector<int>(10, 0)));

  for(int i=0; i<n; i++){
    int b, f, r, v;
    cin >> b >> f >> r >> v;
    a[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 << " " << a[i][j][k];
      }
      cout << endl;
    }
    if(k != 3) cout << "####################" << endl;
  }


  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:29:8: error: 'k' was not declared in this scope
   29 |     if(k != 3) cout << "####################" << endl;
      |        ^
Language: C++

#!usr/bin/env python3

import sys


def generate_buidlings_with_residents(building, floor, room):
    buildings = {
        key: [[0 for col in range(room)] for row in range(floor)]
        for key in range(1, building+1)
    }

    n = int(sys.stdin.readline())
    for i in range(n):
        lst = [int(num) for num in sys.stdin.readline().split()]
        buildings[lst[0]][lst[1]-1][lst[2]-1] += lst[3]

    return buildings


def print_buildings():
    separator = '####################'
    buildings_with_residents = generate_buidlings_with_residents(4, 3, 10)

    for idx, (key, value) in enumerate(buildings_with_residents.items()):
        for floor in value:
            print(' %s %s %s %s %s %s %s %s %s %s' % tuple(floor))
        if key < len(buildings_with_residents):
            print(separator)


def main():
    print_buildings()


if __name__ == '__main__':
    main()

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #!
    1 | #!usr/bin/env python3
      |  ^
a.cc:21:17: warning: multi-character literal with 20 characters exceeds 'int' size of 4 bytes
   21 |     separator = '####################'
      |                 ^~~~~~~~~~~~~~~~~~~~~~
a.cc:26:19: warning: multi-character literal with 30 characters exceeds 'int' size of 4 bytes
   26 |             print(' %s %s %s %s %s %s %s %s %s %s' % tuple(floor))
      |                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:35:16: warning: multi-character literal with 8 characters exceeds 'int' size of 4 bytes
   35 | if __name__ == '__main__':
      |                ^~~~~~~~~~
a.cc:3:1: error: 'import' does not name a type
    3 | import sys
      | ^~~~~~
a.cc:3:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:12:5: error: 'n' does not name a type
   12 |     n = int(sys.stdin.readline())
      |     ^
Language: C++

#!usr/bin/env python3

import sys


def generate_buidlings_with_residents(building, floor, room):
    buildings = {
            key: [[0 for col in range(room)] for row in range(floor)]
            for key in range(1, building+1)
    }

    n = int(sys.stdin.readline())
    for i in range(n):
        lst = [int(num) for num in sys.stdin.readline().split()]
        buildings[lst[0]][lst[1]-1][lst[2]-1] += lst[3]

    return buildings


def print_buildings():
    separator = '####################'
    buildings_with_residents = generate_buidlings_with_residents(4, 3, 10)

    for idx, (key, value) in enumerate(buildings_with_residents.items()):
        for floor in value:
            print(' %s %s %s %s %s %s %s %s %s %s' % tuple(floor))
        if key < len(buildings_with_residents):
            print(separator)


def main():
    print_buildings()

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #!
    1 | #!usr/bin/env python3
      |  ^
a.cc:21:17: warning: multi-character literal with 20 characters exceeds 'int' size of 4 bytes
   21 |     separator = '####################'
      |                 ^~~~~~~~~~~~~~~~~~~~~~
a.cc:26:19: warning: multi-character literal with 30 characters exceeds 'int' size of 4 bytes
   26 |             print(' %s %s %s %s %s %s %s %s %s %s' % tuple(floor))
      |                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:3:1: error: 'import' does not name a type
    3 | import sys
      | ^~~~~~
a.cc:3:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:12:5: error: 'n' does not name a type
   12 |     n = int(sys.stdin.readline())
      |     ^
Language: C++

#include<iostream>
using namespace std;

int main(){
 int n,b,f,r,v;
 int count[5][4][11]={};
 cin >> n;
 for(int l=1;l<=n;++l){
  cin >> b >> f >> r >> v;
  count[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 << " " << count[i][j][k]\n;
   }
  }
  if(i!=4) cout << "####################" << endl;
 }
 return 0;
}

Compiler output:
a.cc:16:34: error: stray '\' in program
   16 |     cout << " " << count[i][j][k]\n;
      |                                  ^
a.cc: In function 'int main()':
a.cc:16:34: error: expected ';' before 'n'
   16 |     cout << " " << count[i][j][k]\n;
      |                                  ^~
      |                                  ;
Language: C++

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

int main(){
  int n, b, f, r, v, room[4][3][10] = {};
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> b >> f >> r >> v;
    room[bld - 1][flr - 1][rm - 1] += ppl;
    room[bld - 1][flr - 1][rm - 1] = max(room[bld - 1][flr - 1][rm - 1], 0);
    room[bld - 1][flr - 1][rm - 1] = min(room[bld - 1][flr - 1][rm - 1], 9);
  }
  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;
    }
    if (i != 3) {
      cout << "####################" << endl;
    }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:10: error: 'bld' was not declared in this scope
   12 |     room[bld - 1][flr - 1][rm - 1] += ppl;
      |          ^~~
a.cc:12:19: error: 'flr' was not declared in this scope
   12 |     room[bld - 1][flr - 1][rm - 1] += ppl;
      |                   ^~~
a.cc:12:28: error: 'rm' was not declared in this scope; did you mean 'r'?
   12 |     room[bld - 1][flr - 1][rm - 1] += ppl;
      |                            ^~
      |                            r
a.cc:12:39: error: 'ppl' was not declared in this scope
   12 |     room[bld - 1][flr - 1][rm - 1] += ppl;
      |                                       ^~~
Language: C++

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

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:10:3: error: 'cin' was not declared in this scope
   10 |   cin >> n;
      |   ^~~
a.cc:20:7: error: 'cout' was not declared in this scope
   20 |       cout << "#";
      |       ^~~~
a.cc:22:5: error: 'cout' was not declared in this scope
   22 |     cout << endl;
      |     ^~~~
a.cc:22:13: error: 'endl' was not declared in this scope
   22 |     cout << endl;
      |             ^~~~