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

#include <stdio.h> 

int main(void)
{
	int count[4][3][10];
	int n, b, f, r, v, 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] = 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][k][j]);
			}

			printf("\n");
		}
		if(i+1 < 4)
		{
			printf("############\n");
		}
		
	}



	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:18:21: error: 'j' undeclared (first use in this function)
   18 |                 for(j = 0; j < 3; j++)
      |                     ^
main.c:18:21: note: each undeclared identifier is reported only once for each function it appears in
main.c:20:29: error: 'k' undeclared (first use in this function)
   20 |                         for(k = 0; k < 10; k++)
      |                             ^
Language: C

#include <stdio.h>
int main(void)
{
	int b,f,r,v,n,nyukyosya[4][3][10],i,j,k,l;

	for(i=0;i<4;i++)
	{

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

	
		



	scanf("%d",&n);

	for(l=0;l<n;l++)
	{

		scanf("%d %d %d %d\n",&b,&f,&r,&v);
	
	

	 	nyukyosya[b-1][f-1][r-1] = nyukyosya[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",nyukyosya[i][j][k]);
			}

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

	

	

Compiler output:
main.c: In function 'main':
main.c:61:9: error: expected declaration or statement at end of input
   61 |         }
      |         ^
Language: C

#include <stdio.h>
int main(void)
{
	int b,f,r,v,n,nyukyosya[4][3][10],i,j,k,l;

	for(i=0;i<4;i++)
	{

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

	
		



	scanf("%d",&n);

	for(l=0;l<n;l++)
	{

		scanf("%d %d %d %d\n",&b,&f,&r,&v);
	
	

	 	nyukyosya[b-1][f-1][r-1] = nyukyosya[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",nyukyosya[i][j][k]);
			}

			if(j != 2 || (j== 2 && i == 3))
                        {
				printf(\n);
			}

		

			
			if(i != 3)
			{
		
			printf("\n####################\n");
		
			}
		
	}

	

	



	return 0;

}

Compiler output:
main.c: In function 'main':
main.c:56:40: error: stray '\' in program
   56 |                                 printf(\n);
      |                                        ^
main.c:56:41: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
   56 |                                 printf(\n);
      |                                         ^
      |                                         |
      |                                         int
In file included from main.c:1:
/usr/include/stdio.h:363:43: note: expected 'const char * restrict' but argument is of type 'int'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:79:1: error: expected declaration or statement at end of input
   79 | }
      | ^
Language: C

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:23:26: error: 'f' undeclared (first use in this function)
   23 |                 if (b == f-1) { break; }
      |                          ^
main.c:23:26: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

int main( void )
{
	int info_num, info_cou, build_cou, step_cou, room_cou;
	int build_num, step_num, room_num, people_num;
	int room[4][3][10] = {};
	
	scanf( "%d", &info_num );
	room[4][3][10] = {0};
	for( info_cou = 0; info_cou < info_num; info_cou++ )
	{
		scanf( "%d %d %d %d\n", &build_num, &step_num, &room_num, &people_num );
		room[build_num - 1][step_num - 1][room_num - 1] = people_num;
	}
	
	for( build_cou = 0; build_cou < 4; build_cou++ )
	{
		for( step_cou = 0; step_cou < 3; step_cou++ )
		{
			for( room_cou = 0; room_cou < 10; room_cou++ )
			{
				printf( " %d", room[build_cou][step_cou][room_cou] );
			}
			printf( "\n" );
		}
		if( build_cou < 3 )
		{
			printf( "####################\n" );
		}
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:26: error: expected expression before '{' token
   10 |         room[4][3][10] = {0};
      |                          ^
Language: C

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

Compiler output:
main.c:1:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before ')' token
    1 | v);
      |  ^
main.c:2:11: error: 'b' undeclared here (not in a function)
    2 |     count[b][f][r]+=v;
      |           ^
main.c:2:14: error: 'f' undeclared here (not in a function)
    2 |     count[b][f][r]+=v;
      |              ^
main.c:2:17: error: 'r' undeclared here (not in a function)
    2 |     count[b][f][r]+=v;
      |                 ^
main.c:2:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before '+=' token
    2 |     count[b][f][r]+=v;
      |                   ^~
main.c:3:7: error: expected identifier or '(' before '}' token
    3 |       }
      |       ^
main.c:4:3: error: expected identifier or '(' before 'for'
    4 |   for(i=1;i<=4;i++){
      |   ^~~
main.c:4:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<=' token
    4 |   for(i=1;i<=4;i++){
      |            ^~
main.c:4:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
    4 |   for(i=1;i<=4;i++){
      |                 ^~
main.c:15:3: error: expected identifier or '(' before 'return'
   15 |   return 0;
      |   ^~~~~~
main.c:16:1: error: expected identifier or '(' before '}' token
   16 | }
      | ^
Language: C

#include <stdio.h>

int main(void)
{
	int i, j, k, n, b, f, r, v;
	int count[4][3][10] = { 0 };

	scanf_s("%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 (i = 0; i < 4; i++) {
		for (j = 0; j < 3; j++) {
			
			for (k = 0; k < 10; k++) {
				printf(" %d", count[i][j][k]);
			}
			
			putchar('\n');

		}
		if (i < 3) {
			printf("####################\n");
		}
	}

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    8 |         scanf_s("%d", &n);
      |         ^~~~~~~
      |         scanf
Language: C

#include <stdio.h>
int main(void)
{
	int i,j,k,n,b,f,r,v,room[5][4][11];
	scanf("%d ",&n);
	for(i=0;i<=4;i++){
		for(j=0;j<=3;j++){
			for(k=0;k<=10;k++)
				room[i][j][k]=0;
		}
	}
	for(i=0;i<n;i++){
		scanf("%d %d %d %d ",&b,&f,&r,&v);
		room[b][f][r]=room[b][f][r]+v;
	}
	for(i=1;i<=4;i++){
		for(j=1;j<=3;j++){
			for(k=1;k<=10;k++)
				printf("%d ",room[i][j][k]);
			printf("\n");
		}
		printf("####################\n")
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:22:49: error: expected ';' before '}' token
   22 |                 printf("####################\n")
      |                                                 ^
      |                                                 ;
   23 |         }
      |         ~
Language: C

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

Compiler output:
main.c:26:1: error: expected identifier or '(' before '}' token
   26 | }
      | ^
Language: C

#include<stdio.h>

int main(void)
{
	int n;
	int count[4][3][10]={0};
	int i,j,k,l,m;
	int b,f,r,v;	

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


	

Compiler output:
main.c: In function 'main':
main.c:34:1: error: expected declaration or statement at end of input
   34 | }
      | ^
Language: C

#include <stdio.h>

int main(){
	int n;
	int b, f, r, v;
	int i, j, k, m;
	int room[4][3][10] = {0};

	scanf("%d", &n);

	for(i = 0; i < n; i++){
		scanf("%d %d %d %d", &b, &f, &r, &v);

		index[b][f][r] = v;
	}

	for(j = 0; j < 4; j++){
		for(k = 0; k < 3; k++){
			for(m = 0; m < 10; m++){
				printf(" ");
				printf(index[j][k][m]);
			}
			printf("\n");
			if(k == 2){
				printf("####################");
				printf("\n");
			}

		}
	}

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:17: error: 'index' undeclared (first use in this function)
   14 |                 index[b][f][r] = v;
      |                 ^~~~~
main.c:14:17: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

int main(void){
	int n;
	int b, f, r, v;
	int i, j, k, m;
	int room[4][3][10] = {0};

	scanf("%d", &n);

	for(i = 0; i < n; i++){
		scanf("%d %d %d %d", &b, &f, &r, &v);

		index[b][f][r] = v;
	}

	for(j = 0; j < 4; j++){
		for(k = 0; k < 3; k++){
			for(m = 0; m < 10; m++){
				printf(" ");
				printf(index[j][k][m]);
			}
			printf("\n");
			if(k == 2){
				printf("####################");
				printf("\n");
			}

		}
	}

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:17: error: 'index' undeclared (first use in this function)
   14 |                 index[b][f][r] = v;
      |                 ^~~~~
main.c:14:17: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

int main(void){
	int n;
	int b, f, r, v;
	int i, j, k, m;
	int room[4][3][10] = {0};

	scanf("%d", &n);

	for(i = 0; i < n; i++){
		scanf("%d %d %d %d", &b, &f, &r, &v);

		room[b][f][r] = v;
	}

	for(j = 0; j < 4; j++){
		for(k = 0; k < 3; k++){
			for(m = 0; m < 10; m++){
				printf(" ");
				printf(index[j][k][m]);
			}
			printf("\n");
			if(k == 2){
				printf("####################");
				printf("\n");
			}

		}
	}

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:21:40: error: 'index' undeclared (first use in this function)
   21 |                                 printf(index[j][k][m]);
      |                                        ^~~~~
main.c:21:40: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>
int main(void){
    
    int A[3][10], B[3][10], C[3][10], D[3][10];
    int i, t;
    int n, b, f, r, v;
    int *tower;
    
    for(i = 0; i < 3; i++){
        for(t = 0; t < 10; t++){
        A[i][t] = 0;
        B[i][t] = 0;
        C[i][t] = 0;
        D[i][t] = 0;
        }
    }
    
    scanf("%d\n", &n);
    
    for(n; n > 0; n--){
        scanf("%d %d %d %d", &b, &f, &r, &v);
        switch(b){
            case 1:
                tower = A;
                break;
            case 2:
                tower = B;
                break;
            case 3:
                tower = C;
                break;
            case 4:
                tower = D;
                break;
        }
        if(0 <= (tower[f][r] += v) && (tower[f][r] += v) <= 9){
            tower[f][r] += v;
        }
    }
    
    for(i = 0; i < 3; i++){
        for(t = 0; t < 10; t++){
        printf("%c", A[i][t]);
        }
        printf("\n");
    }
    
    
    
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:24:23: error: assignment to 'int *' from incompatible pointer type 'int (*)[10]' [-Wincompatible-pointer-types]
   24 |                 tower = A;
      |                       ^
main.c:27:23: error: assignment to 'int *' from incompatible pointer type 'int (*)[10]' [-Wincompatible-pointer-types]
   27 |                 tower = B;
      |                       ^
main.c:30:23: error: assignment to 'int *' from incompatible pointer type 'int (*)[10]' [-Wincompatible-pointer-types]
   30 |                 tower = C;
      |                       ^
main.c:33:23: error: assignment to 'int *' from incompatible pointer type 'int (*)[10]' [-Wincompatible-pointer-types]
   33 |                 tower = D;
      |                       ^
main.c:36:26: error: subscripted value is neither array nor pointer nor vector
   36 |         if(0 <= (tower[f][r] += v) && (tower[f][r] += v) <= 9){
      |                          ^
main.c:36:48: error: subscripted value is neither array nor pointer nor vector
   36 |         if(0 <= (tower[f][r] += v) && (tower[f][r] += v) <= 9){
      |                                                ^
main.c:37:21: error: subscripted value is neither array nor pointer nor vector
   37 |             tower[f][r] += v;
      |                     ^
Language: C

#include <stdio.h>
int mian(void) {
	int n, i, j, k;
	int A[4][3][10] = {};
	int b, f, r, v;

	scanf("%d", &n);

	for (i = 0; i < n; i++) {
		scanf("%d %d %d %d", &b, &f, &r, &v);

		A[b][f][r] += v;
	}

	for (i = 0; i < 4; i++) {
		for (j = 0; j < 3; j++) {
			for (k = 0; k < 10; k++) {
				printf(" %d", A[i][j][k]);
			}
			printf("\n");
		}

		if (i < 3) {
			for (j = 0; j < 20; j++) {
				printf("#");
			}
			printf("\n");
		}
	}
	return 0;
}

Compiler output:
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C


int num;

scanf("%d",num);

printf("%d\n",num);

Compiler output:
main.c:4:7: error: expected declaration specifiers or '...' before string constant
    4 | scanf("%d",num);
      |       ^~~~
main.c:4:12: error: expected declaration specifiers or '...' before 'num'
    4 | scanf("%d",num);
      |            ^~~
main.c:6:8: error: expected declaration specifiers or '...' before string constant
    6 | printf("%d\n",num);
      |        ^~~~~~
main.c:6:15: error: expected declaration specifiers or '...' before 'num'
    6 | printf("%d\n",num);
      |               ^~~
Language: C

//#include<stdio.h>

//void main(){

//int num;
//char buff[1000];

//gets(buff);
//num = atoi(buff);

printf("aaa\n",num);

}

Compiler output:
main.c:11:8: error: expected declaration specifiers or '...' before string constant
   11 | printf("aaa\n",num);
      |        ^~~~~~~
main.c:11:16: error: unknown type name 'num'; did you mean 'enum'?
   11 | printf("aaa\n",num);
      |                ^~~
      |                enum
main.c:13:1: error: expected identifier or '(' before '}' token
   13 | }
      | ^
Language: C

#include<stdio.h>

//void main(){

//int num;
//char buff[1000];

//gets(buff);
//num = atoi(buff);

printf("aaa\n",num);

}

Compiler output:
main.c:11:8: error: expected declaration specifiers or '...' before string constant
   11 | printf("aaa\n",num);
      |        ^~~~~~~
main.c:11:16: error: unknown type name 'num'; did you mean 'enum'?
   11 | printf("aaa\n",num);
      |                ^~~
      |                enum
main.c:13:1: error: expected identifier or '(' before '}' token
   13 | }
      | ^
Language: C

#include<stdio.h>

//void main(){

//int num;
//char buff[1000];

//gets(buff);
//num = atoi(buff);

printf("aaa\n"/*,num*/);

}

Compiler output:
main.c:11:8: error: expected declaration specifiers or '...' before string constant
   11 | printf("aaa\n"/*,num*/);
      |        ^~~~~~~
main.c:13:1: error: expected identifier or '(' before '}' token
   13 | }
      | ^
Language: C

#include<stdio.h>

void main(){

//int num;
//char buff[1000];

//gets(buff);
//num = atoi(buff);

//printf("aaa\n"/*,num*/);

putc('a');
}

Compiler output:
main.c: In function 'main':
main.c:13:1: error: too few arguments to function 'putc'
   13 | putc('a');
      | ^~~~
In file included from main.c:1:
/usr/include/stdio.h:612:12: note: declared here
  612 | extern int putc (int __c, FILE *__stream) __nonnull ((2));
      |            ^~~~
Language: C

//#include<stdio.h>

void main(){

//int num;
//char buff[1000];

//gets(buff);
//num = atoi(buff);

//printf("aaa\n"/*,num*/);

putc('a', stdout);
}

Compiler output:
main.c: In function 'main':
main.c:13:1: error: implicit declaration of function 'putc' [-Wimplicit-function-declaration]
   13 | putc('a', stdout);
      | ^~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'putc'
  +++ |+#include <stdio.h>
    1 | //#include<stdio.h>
main.c:13:11: error: 'stdout' undeclared (first use in this function)
   13 | putc('a', stdout);
      |           ^~~~~~
main.c:13:11: note: 'stdout' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <stdio.h>'
main.c:13:11: note: each undeclared identifier is reported only once for each function it appears in
Language: C

//#include<stdio.h>

void main(){

//int num;
//char buff[1000];

//gets(buff);
//num = atoi(buff);

//printf("aaa\n"/*,num*/);

putc((int)'a', stdout);
}

Compiler output:
main.c: In function 'main':
main.c:13:1: error: implicit declaration of function 'putc' [-Wimplicit-function-declaration]
   13 | putc((int)'a', stdout);
      | ^~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'putc'
  +++ |+#include <stdio.h>
    1 | //#include<stdio.h>
main.c:13:16: error: 'stdout' undeclared (first use in this function)
   13 | putc((int)'a', stdout);
      |                ^~~~~~
main.c:13:16: note: 'stdout' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <stdio.h>'
main.c:13:16: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>

int main(int argv, char **argc){

 int i,j,k;
 int arg1,arg2,arg3,arg4;
 int num;
 char buff[1000];

 int data[4][3][10];

 gets(buff);
 num = atoi(buff);

 for(i=0; i<num; i++){
  
  scanf("%d %d %d %d\n", arg1,arg2,arg3,arg4);

  data[arg1-1][arg2-1][arg3-1]+=arg4;
 }

 for(i=0; i<4; i++){
  for(j=0; j<3; j++){
   for(k=0; k<10; k++){
    printf("%d ", data[i][j][k] )
   }
   printf("\n");
  }
  printf("####################\n");
 }
 printf("%d\n",num);

 return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:2: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
   12 |  gets(buff);
      |  ^~~~
      |  fgets
main.c:13:8: error: implicit declaration of function 'atoi' [-Wimplicit-function-declaration]
   13 |  num = atoi(buff);
      |        ^~~~
main.c:25:34: error: expected ';' before '}' token
   25 |     printf("%d ", data[i][j][k] )
      |                                  ^
      |                                  ;
   26 |    }
      |    ~
Language: C

#include <stdio.h>

int main()
{
 int ans[4][3][10] = {0}, a, b, c, d, i, j, k, n;

 scanf("%d\n", &n);
 for(i = 0; i < n; i++)
 {
     scanf("%d %d %d %d\n", &a, &b, &c, &d);
     ans[a][b][c] = d;
 }

 for(i = 0; i < 4; i++)
 {
     for(j = 0; j < 3; j++)
     {
         for(k = 0; k < 10; k++)
         {
             prinf(" %d", ans[i][j][k]);
         }
     }
     printf("####################\n");
 }

 return 0;
}

Compiler output:
main.c: In function 'main':
main.c:20:14: error: implicit declaration of function 'prinf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   20 |              prinf(" %d", ans[i][j][k]);
      |              ^~~~~
      |              printf
Language: C

#include <stdio.h>

int main()
{
 int ans[4][3][10] = {0}, a, b, c, d, i, j, k, n;

 scanf("%d\n", &n);
 for(i = 0; i < n; i++)
 {
     scanf("%d %d %d %d\n", &a, &b, &c, &d);
     ans[a - 1][b - 1][c - 1] = d;
 }

 for(i = 0; i < 4; i++)
 {
     for(j = 0; j < 3; j++)
     {
         for(k = 0; k < 10; k++)
         {
             prinf(" %d", ans[i][j][k]);
         }
     }
     printf("####################\n");
 }

 return 0;
}

Compiler output:
main.c: In function 'main':
main.c:20:14: error: implicit declaration of function 'prinf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   20 |              prinf(" %d", ans[i][j][k]);
      |              ^~~~~
      |              printf
Language: C

#include<stdio.h>

int main(){
  int tou[4][3][10]={0};
  int n,i,j,k,tou,kai,ban,nin;
  scanf("%d",&n);
  for(i=0;i<n;i++){
    scanf("%d%d%d%d",&tou,&kai,&ban,&nin);
    tou[tou][kai][ban]=tou[tou][kai][ban]+nin
  }
  for(j=0;j<4;j++){
    for(k=0;k<3;k++){
      for(i=0;i<10;i++){
        printf(" %d",tou[j][k][i]);
      }
      printf("\n");
    }
    if(!(j==3)) printf("####################\n");
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:15: error: conflicting types for 'tou'; have 'int'
    5 |   int n,i,j,k,tou,kai,ban,nin;
      |               ^~~
main.c:4:7: note: previous definition of 'tou' with type 'int[4][3][10]'
    4 |   int tou[4][3][10]={0};
      |       ^~~
main.c:9:46: error: expected ';' before '}' token
    9 |     tou[tou][kai][ban]=tou[tou][kai][ban]+nin
      |                                              ^
      |                                              ;
   10 |   }
      |   ~
Language: C

#include<stdio.h>

int main(){
  int Tou[4][3][10]={0};
  int n,i,j,k,tou,kai,ban,nin;
  scanf("%d",&n);
  for(i=0;i<n;i++){
    scanf("%d%d%d%d",&tou,&kai,&ban,&nin);
    Tou[tou][kai][ban]=Tou[tou][kai][ban]+nin
  }
  for(j=0;j<4;j++){
    for(k=0;k<3;k++){
      for(i=0;i<10;i++){
        printf(" %d",Tou[j][k][i]);
      }
      printf("\n");
    }
    if(!(j==3)) printf("####################\n");
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:46: error: expected ';' before '}' token
    9 |     Tou[tou][kai][ban]=Tou[tou][kai][ban]+nin
      |                                              ^
      |                                              ;
   10 |   }
      |   ~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:26:37: error: expected ';' before '}' token
   26 |     printf("####################\n")
      |                                     ^
      |                                     ;
   27 |       }
      |       ~
Language: C

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

Compiler output:
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include<stdio.h>
      |        ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:24:7: error: break statement not within loop or switch
   24 |       break;
      |       ^~~~~
main.c: At top level:
main.c:28:3: error: expected identifier or '(' before 'return'
   28 |   return 0;
      |   ^~~~~~
main.c:29:1: error: expected identifier or '(' before '}' token
   29 | }
      | ^
Language: C

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

	int count[4][3][10]={0};						/* 4?£? 3??¨?±? 10????????? */
	int n, b, f, r, v, i, j, k;

	scanf("%d",&n);
		for(i=0; i<n; i++){
			scanf("%d %d %d %d", &b, &f, &r, &v);	/* 4????????´??°b, f, r, v?????\??????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");	/* ????£??????????????????????20??????#???????????? */
		}
	}

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:27:1: error: expected declaration or statement at end of input
   27 | }
      | ^
Language: C

#include <stdio.h>
 
int main(int argc, const char * argv[]){

	int count[4][3][10]={0};						/* 4?£? 3??¨?±? 10????????? */
	int n, b, f, r, v, i, j, k;

	scanf("%d",&n);
		for(i=0; i<n; i++){
			scanf("%d %d %d %d", &b, &f, &r, &v);	/* 4????????´??°b, f, r, v?????\??????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");	/* ????£??????????????????????20??????#???????????? */
		}
	}

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:27:1: error: expected declaration or statement at end of input
   27 | }
      | ^
Language: C

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

	int count[4][3][10]={0};						/* 4?£? 3??¨?±? 10????????? */
	int n, b, f, r, v, i, j, k;

	scanf("%d", &n);
		for(i=0; i<n; i++){
			scanf("%d %d %d %d", &b, &f, &r, &v);	/* 4????????´??°b f r v?????\???(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");	/* ????£??????????????????????20??????#???????????? */
		}
	}

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:27:1: error: expected declaration or statement at end of input
   27 | }
      | ^
Language: C

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

	int count[4][3][10]={0};
	int n, b, f, r, v, i, j, k;

	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(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;
}

Compiler output:
main.c: In function 'main':
main.c:27:1: error: expected declaration or statement at end of input
   27 | }
      | ^
Language: C

#include <stdio.h>
 
int main(int argc, const char * argv[]){

	int count[4][3][10]={0};
	int n, b, f, r, v, i, j, k;

	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(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;
}

Compiler output:
main.c: In function 'main':
main.c:27:1: error: expected declaration or statement at end of input
   27 | }
      | ^
Language: C

#include <stdio.h>

int main(){
int a[4][3][10]={0};
int i,n,tou,kai,heyaban,nyuukyosya,j,k;

scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d %d %d %d",&tou,&kai,&heyaban,&nyuukyosya);
a[tou-1][kai-1][heyaban-1]=nyuukyosya;}


for(i=0;i<4;i++){
 for(j=0;j<3;j++){
   for(k=0;k<10;k++){

printf(" %d",a[i][j][k]);

}
printf("\n");
}
if(i<3){printf("####################\n");}
}


y

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:26:1: error: 'y' undeclared (first use in this function)
   26 | y
      | ^
main.c:26:1: note: each undeclared identifier is reported only once for each function it appears in
main.c:26:2: error: expected ';' before 'return'
   26 | y
      |  ^
      |  ;
   27 | 
   28 | return 0;
      | ~~~~~~
Language: C

#include<stdio.h>


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

Compiler output:
main.c:41:9: error: expected identifier or '(' before 'return'
   41 |         return 0;
      |         ^~~~~~
main.c:42:1: error: expected identifier or '(' before '}' token
   42 | }
      | ^
Language: C

#include<stdio.h>


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

Compiler output:
main.c:38:9: error: expected identifier or '(' before 'return'
   38 |         return 0;
      |         ^~~~~~
main.c:39:1: error: expected identifier or '(' before '}' token
   39 | }
      | ^
Language: C

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

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 n,i,j,k,b,f,r,v,count[10][10][10]; 
 
  	 
    for(i=1;i<=4;++i){
	  for(j=1;j<=3;++j){
	    for(k=1;k<=10;++k){		 
	     count[i][j][k]=0;
       }
	  }
    }	 	  
      
 	 scanf("%d",&n);
 
 	 for(j=0;j<n;++j){
	  scanf("%d",&b); // ?????????????????¨???
	  scanf("%d",&f);
  	  scanf("%d",&r);
	  scanf("%d",&v);
	  
	  count[b][f][r]+=v;    

	 }	 
	
    for(i=1;i<=4;++i){
	  for(j=1;j<=3;++j){ 
		for(k=1;k<=10;++k){  
???????????????       ???printf (" %d",count[i][j][k]);
      ???????????????  if (k==10) printf ("\n");
      }
        if ((j==3)&&(i!=4)) printf ("####################\n");
	 }
    }	

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:31:1: error: expected expression before '?' token
   31 | ???????????????       ???printf (" %d",count[i][j][k]);
      | ^
main.c:32:7: error: expected expression before '?' token
   32 |       ???????????????  if (k==10) printf ("\n");
      |       ^
Language: C

#include <stdio.h>

int main(){

    int n,i,j,k,b,f,r,v,count[10][10][10]; 
 
  	 
    for(i=1;i<=4;++i){
	  for(j=1;j<=3;++j){
	    for(k=1;k<=10;++k){		 
	     count[i][j][k]=0;
       }
	  }
    }	 	  
      
 	 scanf("%d",&n);
 
 	 for(j=0;j<n;++j){
	  scanf("%d",&b); // ?????????????????¨???
	  scanf("%d",&f);
  	  scanf("%d",&r);
	  scanf("%d",&v);
	  
	  count[b][f][r]+=v;    

	 }	 
	
    for(i=1;i<=4;++i){
	  for(j=1;j<=3;++j){ 
		for(k=1;k<=10;++k){
????????????????????????printf(" %d",count[i][j][k]);
      ?????????if (k==10) printf ("\n");
      }
        if ((j==3)&&(i!=4)) printf ("####################\n");
	 }
    }	

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:31:1: error: expected expression before '?' token
   31 | ????????????????????????printf(" %d",count[i][j][k]);
      | ^
main.c:32:7: error: expected expression before '?' token
   32 |       ?????????if (k==10) printf ("\n");
      |       ^
Language: C

#include <stdio.h>
#include <string.h>
int main(){
int max;
int i,i1,i2,i3;
int q1,q2,q3,q4;
int p[4][3][10]={{{0,0,0,0,0,0,0,0,0,0},{0,0,0,0,0,0,0,0,0,0},{0,0,0,0,0,0,0,0,0,0}},{{0,0,0,0,0,0,0,0,0,0},{0,0,0,0,0,0,0,0,0,0},{0,0,0,0,0,0,0,0,0,0}},{{0,0,0,0,0,0,0,0,0,0},{0,0,0,0,0,0,0,0,0,0},{0,0,0,0,0,0,0,0,0,0}},{{0,0,0,0,0,0,0,0,0,0},{0,0,0,0,0,0,0,0,0,0},{0,0,0,0,0,0,0,0,0,0}}};
????????scanf("%d\n", &max);
??
for(i = 0;i < max;i++){
????????scanf("%d %d %d %d", &q1, &q2, &q3, &q4);
????????p[q1-1][q2-1][q3-1] = q4;
}
for(i1 = 0;i1 < 4; i1++){
????????for(i2 = 0;i2 < 3; i2++){
????????????????for(i3 = 0;i3 < 10;i3++){
????????????????????????printf("%d ",p[i1][i2][i3]);
????????????????}
????????????????printf("\n");
????????}
????????if(i1<3){
????????????????printf("####################\n",0);
????????}
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:1: error: expected expression before '?' token
    8 | ????????scanf("%d\n", &max);
      | ^
main.c:9:1: error: expected expression before '?' token
    9 | ??
      | ^
Language: C

#include <stdio.h>
??
int main()
{
????????int data, i, b, f, r, v, rooms[4][3][10] = {};
????????scanf("%d", &data);
????????for (i = 0; i < data; i++) {
????????????????scanf("%d %d %d %d", &b, &f, &r, &v);
????????????????rooms[b - 1][f - 1][r - 1] += v;
????????}
????????for (b = 0; b < 4; b++) {
????????????????if (b != 0) {
????????????????????????printf("####################\n");
????????????????}
????????????????for (f = 0; f < 3; f++) {
????????????????????????for (r = 0; r < 10; r++) {
????????????????????????????????printf(" %d", rooms[b][f][r]);
????????????????????????}
????????????????????????printf("\n");
????????????????}
????????}
????????return 0;
}

Compiler output:
main.c:2:1: error: expected identifier or '(' before '?' token
    2 | ??
      | ^
Language: C

#include <stdio.h>
int main()
{
????????int data, i, b, f, r, v, rooms[4][3][10] = {};
????????scanf("%d", &data);
????????for (i = 0; i < data; i++) {
????????????????scanf("%d %d %d %d", &b, &f, &r, &v);
????????????????rooms[b - 1][f - 1][r - 1] += v;
????????}
????????for (b = 0; b < 4; b++) {
????????????????if (b != 0) {
????????????????????????printf("####################\n");
????????????????}
????????????????for (f = 0; f < 3; f++) {
????????????????????????for (r = 0; r < 10; r++) {
????????????????????????????????printf(" %d", rooms[b][f][r]);
????????????????????????}
????????????????????????printf("\n");
????????????????}
????????}
????????return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:1: error: expected expression before '?' token
    4 | ????????int data, i, b, f, r, v, rooms[4][3][10] = {};
      | ^
main.c:5:1: error: expected expression before '?' token
    5 | ????????scanf("%d", &data);
      | ^
main.c:5:22: error: 'data' undeclared (first use in this function)
    5 | ????????scanf("%d", &data);
      |                      ^~~~
main.c:5:22: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:1: error: expected expression before '?' token
    6 | ????????for (i = 0; i < data; i++) {
      | ^
Language: C

#include <stdio.h>
int main()
{
????????int data, i, b, f, r, v, rooms[4][3][10] = {};
????????scanf("%d", &data);
????????for(i = 0; i < data; i++)
{
????????????????scanf("%d %d %d %d", &b, &f, &r, &v);
????????????????rooms[b - 1][f - 1][r - 1] += v;
????????}
????????for(b = 0; b < 4; b++)
{
????????????????if (b != 0)
{
????????????????????????printf("####################\n");
????????????????}
????????????????for (f = 0; f < 3; f++)
{
????????????????????????for (r = 0; r < 10; r++)
{
????????????????????????????????printf(" %d", rooms[b][f][r]);
????????????????????????}
????????????????????????printf("\n");
????????????????}
????????}
????????return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:1: error: expected expression before '?' token
    4 | ????????int data, i, b, f, r, v, rooms[4][3][10] = {};
      | ^
main.c:5:1: error: expected expression before '?' token
    5 | ????????scanf("%d", &data);
      | ^
main.c:5:22: error: 'data' undeclared (first use in this function)
    5 | ????????scanf("%d", &data);
      |                      ^~~~
main.c:5:22: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:1: error: expected expression before '?' token
    6 | ????????for(i = 0; i < data; i++)
      | ^
Language: C

#include <stdio.h>
int main()
{
????????int data, i, b, f, r, v, rooms[4][3][10] = {};
????????scanf("%d", &data);
????????for(i = 0; i < data; i++)
{
????????????????scanf("%d %d %d %d", &b, &f, &r, &v);
????????????????rooms[b - 1][f - 1][r - 1] += v;
????????}
????????for(b = 0; b < 4; b++)
{
????????????????if (b != 0)
{
????????????????????????printf("####################\n");
????????????????}
????????????????for (f = 0; f < 3; f++)
{
????????????????????????for (r = 0; r < 10; r++)
{
????????????????????????????????printf("%d", rooms[b][f][r]);
????????????????????????}
????????????????????????printf("\n");
????????????????}
????????}
????????return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:1: error: expected expression before '?' token
    4 | ????????int data, i, b, f, r, v, rooms[4][3][10] = {};
      | ^
main.c:5:1: error: expected expression before '?' token
    5 | ????????scanf("%d", &data);
      | ^
main.c:5:22: error: 'data' undeclared (first use in this function)
    5 | ????????scanf("%d", &data);
      |                      ^~~~
main.c:5:22: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:1: error: expected expression before '?' token
    6 | ????????for(i = 0; i < data; i++)
      | ^
Language: C

#include <stdio.h>
int main()
{
????????int data, i, b, f, r, v, rooms[4][3][10] = {};
????????scanf("%d", &data);
????????for(i = 0; i < data; i++)
{
????????????????scanf("%d %d %d %d", &b, &f, &r, &v);
????????????????rooms[b - 1][f - 1][r - 1] += v;
????????}
????????for(b = 0; b < 4; b++)
{
????????????????if (b != 0)
{
????????????????????????printf("####################\n");
????????????????}
????????????????for (f = 0; f < 3; f++)
{
????????????????????????for (r = 0; r < 10; r++)
{
????????????????????????????????printf("%d", rooms[b][f][r]);
????????????????????????}
????????????????????????printf("\n");
????????????????}
????????
????????return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:1: error: expected expression before '?' token
    4 | ????????int data, i, b, f, r, v, rooms[4][3][10] = {};
      | ^
main.c:5:1: error: expected expression before '?' token
    5 | ????????scanf("%d", &data);
      | ^
main.c:5:22: error: 'data' undeclared (first use in this function)
    5 | ????????scanf("%d", &data);
      |                      ^~~~
main.c:5:22: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:1: error: expected expression before '?' token
    6 | ????????for(i = 0; i < data; i++)
      | ^
main.c:27:1: error: expected declaration or statement at end of input
   27 | }
      | ^
Language: C

#include <stdio.h>
int main()
{
????????int data, i, b, f, r, v, rooms[4][3][10] = {};
????????scanf("%d", &data);
????????for(i = 0; i < data; i++)
{
????????????????scanf("%d %d %d %d", &b, &f, &r, &v);
????????????????rooms[b - 1][f - 1][r - 1] += v;
????????}
????????for(b = 0; b < 4; b++)
{
????????????????if (b != 0)
{
????????????????????????printf("####################\n");
????????????????}
????????????????for (f = 0; f < 3; f++)
{
????????????????????????for (r = 0; r < 10; r++)
{
????????????????????????????????printf("%d", rooms[b][f][r]);
????????????????????????}
????????????????????????printf("\n");
????????????????}
printf("\n");
????????}
????????return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:1: error: expected expression before '?' token
    4 | ????????int data, i, b, f, r, v, rooms[4][3][10] = {};
      | ^
main.c:5:1: error: expected expression before '?' token
    5 | ????????scanf("%d", &data);
      | ^
main.c:5:22: error: 'data' undeclared (first use in this function)
    5 | ????????scanf("%d", &data);
      |                      ^~~~
main.c:5:22: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:1: error: expected expression before '?' token
    6 | ????????for(i = 0; i < data; i++)
      | ^
Language: C

#include <stdio.h>
int main()
{
????????int data, i, b, f, r, v, rooms[4][3][10] = {};
????????scanf("%d", &data);
????????for(i = 0; i < data; i++)
{
????????????????scanf("%d %d %d %d", &b, &f, &r, &v);
????????????????rooms[b - 1][f - 1][r - 1] += v;
????????}
????????for(b = 0; b < 4; b++)
{
????????????????if (b != 0)
{
????????????????????????printf("####################\n");
????????????????}
????????????????for (f = 0; f < 3; f++)
{
????????????????????????for (r = 0; r < 10; r++)
{
????????????????????????????????printf("%d", rooms[b][f][r]);
????????????????????????}
????????????????????????
????????????????}
printf("\n");
????????}
????????return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:1: error: expected expression before '?' token
    4 | ????????int data, i, b, f, r, v, rooms[4][3][10] = {};
      | ^
main.c:5:1: error: expected expression before '?' token
    5 | ????????scanf("%d", &data);
      | ^
main.c:5:22: error: 'data' undeclared (first use in this function)
    5 | ????????scanf("%d", &data);
      |                      ^~~~
main.c:5:22: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:1: error: expected expression before '?' token
    6 | ????????for(i = 0; i < data; i++)
      | ^
Language: C

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

Compiler output:
main.c:2:1: error: expected identifier or '(' before '?' token
    2 | ??
      | ^
Language: C

#include <stdio.h> 
??
int main(void)
{
????????int count[4][3][10] = {0};
????????int n, b, f, r, v, i, j, k;
??
????????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] = 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+1) < 4)
????????????????{
????????????????????????printf("####################\n");
????????????????}
????????}
????????return 0;
}

Compiler output:
main.c:2:1: error: expected identifier or '(' before '?' token
    2 | ??
      | ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:1: error: expected expression before '?' token
    4 | ????int i, j, k, l, n, b, f, r, v;
      | ^
main.c:5:1: error: expected expression before '?' token
    5 | ????int count[4][3][10] = {};
      | ^
main.c:6:1: error: expected expression before '?' token
    6 | ????scanf("%d",&n);
      | ^
main.c:6:17: error: 'n' undeclared (first use in this function)
    6 | ????scanf("%d",&n);
      |                 ^
main.c:6:17: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:1: error: expected expression before '?' token
    7 | ????for(i = 0; i < n; i++){
      | ^
Language: C

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

Compiler output:
main.c:2:1: error: expected identifier or '(' before '?' token
    2 | ??
      | ^
Language: C

#include <stdio.h>
#define NUMBER (4)
#define ROW (3*4)
#define COLUMN (10)

int main(){
int i,j,k,n,b,f,r,v,data[NUMBER][ROW][COLUMN]={};
scanf("%d",&n);
for(i=0;i<n;i++){
   scanf("%d %d %d %d",&b,&f,&r,&v);
   data[b][f][r]=v;
}
for(i=0;i<NUMBER;i++){
   for(j=0;j<ROW;j++){
      for(k=0;k<COLUMN;k++){
         printf(" %d",data[i][j][k]);
      }
      printf("\n");
   }
   if(i%3==2&&i!=(NUMBER-1){
      printf("####################\n");
   }
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:20:28: error: expected ')' before '{' token
   20 |    if(i%3==2&&i!=(NUMBER-1){
      |      ~                     ^
      |                            )
main.c:23:1: error: expected expression before '}' token
   23 | }
      | ^