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

#include <stdio.h>
int main(void)


  int i,j,p,n,b,f,r,v;
  int a[4][3][10]={};
  
  scanf("%d",&n);
    for(i=0;i<n;i++){
      scanf("%d %d %d %d",&b,&f,&r,&v);
      a[b-1][f-1][r-1]=a[b-1][f-1][r-1]+v;
    }
    for(i=0;i<4;i++){
      for(j=0;j<3;j++){
    for(p=0;p<10;p++){
      printf(" %d",a[i][j][p]);
    }
    printf("%c",'\n');
      }
    if(i!=3)
      printf("####################\n");
       
    }
    return 0;
}   




Compiler output:
main.c: In function 'main':
main.c:6:3: error: parameter 'a' is initialized
    6 |   int a[4][3][10]={};
      |   ^~~
main.c:8:3: error: expected declaration specifiers before 'scanf'
    8 |   scanf("%d",&n);
      |   ^~~~~
main.c:9:5: error: expected declaration specifiers before 'for'
    9 |     for(i=0;i<n;i++){
      |     ^~~
main.c:9:13: error: expected declaration specifiers before 'i'
    9 |     for(i=0;i<n;i++){
      |             ^
main.c:9:17: error: expected declaration specifiers before 'i'
    9 |     for(i=0;i<n;i++){
      |                 ^
main.c:13:5: error: expected declaration specifiers before 'for'
   13 |     for(i=0;i<4;i++){
      |     ^~~
main.c:13:13: error: expected declaration specifiers before 'i'
   13 |     for(i=0;i<4;i++){
      |             ^
main.c:13:17: error: expected declaration specifiers before 'i'
   13 |     for(i=0;i<4;i++){
      |                 ^
main.c:24:5: error: expected declaration specifiers before 'return'
   24 |     return 0;
      |     ^~~~~~
main.c:25:1: error: expected declaration specifiers before '}' token
   25 | }
      | ^
main.c:2:5: error: old-style parameter declarations in prototyped function definition
    2 | int main(void)
      |     ^~~~
main.c:28: error: expected '{' at end of input
Language: C


#include<stdio.h>
int main(){
    int count[4][3][10]={{{0}}};
    int i,j,k,n;
    int b,f,r,v;
    scanf("%d",&n);
    for(i=0;i<n;i++){
        scanf("%d %d %d %d\n",&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++){
                printf(" %d",count[i][j][k]);
            }
        printf("\n");
        }
    if(i!=3)printf("####################\n");
    }

return 0;
}



Compile Error Logs: 

 

ステータス 
Judge: 5/5 C CPU: 00:00 sec Memory: 2040 KB Length: 456 B 2018-07-03 10:12 
テストケースの判定結果 
Case # Verdict CPU Time Memory In Out Case Name 

Case #1 : Accepted 00:00 2040 26 315 testcase_00 
Case #2 : Accepted 00:00 2032 92 315 testcase_01 
Case #3 : Accepted 00:00 2036 53 315 testcase_02 
Case #4 : Accepted 00:00 2040 976 315 testcase_03 
Case #5 : Accepted 00:00 1980 2068 315 testcase_04 



 < prev |  /   | next >      

 

Judge Input #  (  | )  Judge Output #  (  | ) 


  

 





Compiler output:
main.c:27:1: error: unknown type name 'Compile'
   27 | Compile Error Logs:
      | ^~~~~~~
main.c:27:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Logs'
   27 | Compile Error Logs:
      |               ^~~~
main.c:34:6: error: stray '#' in program
   34 | Case # Verdict CPU Time Memory In Out Case Name
      |      ^
main.c:36:6: error: stray '#' in program
   36 | Case #1 : Accepted 00:00 2040 26 315 testcase_00
      |      ^
main.c:37:6: error: stray '#' in program
   37 | Case #2 : Accepted 00:00 2032 92 315 testcase_01
      |      ^
main.c:38:6: error: stray '#' in program
   38 | Case #3 : Accepted 00:00 2036 53 315 testcase_02
      |      ^
main.c:39:6: error: stray '#' in program
   39 | Case #4 : Accepted 00:00 2040 976 315 testcase_03
      |      ^
main.c:40:6: error: stray '#' in program
   40 | Case #5 : Accepted 00:00 1980 2068 315 testcase_04
      |      ^
main.c:48:13: error: stray '#' in program
   48 | Judge Input #  (  | )  Judge Output #  (  | )
      |             ^
main.c:48:37: error: stray '#' in program
   48 | Judge Input #  (  | )  Judge Output #  (  | )
      |                                     ^
Language: C

buildings = Array.new(4).map { Array.new(3).map { Array.new(10,0) } }

n = gets.chomp.to_i
n.times do
  line = gets.chomp.split
  b = line[0].to_i
  f = line[1].to_i
  r = line[2].to_i
  v = line[3].to_i

  buildings[b-1][f-1][r-1] += v
end

buildings.each_with_index do |floors, index|
  floors.each do |rooms|
    puts ' ' + rooms.join(' ')
  end

  puts '####################' if index < buildings.length-1
end

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | buildings = Array.new(4).map { Array.new(3).map { Array.new(10,0) } }
      | ^~~~~~~~~
main.c:1:1: error: type defaults to 'int' in declaration of 'buildings' [-Wimplicit-int]
main.c:1:13: error: 'Array' undeclared here (not in a function)
    1 | buildings = Array.new(4).map { Array.new(3).map { Array.new(10,0) } }
      |             ^~~~~
main.c:1:30: error: expected ',' or ';' before '{' token
    1 | buildings = Array.new(4).map { Array.new(3).map { Array.new(10,0) } }
      |                              ^
main.c:3:1: warning: data definition has no type or storage class
    3 | n = gets.chomp.to_i
      | ^
main.c:3:1: error: type defaults to 'int' in declaration of 'n' [-Wimplicit-int]
main.c:3:5: error: 'gets' undeclared here (not in a function)
    3 | n = gets.chomp.to_i
      |     ^~~~
main.c:4:1: error: expected ',' or ';' before 'n'
    4 | n.times do
      | ^
main.c:19:8: warning: multi-character literal with 20 characters exceeds 'int' size of 4 bytes
   19 |   puts '####################' if index < buildings.length-1
      |        ^~~~~~~~~~~~~~~~~~~~~~
Language: C

3
1 1 3 8
3 2 2 7
4 3 8 1#include "stdio.h"

int cnt;
int b,f,r,v;
int i,j,k;
int num[4][3][10]={};//こんなので全部0に初期化できたのか！
int main(void){
	scanf(" %d",&cnt);
	for(i=0;i<cnt;i++){
		scanf("%d %d %d %d",&b,&f,&r,&v);
		num[b-1][f-1][r-1]+=v;
	}
	for(i=0;i<4;i++){
		for(j=0;j<3;j++){
			for(k=0;k<9;k++){
				printf("%d ",num[i][j][k]);
			}
			printf("%d",num[i][j][9]);
			printf("\n");
		}
		printf("####################\n");
	}
	
	
	return 0;
	
}

Compiler output:
main.c:1:1: error: expected identifier or '(' before numeric constant
    1 | 3
      | ^
main.c:4:8: error: stray '#' in program
    4 | 4 3 8 1#include "stdio.h"
      |        ^
main.c: In function 'main':
main.c:11:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
   11 |         scanf(" %d",&cnt);
      |         ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | 3
main.c:11:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
   11 |         scanf(" %d",&cnt);
      |         ^~~~~
main.c:11:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:11:22: error: 'cnt' undeclared (first use in this function); did you mean 'int'?
   11 |         scanf(" %d",&cnt);
      |                      ^~~
      |                      int
main.c:11:22: note: each undeclared identifier is reported only once for each function it appears in
main.c:19:33: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   19 |                                 printf("%d ",num[i][j][k]);
      |                                 ^~~~~~
main.c:19:33: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:19:33: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:19:33: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:21:25: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   21 |                         printf("%d",num[i][j][9]);
      |                         ^~~~~~
main.c:21:25: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:24:17: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   24 |                 printf("####################\n");
      |                 ^~~~~~
main.c:24:17: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

#include<stdio.h>

int main(){
	int room[4][3][10];
	int b,f,r,v;
	int N;
	for(b=0;b<4;b++)
		for(f=0;f<3;f++)
			for(r=0;r<10;r++)
				room[b][f][r]=0;
	scanf("%d",&N);
	for(;N>0;N--){
		scanf("%d %d %d %d",&b,&f,&r,&v);
		room[b-1][f-1][r-1]+=v;
	}
	for(b=0;b<4;b++){
		for(f=0;f<3;f++){
			for(r=0;r<10;r++){
				printf("%d",room[b][f][r]);
				if(r<9)
					printf(" ");
			}
			printf("\n");
		}
		if(b<3)
			printf("#####""#####""#####""#####""\n");
	}
	printf("\n")
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:28:21: error: expected ';' before 'return'
   28 |         printf("\n")
      |                     ^
      |                     ;
   29 |         return 0;
      |         ~~~~~~
Language: C

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:13:46: error: 'j' undeclared (first use in this function)
   13 |                                 if(i == 3 && j == 3) break;
      |                                              ^
main.c:13:46: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

  }
  for(int m=0;m<4;m++){
    for(int p=0;p<3;p++){
      for(int o=0;o<10;o++){
	cout <<" " << count[m][p][o];
	  
	  }
      cout << endl ;
    }
    if(m!=3)cout  << "####################" << endl ;

  }

}

Compiler output:
main.c:1:9: fatal error: iostream: No such file or directory
    1 | #include<iostream>
      |         ^~~~~~~~~~
compilation terminated.
Language: C

#include <stdio.h>
int main(){
	int a=0, b=0, c=0, d=0, e=0, f=0, aaa[4][3][10], ai=0, ue=0, oka=0, aka, ao, ki, midori;
	scanf("%d", &a);
	scanf("%d %d %d %d", &c, &d, &e, &f);
	aaa[c][d][e] = f;
	aka = f
	for(b=1;b<a;b++){
		scanf("%d %d %d %d", &c, &d, &e, &f);
		aaa[c][d][e] = f;
	}
	for(ai=1;ai<=4;ai++){
		for(ue=1;ue<=3;ue++){
			for(oka=1;oka<=10;oka++){
				if(aaa[ai][ue][oka]>=0 && aaa[ai][ue][oka] <=100){
					printf(" %d", aaa[ai][ue][oka]);
				}else{printf(" 0");}

			}printf("\n");

		}printf("####################\n");
	}

	scanf("%d",&a);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:16: error: expected ';' before 'for'
    7 |         aka = f
      |                ^
      |                ;
    8 |         for(b=1;b<a;b++){
      |         ~~~
Language: C

#include<stdio.h>
main(){
  int n,b,f,r,v=0;
  int a,c,d,e=0;
  int g,h,i=0;
  int A[4][3][10]={0};
  scanf("%d",&n);
  for(c=0;c<n;c++){
    scanf("%d %d %d %d",&b,&f,&r,&v);
    a=b-1;
    d=f-1;
    e=r-1;
    A[a][d][e]=v;
    if(A[a][d][e]<0){
      A[a][d][e]=0;
    }
  }
  for(g=0;g<=3;g++){
    for(h=0;h<=2;h++){
      for(i=0;i<10;i++){
	if(i==9&&h==2&&g==3){
	  printf("%d",A[g][h][i]);
	}
	else if(i==9){
	  printf("%d\n",A[g][h][i]);
	}
	else{
	  printf("%d ",A[g][h][i]);
	}
      }
    }
    if(g!=3){
      printf("####################\n");
    }
  }
  return 0;

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main(){
      | ^~~~
main.c: In function 'main':
main.c:36:3: error: expected declaration or statement at end of input
   36 |   return 0;
      |   ^~~~~~
Language: C

#include<stdio.h>
main(){
  int n,b,f,r,v=0;
  int a,c,d,e=0;
  int g,h,i=0;
  int A[4][3][10]={0};
  scanf("%d",&n);
  for(c=0;c<n;c++){
    scanf("%d %d %d %d",&b,&f,&r,&v);
    a=b-1;
    d=f-1;
    e=r-1;
    A[a][d][e]=v;
    if(A[a][d][e]<0){
      A[a][d][e]=0;
    }
  }
  for(g=0;g<=3;g++){
    for(h=0;h<=2;h++){
      for(i=0;i<10;i++){
	if(i==9){
	  printf("%d\n",A[g][h][i]);
	}
	else{
	  printf("%d ",A[g][h][i]);
	}
      }
    }
    if(g!=3){
      printf("####################\n");
    }
  }
  return 0;

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main(){
      | ^~~~
main.c: In function 'main':
main.c:33:3: error: expected declaration or statement at end of input
   33 |   return 0;
      |   ^~~~~~
Language: C

#include<stdio.h>
main(){
  int n,b,f,r,v=0;
  int a,c,d,e=0;
  int g,h,i=0;
  int A[4][3][10]={0};
  scanf("%d",&n);
  for(c=0;c<n;c++){
    scanf("%d %d %d %d",&b,&f,&r,&v);
    a=b-1;
    d=f-1;
    e=r-1;
    A[a][d][e]=v;
    if(A[a][d][e]<0){
      A[a][d][e]=0;
    }
  }
  for(g=0;g<=3;g++){
    for(h=0;h<=2;h++){
      for(i=0;i<10;i++){
	if(i==9&&h==2&&g==3){
	  printf("%d"A[g][h][i]);
	}
	  else if(i==9){
	  printf("%d\n",A[g][h][i]);
	}
	else{
	  printf("%d ",A[g][h][i]);
	}
      }
    }
    if(g!=3){
      printf("####################\n");
    }
  }
  return 0;
}

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main(){
      | ^~~~
main.c: In function 'main':
main.c:22:22: error: expected ')' before 'A'
   22 |           printf("%d"A[g][h][i]);
      |                 ~    ^
      |                      )
Language: C

#include <stdio.h>

int main(){

int office[4][3][10]=0;
int n,b,f,r,v;

scanf("%d",&n);

while(n--){

scanf("%d%d%d%d",&b,&f,&r,&v);
office[b-1][f-1][r-1] += v;

}

for(b=0;b<4;b++){
 for(f=0;f<3;f++){
  for(r=0;r<10;r++){
   printf(" %d",office[b-1][f-1][r-1]);
  }
 }
 printf("\n");
 printf("####################\n");
}


return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:22: error: invalid initializer
    5 | int office[4][3][10]=0;
      |                      ^
Language: C++

#include <stdio.h>
 
using namespace std;
 
void output(int H[3][10]){
    for(int i = 0; i < 3; i++){
        for(int j = 0; j < 10; j++){
            printf(" %d",H[i][j]);
        }
        printf("\n");
    }
}
 
 
int main(){
    int H1[3][10],H2[3][10],H3[3][10],H4[3][10],n,h_num,f_num,r_num,div_num;
    for(int i = 0; i < 3; i++){
        for(int j = 0; j < 10; j++){
            H1[i][j] = H2[i][j] = H3[i][j] = H4[i][j] = 0;
        }
    }
    scanf("%d",&n);
    for(int i = 0; i < n; i++){
        scanf("%d %d %d %d",&h_num,&f_num,&r_num,&div_num);
        switch(h_num){
        case 1:
            H1[f_num-1][r_num-1] += div_num;
            break;
        case 2:
            H2[f_num-1][r_num-1] += div_num;
            break;
        case 3:
            H3[f_num-1][r_num-1] += div_num;
            break;
        case 4:
            H4[f_num-1][r_num-1] += div_num;
            break;
        }
    }
 
    output(H1);
    printf("####################\n");
    output(H2);
    printf("####################\n");
    output(H3);
    printf("####################\n");
    output(H4);
 
}

Compile Error Logs:

ステータス
Judge: 5/5	C++	CPU: 00:00 sec	Memory: 1040 KB	Length: 894 B	2016-09-06 23:34
テストケースの判定結果
Case #	Verdict	CPU Time	Memory	In	Out	Case Name
Case #1	: Accepted	00:00	1040	26	315	testcase_00
Case #2	: Accepted	00:00	1040	92	315	testcase_01
Case #3	: Accepted	00:00	1036	53	315	testcase_02
Case #4	: Accepted	00:00	1040	976	315	testcase_03
Case #5	: Accepted	00:00	1036	2068	315	testcase_04

< prev |		/		| next >	 		
 
Judge Input #  ( | )		Judge Output #  ( | )



Compiler output:
a.cc:54:78: error: invalid digit "9" in octal constant
   54 | Judge: 5/5      C++     CPU: 00:00 sec  Memory: 1040 KB Length: 894 B   2016-09-06 23:34
      |                                                                              ^~
a.cc:56:6: error: stray '#' in program
   56 | Case #  Verdict CPU Time        Memory  In      Out     Case Name
      |      ^
a.cc:57:6: error: stray '#' in program
   57 | Case #1 : Accepted      00:00   1040    26      315     testcase_00
      |      ^
a.cc:58:6: error: stray '#' in program
   58 | Case #2 : Accepted      00:00   1040    92      315     testcase_01
      |      ^
a.cc:59:6: error: stray '#' in program
   59 | Case #3 : Accepted      00:00   1036    53      315     testcase_02
      |      ^
a.cc:60:6: error: stray '#' in program
   60 | Case #4 : Accepted      00:00   1040    976     315     testcase_03
      |      ^
a.cc:61:6: error: stray '#' in program
   61 | Case #5 : Accepted      00:00   1036    2068    315     testcase_04
      |      ^
a.cc:65:13: error: stray '#' in program
   65 | Judge Input #  ( | )            Judge Output #  ( | )
      |             ^
a.cc:65:46: error: stray '#' in program
   65 | Judge Input #  ( | )            Judge Output #  ( | )
      |                                              ^
a.cc:51:1: error: 'Compile' does not name a type
   51 | Compile Error Logs:
      | ^~~~~~~
Language: C++

#include <iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:21:47: error: return-statement with no value, in function returning 'int' [-fpermissive]
   21 |                         if (i == 3 && j == 2) return;
      |                                               ^~~~~~
Language: C++

#include<iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:16:41: error: expected primary-expression before '==' token
   16 |                 if(b == i && f == j &&  == k) a[i][j][k] += v;
      |                                         ^~
Language: C++

#include<iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:22:49: error: expected ';' before '}' token
   22 |         if(i < 3) cout << "####################"
      |                                                 ^
      |                                                 ;
   23 |     }
      |     ~
Language: C++

int main(){
	int m,f,r,su;while (cin >> m >> f >> r, !(m == -1 && f == -1 && r == -1)) {
        if (m == -1 || f == -1) {
            cout << "F" << endl;
            continue;
        }
 
        int sum = m + f;
        if (sum >= 80) {
            cout << "A" << endl;
        } else if (sum >= 65) {
            cout << "B" << endl;
        } else if (sum >= 50) {
            cout << "C" << endl;
        } else if (sum >= 30) {
            if (r >= 50) {
                cout << "C" << endl;
            } else {
                cout << "D" << endl;
            }
        } else {
            cout << "F" << endl;
        }
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:2:29: error: 'cin' was not declared in this scope
    2 |         int m,f,r,su;while (cin >> m >> f >> r, !(m == -1 && f == -1 && r == -1)) {
      |                             ^~~
a.cc:4:13: error: 'cout' was not declared in this scope
    4 |             cout << "F" << endl;
      |             ^~~~
a.cc:4:28: error: 'endl' was not declared in this scope
    4 |             cout << "F" << endl;
      |                            ^~~~
a.cc:10:13: error: 'cout' was not declared in this scope
   10 |             cout << "A" << endl;
      |             ^~~~
a.cc:10:28: error: 'endl' was not declared in this scope
   10 |             cout << "A" << endl;
      |                            ^~~~
a.cc:12:13: error: 'cout' was not declared in this scope
   12 |             cout << "B" << endl;
      |             ^~~~
a.cc:12:28: error: 'endl' was not declared in this scope
   12 |             cout << "B" << endl;
      |                            ^~~~
a.cc:14:13: error: 'cout' was not declared in this scope
   14 |             cout << "C" << endl;
      |             ^~~~
a.cc:14:28: error: 'endl' was not declared in this scope
   14 |             cout << "C" << endl;
      |                            ^~~~
a.cc:17:17: error: 'cout' was not declared in this scope
   17 |                 cout << "C" << endl;
      |                 ^~~~
a.cc:17:32: error: 'endl' was not declared in this scope
   17 |                 cout << "C" << endl;
      |                                ^~~~
a.cc:19:17: error: 'cout' was not declared in this scope
   19 |                 cout << "D" << endl;
      |                 ^~~~
a.cc:19:32: error: 'endl' was not declared in this scope
   19 |                 cout << "D" << endl;
      |                                ^~~~
a.cc:22:13: error: 'cout' was not declared in this scope
   22 |             cout << "F" << endl;
      |             ^~~~
a.cc:22:28: error: 'endl' was not declared in this scope
   22 |             cout << "F" << endl;
      |                            ^~~~
Language: C++

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



Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'namespase'
    1 | using namespase std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:4:3: error: 'cin' was not declared in this scope
    4 |   cin >>n;
      |   ^~~
a.cc:7:5: error: 'floor' was not declared in this scope
    7 |     floor[b-1][f-1][r-1] += v;
      |     ^~~~~
a.cc:12:5: error: 'cout' was not declared in this scope
   12 |     cout << " " << floor[i][j][k];
      |     ^~~~
a.cc:12:20: error: 'floor' was not declared in this scope
   12 |     cout << " " << floor[i][j][k];
      |                    ^~~~~
a.cc:14:7: error: 'cout' was not declared in this scope
   14 |       cout << endl;
      |       ^~~~
a.cc:14:15: error: 'endl' was not declared in this scope
   14 |       cout << endl;
      |               ^~~~
a.cc:17:5: error: 'cout' was not declared in this scope
   17 |     cout << "####################" << endl;
      |     ^~~~
a.cc:17:39: error: 'endl' was not declared in this scope
   17 |     cout << "####################" << endl;
      |                                       ^~~~
Language: C++

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


Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'namespase'
    1 | using namespase std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:4:3: error: 'cin' was not declared in this scope
    4 |   cin >>n;
      |   ^~~
a.cc:7:5: error: 'floor' was not declared in this scope
    7 |     floor[b-1][f-1][r-1] += v;
      |     ^~~~~
a.cc:12:5: error: 'cout' was not declared in this scope
   12 |     cout << " " << floor[i][j][k];
      |     ^~~~
a.cc:12:20: error: 'floor' was not declared in this scope
   12 |     cout << " " << floor[i][j][k];
      |                    ^~~~~
a.cc:14:7: error: 'cout' was not declared in this scope
   14 |       cout << endl;
      |       ^~~~
a.cc:14:15: error: 'endl' was not declared in this scope
   14 |       cout << endl;
      |               ^~~~
a.cc:17:5: error: 'cout' was not declared in this scope
   17 |     cout << "####################" << endl;
      |     ^~~~
a.cc:17:39: error: 'endl' was not declared in this scope
   17 |     cout << "####################" << endl;
      |                                       ^~~~
Language: C++

import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
 		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[][][] nums = new int[4][3][10];
		for (int i = 0; i < n; i++) {
			int b = sc.nextInt();
			int f = sc.nextInt();
			int r = sc.nextInt();
			int v = sc.nextInt();
			nums[b - 1][f - 1][r - 1] = nums[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++) {
					System.out.print(nums[j][k][L]);
				System.out.print(" ");
				}
				System.out.println();
			}
			if (j < 3) {
				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++

#include<iostream>
using namespace std;
int main(){
    int house[4][3][10]={{{}}};
    int n;
    int a,b,c,d;
    cin >> n;
    for(int i=0;i<n;i++){
        cin >> a >> b >> c >> d;
        house[a-1][b-1][c-1] += d
    }
    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) cout << "####################" << endl;
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:34: error: expected ';' before '}' token
   10 |         house[a-1][b-1][c-1] += d
      |                                  ^
      |                                  ;
   11 |     }
      |     ~                             
a.cc:15:46: error: expected ';' before '}' token
   15 |                 cout << " " << house[j][k][l]
      |                                              ^
      |                                              ;
   16 |             }
      |             ~
Language: C++

#include <bits/stdc++.h>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: expected ',' or ';' before 'cin'
    6 |     cin>>n;
      |     ^~~
Language: C++

#include <iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:25:31: error: invalid types 'int[int]' for array subscript
   25 |             cout << " " << a[1[i][j];
      |                               ^
a.cc:25:37: error: expected ']' before ';' token
   25 |             cout << " " << a[1[i][j];
      |                                     ^
      |                                     ]
Language: C++

#include <iostream>
using namespace std;

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


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

#include <iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:23: error: fixed-point types not supported in C++
   10 |             for(int k=1k<=10;k++){
      |                       ^~
a.cc:10:33: error: expected ';' before ')' token
   10 |             for(int k=1k<=10;k++){
      |                                 ^
      |                                 ;
Language: C++

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


Compiler output:
a.cc:19:23: error: stray '##' in program
   19 |         if(f>1) cout<<####################<<endl;
      |                       ^~
a.cc:19:25: error: stray '##' in program
   19 |         if(f>1) cout<<####################<<endl;
      |                         ^~
a.cc:19:27: error: stray '##' in program
   19 |         if(f>1) cout<<####################<<endl;
      |                           ^~
a.cc:19:29: error: stray '##' in program
   19 |         if(f>1) cout<<####################<<endl;
      |                             ^~
a.cc:19:31: error: stray '##' in program
   19 |         if(f>1) cout<<####################<<endl;
      |                               ^~
a.cc:19:33: error: stray '##' in program
   19 |         if(f>1) cout<<####################<<endl;
      |                                 ^~
a.cc:19:35: error: stray '##' in program
   19 |         if(f>1) cout<<####################<<endl;
      |                                   ^~
a.cc:19:37: error: stray '##' in program
   19 |         if(f>1) cout<<####################<<endl;
      |                                     ^~
a.cc:19:39: error: stray '##' in program
   19 |         if(f>1) cout<<####################<<endl;
      |                                       ^~
a.cc:19:41: error: stray '##' in program
   19 |         if(f>1) cout<<####################<<endl;
      |                                         ^~
a.cc: In function 'int main()':
a.cc:6:21: error: 'k' was not declared in this scope
    6 |         for(int j=1;k<=3;j++){
      |                     ^
a.cc:19:43: error: expected primary-expression before '<<' token
   19 |         if(f>1) cout<<####################<<endl;
      |                                           ^~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:21: error: 'k' was not declared in this scope
    6 |         for(int j=1;k<=3;j++){
      |                     ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:26: error: 'j' was not declared in this scope
    6 |         for(int k=1;k<=3;j++){
      |                          ^
Language: C++

#include<iostream>
using namespace std;

int main(){
    int room1[3][10];
    int room2[3][10];
    int room3[3][10];
    
    for(int i=0; i<3, i++){
        for(int j=0; j<10; j++){
           room1[i][j]=0;
           room2[i][j]=0;
           room3[i][j]=0;
        }
    }
    
    int n,b,f,r,y;
    cin>>n>>b>>f>>r>>v;
    for(int k=1; k<=n; n++){
        if (b==1) room1[f][r]=v;
        if (b==2) room2[f][r]=v;
        if (b==3) room3[f][r]=v;
        
        cout<<room1[1][r]<<endl<<room1[2][r]<<endl<<room[3][r]<<endl<<"####################"<<endl<<room2[1][r]<<endl<<room2[2[r]<<endl<<room2[3][r]<<endl<<"####################"<<endl<<room3[1][r]<<endl<<room3[2][r]<<endl<<room3[3][r]<<endl;
    }
    
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:26: error: expected ';' before ')' token
    9 |     for(int i=0; i<3, i++){
      |                          ^
      |                          ;
a.cc:18:22: error: 'v' was not declared in this scope
   18 |     cin>>n>>b>>f>>r>>v;
      |                      ^
a.cc:24:53: error: 'room' was not declared in this scope; did you mean 'room3'?
   24 |         cout<<room1[1][r]<<endl<<room1[2][r]<<endl<<room[3][r]<<endl<<"####################"<<endl<<room2[1][r]<<endl<<room2[2[r]<<endl<<room2[3][r]<<endl<<"####################"<<endl<<room3[1][r]<<endl<<room3[2][r]<<endl<<room3[3][r]<<endl;
      |                                                     ^~~~
      |                                                     room3
a.cc:24:127: error: invalid types 'int[int]' for array subscript
   24 |         cout<<room1[1][r]<<endl<<room1[2][r]<<endl<<room[3][r]<<endl<<"####################"<<endl<<room2[1][r]<<endl<<room2[2[r]<<endl<<room2[3][r]<<endl<<"####################"<<endl<<room3[1][r]<<endl<<room3[2][r]<<endl<<room3[3][r]<<endl;
      |                                                                                                                               ^
a.cc:24:242: error: expected ']' before ';' token
   24 |         cout<<room1[1][r]<<endl<<room1[2][r]<<endl<<room[3][r]<<endl<<"####################"<<endl<<room2[1][r]<<endl<<room2[2[r]<<endl<<room2[3][r]<<endl<<"####################"<<endl<<room3[1][r]<<endl<<room3[2][r]<<endl<<room3[3][r]<<endl;
      |                                                                                                                                                                                                                                                  ^
      |                                                                                                                                                                                                                                                  ]
Language: C++

#include<iostream>
using namespace std;

int main(){
    int room1[3][10];
    int room2[3][10];
    int room3[3][10];
    
    for(int i=0; i<3, i++)
        for(int j=0; j<10; j++)
           room1[i][j]=0;
           room2[i][j]=0;
           room3[i][j]=0;
    
    int n,b,f,r,y;
    cin>>n>>b>>f>>r>>v;
    for(int k=1; k<=n; n++){
        if (b==1) room1[f][r]=v;
        if (b==2) room2[f][r]=v;
        if (b==3) room3[f][r]=v;
        
        cout<<room1[1][r]<<endl<<room1[2][r]<<endl<<room[3][r]<<endl<<"####################"<<endl<<room2[1][r]<<endl<<room2[2[r]<<endl<<room2[3][r]<<endl<<"####################"<<endl<<room3[1][r]<<endl<<room3[2][r]<<endl<<room3[3][r]<<endl;
    }
    
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:26: error: expected ';' before ')' token
    9 |     for(int i=0; i<3, i++)
      |                          ^
      |                          ;
a.cc:12:18: error: 'i' was not declared in this scope
   12 |            room2[i][j]=0;
      |                  ^
a.cc:12:21: error: 'j' was not declared in this scope
   12 |            room2[i][j]=0;
      |                     ^
a.cc:16:22: error: 'v' was not declared in this scope
   16 |     cin>>n>>b>>f>>r>>v;
      |                      ^
a.cc:22:53: error: 'room' was not declared in this scope; did you mean 'room3'?
   22 |         cout<<room1[1][r]<<endl<<room1[2][r]<<endl<<room[3][r]<<endl<<"####################"<<endl<<room2[1][r]<<endl<<room2[2[r]<<endl<<room2[3][r]<<endl<<"####################"<<endl<<room3[1][r]<<endl<<room3[2][r]<<endl<<room3[3][r]<<endl;
      |                                                     ^~~~
      |                                                     room3
a.cc:22:127: error: invalid types 'int[int]' for array subscript
   22 |         cout<<room1[1][r]<<endl<<room1[2][r]<<endl<<room[3][r]<<endl<<"####################"<<endl<<room2[1][r]<<endl<<room2[2[r]<<endl<<room2[3][r]<<endl<<"####################"<<endl<<room3[1][r]<<endl<<room3[2][r]<<endl<<room3[3][r]<<endl;
      |                                                                                                                               ^
a.cc:22:242: error: expected ']' before ';' token
   22 |         cout<<room1[1][r]<<endl<<room1[2][r]<<endl<<room[3][r]<<endl<<"####################"<<endl<<room2[1][r]<<endl<<room2[2[r]<<endl<<room2[3][r]<<endl<<"####################"<<endl<<room3[1][r]<<endl<<room3[2][r]<<endl<<room3[3][r]<<endl;
      |                                                                                                                                                                                                                                                  ^
      |                                                                                                                                                                                                                                                  ]
Language: C++

#include<iostream>
using namespace std;

int main(){
    bool room1[3][10];
    bool room2[3][10];
    bool room3[3][10];
    
    for(int i=0; i<3, i++)
        for(int j=0; j<10; j++)
           room1[i][j]=0;
           room2[i][j]=0;
           room3[i][j]=0;
    
    int n,b,f,r,y;
    cin>>n>>b>>f>>r>>v;
    for(int k=1; k<=n; n++){
        if (b==1) room1[f][r]=v;
        if (b==2) room2[f][r]=v;
        if (b==3) room3[f][r]=v;
        
        cout<<room1[1][r]<<endl<<room1[2][r]<<endl<<room[3][r]<<endl<<"####################"<<endl<<room2[1][r]<<endl<<room2[2[r]<<endl<<room2[3][r]<<endl<<"####################"<<endl<<room3[1][r]<<endl<<room3[2][r]<<endl<<room3[3][r]<<endl;
    }
    
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:26: error: expected ';' before ')' token
    9 |     for(int i=0; i<3, i++)
      |                          ^
      |                          ;
a.cc:12:18: error: 'i' was not declared in this scope
   12 |            room2[i][j]=0;
      |                  ^
a.cc:12:21: error: 'j' was not declared in this scope
   12 |            room2[i][j]=0;
      |                     ^
a.cc:16:22: error: 'v' was not declared in this scope
   16 |     cin>>n>>b>>f>>r>>v;
      |                      ^
a.cc:22:53: error: 'room' was not declared in this scope; did you mean 'room3'?
   22 |         cout<<room1[1][r]<<endl<<room1[2][r]<<endl<<room[3][r]<<endl<<"####################"<<endl<<room2[1][r]<<endl<<room2[2[r]<<endl<<room2[3][r]<<endl<<"####################"<<endl<<room3[1][r]<<endl<<room3[2][r]<<endl<<room3[3][r]<<endl;
      |                                                     ^~~~
      |                                                     room3
a.cc:22:127: error: invalid types 'int[int]' for array subscript
   22 |         cout<<room1[1][r]<<endl<<room1[2][r]<<endl<<room[3][r]<<endl<<"####################"<<endl<<room2[1][r]<<endl<<room2[2[r]<<endl<<room2[3][r]<<endl<<"####################"<<endl<<room3[1][r]<<endl<<room3[2][r]<<endl<<room3[3][r]<<endl;
      |                                                                                                                               ^
a.cc:22:242: error: expected ']' before ';' token
   22 |         cout<<room1[1][r]<<endl<<room1[2][r]<<endl<<room[3][r]<<endl<<"####################"<<endl<<room2[1][r]<<endl<<room2[2[r]<<endl<<room2[3][r]<<endl<<"####################"<<endl<<room3[1][r]<<endl<<room3[2][r]<<endl<<room3[3][r]<<endl;
      |                                                                                                                                                                                                                                                  ^
      |                                                                                                                                                                                                                                                  ]
Language: C++

#include<iostream>
using namespace std;

int main(){
    bool room1[3][10];
    bool room2[3][10];
    bool room3[3][10];
    
    for(int i=0; i<3, i++);
        for(int j=0; j<10; j++);
           room1[i][j]=0;
           room2[i][j]=0;
           room3[i][j]=0;
    
    int n,b,f,r,y;
    cin>>n>>b>>f>>r>>v;
    for(int k=1; k<=n; n++){
        if (b==1) room1[f][r]=v;
        if (b==2) room2[f][r]=v;
        if (b==3) room3[f][r]=v;
        
        cout<<room1[1][r]<<endl<<room1[2][r]<<endl<<room[3][r]<<endl<<"####################"<<endl<<room2[1][r]<<endl<<room2[2[r]<<endl<<room2[3][r]<<endl<<"####################"<<endl<<room3[1][r]<<endl<<room3[2][r]<<endl<<room3[3][r]<<endl;
    }
    
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:26: error: expected ';' before ')' token
    9 |     for(int i=0; i<3, i++);
      |                          ^
      |                          ;
a.cc:11:18: error: 'i' was not declared in this scope
   11 |            room1[i][j]=0;
      |                  ^
a.cc:11:21: error: 'j' was not declared in this scope
   11 |            room1[i][j]=0;
      |                     ^
a.cc:16:22: error: 'v' was not declared in this scope
   16 |     cin>>n>>b>>f>>r>>v;
      |                      ^
a.cc:22:53: error: 'room' was not declared in this scope; did you mean 'room3'?
   22 |         cout<<room1[1][r]<<endl<<room1[2][r]<<endl<<room[3][r]<<endl<<"####################"<<endl<<room2[1][r]<<endl<<room2[2[r]<<endl<<room2[3][r]<<endl<<"####################"<<endl<<room3[1][r]<<endl<<room3[2][r]<<endl<<room3[3][r]<<endl;
      |                                                     ^~~~
      |                                                     room3
a.cc:22:127: error: invalid types 'int[int]' for array subscript
   22 |         cout<<room1[1][r]<<endl<<room1[2][r]<<endl<<room[3][r]<<endl<<"####################"<<endl<<room2[1][r]<<endl<<room2[2[r]<<endl<<room2[3][r]<<endl<<"####################"<<endl<<room3[1][r]<<endl<<room3[2][r]<<endl<<room3[3][r]<<endl;
      |                                                                                                                               ^
a.cc:22:242: error: expected ']' before ';' token
   22 |         cout<<room1[1][r]<<endl<<room1[2][r]<<endl<<room[3][r]<<endl<<"####################"<<endl<<room2[1][r]<<endl<<room2[2[r]<<endl<<room2[3][r]<<endl<<"####################"<<endl<<room3[1][r]<<endl<<room3[2][r]<<endl<<room3[3][r]<<endl;
      |                                                                                                                                                                                                                                                  ^
      |                                                                                                                                                                                                                                                  ]