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

#include <stdio.h>

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

	scanf("%d", &n);

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

		w[b - 1][f - 1][r - 1]+ = v;
		if (w[b - 1][f - 1][r - 1] < 0)
		{
			w[b - 1][f - 1][r - 1] = 0;
		}
		if (w[b - 1][f - 1][r - 1] > 9)
		{
			w[b - 1][f - 1][r - 1] = 9;
		}
	}
	for (i = 0; i < 4; i++)
	{
		for ( m = 0; m < 3; m++)
		{
			for (t = 0; t < 10; t++)
			{
				printf(" %d", w[i][m][t]);
			}
			printf("\n");
		}
		if (i!=3)
		{
			printf("####################\n");
		}
	}
	
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:13:41: error: expected expression before '=' token
   13 |                 w[b - 1][f - 1][r - 1]+ = v;
      |                                         ^
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);
 
}


Compiler output:
main.c:3:1: error: unknown type name 'using'
    3 | using namespace std;
      | ^~~~~
main.c:3:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'
    3 | using namespace std;
      |                 ^~~
Language: C

#include <stdio.h>

void array_reset( int*, int );

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

void array_reset( int *array, int size )
{
    int i;
    
    for( i = 0; i < size; i++ ){
        *( array + i ) = 0;
    }
}



Compiler output:
main.c: In function 'main':
main.c:12:26: error: invalid type argument of unary '*' (have 'int')
   12 |             array_reset( *house[i][j][0], 10 )
      |                          ^~~~~~~~~~~~~~~
main.c:12:47: error: expected ';' before '}' token
   12 |             array_reset( *house[i][j][0], 10 )
      |                                               ^
      |                                               ;
   13 |         }
      |         ~                                      
main.c:16:19: error: 'n' undeclared (first use in this function)
   16 |     scanf( "%d", &n );
      |                   ^
main.c:16:19: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

void array_reset( int*, int );

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

void array_reset( int *array, int size )
{
    int i;
    
    for( i = 0; i < size; i++ ){
        *( array + i ) = 0;
    }
}



Compiler output:
main.c: In function 'main':
main.c:12:47: error: expected ';' before '}' token
   12 |             array_reset( &house[i][j][0], 10 )
      |                                               ^
      |                                               ;
   13 |         }
      |         ~                                      
main.c:16:19: error: 'n' undeclared (first use in this function)
   16 |     scanf( "%d", &n );
      |                   ^
main.c:16:19: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

void array_reset( int*, int );

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

void array_reset( int *array, int size )
{
    int i;
    
    for( i = 0; i < size; i++ ){
        *( array + i ) = 0;
    }
}



Compiler output:
main.c: In function 'main':
main.c:16:19: error: 'n' undeclared (first use in this function)
   16 |     scanf( "%d", &n );
      |                   ^
main.c:16:19: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>

int main(){

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

scanf("%d"&n);

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

for(h = 0; h < 4; h++){
  for(k = 0; k < 3; k++){
    for(j = 0; j < 10; j++){
    pritnf("%d ",a[h][k][j]);
    }
    print("\n");
  }
  printf("####################\n");
}

return 0;
}


Compiler output:
main.c: In function 'main':
main.c:6:15: error: expected expression before '{' token
    6 | a[4][3][10] = {0};
      |               ^
main.c:8:11: error: invalid operands to binary & (have 'char *' and 'int')
    8 | scanf("%d"&n);
      |       ~~~~^
      |       |
      |       char *
main.c:11:7: error: expected expression before '%' token
   11 | scanf(%d %d %d %d,&b,&f,&r,&v);
      |       ^
main.c:18:5: error: implicit declaration of function 'pritnf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   18 |     pritnf("%d ",a[h][k][j]);
      |     ^~~~~~
      |     printf
main.c:20:5: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
   20 |     print("\n");
      |     ^~~~~
      |     printf
Language: C

#include<stdio.h>

int main(){

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

scanf("%d"&n);

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

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

return 0;
}


Compiler output:
main.c: In function 'main':
main.c:6:15: error: expected expression before '{' token
    6 | a[4][3][10] = {0};
      |               ^
main.c:8:11: error: invalid operands to binary & (have 'char *' and 'int')
    8 | scanf("%d"&n);
      |       ~~~~^
      |       |
      |       char *
main.c:11:7: error: expected expression before '%' token
   11 | scanf(%d %d %d %d,&b,&f,&r,&v);
      |       ^
main.c:18:5: error: implicit declaration of function 'pritnf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   18 |     pritnf("%d ",a[h][k][j]);
      |     ^~~~~~
      |     printf
Language: C

#include<stdio.h>

int main(){

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

scanf("%d"&n);

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

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

return 0;
}


Compiler output:
main.c: In function 'main':
main.c:8:11: error: invalid operands to binary & (have 'char *' and 'int')
    8 | scanf("%d"&n);
      |       ~~~~^
      |       |
      |       char *
main.c:11:7: error: expected expression before '%' token
   11 | scanf(%d %d %d %d,&b,&f,&r,&v);
      |       ^
main.c:18:5: error: implicit declaration of function 'pritnf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   18 |     pritnf("%d ",a[h][k][j]);
      |     ^~~~~~
      |     printf
Language: C

#include<stdio.h>

int main(){

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

scanf("%d"&n);

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

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

return 0;
}


Compiler output:
main.c: In function 'main':
main.c:8:11: error: invalid operands to binary & (have 'char *' and 'int')
    8 | scanf("%d"&n);
      |       ~~~~^
      |       |
      |       char *
main.c:18:5: error: implicit declaration of function 'pritnf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   18 |     pritnf("%d ",a[h][k][j]);
      |     ^~~~~~
      |     printf
Language: C

#include<stdio.h>

int main(){

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

scanf("%d",&n);

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

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

return 0;
}


Compiler output:
main.c: In function 'main':
main.c:18:5: error: implicit declaration of function 'pritnf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   18 |     pritnf("%d ",a[h][k][j]);
      |     ^~~~~~
      |     printf
Language: C

#include<stdio.h>

int main(){

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

scanf("%d",&n);

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

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

return 0;
}


Compiler output:
main.c: In function 'main':
main.c:18:5: error: implicit declaration of function 'pritnf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   18 |     pritnf("%d ",a[h][k][j]);
      |     ^~~~~~
      |     printf
Language: C


#include<stdio.h>

int main(){

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

scanf("%d",&n);

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

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

return 0;
}


Compiler output:
main.c: In function 'main':
main.c:19:5: error: implicit declaration of function 'pritnf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   19 |     pritnf("%d ",a[h][k][j]);
      |     ^~~~~~
      |     printf
Language: C


#include<stdio.h>

int main(){

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

scanf("%d",&n);

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

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

return 0;
}


Compiler output:
main.c: In function 'main':
main.c:19:5: error: implicit declaration of function 'pritnf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   19 |     pritnf("%d ",a[h][k][j]);
      |     ^~~~~~
      |     printf
Language: C

#include<stdio.h>

int main(){

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

scanf("%d",&n);

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

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

return 0;
}


Compiler output:
main.c: In function 'main':
main.c:18:5: error: implicit declaration of function 'pritnf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   18 |     pritnf("%d ",a[h][k][j]);
      |     ^~~~~~
      |     printf
Language: C

#include<stdio.h>

int main(){

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

scanf("%d",&n);

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

for(h = 0; h < 4; h++){
  for(k = 0; k < 3; k++){
    for(j = 0; j < 10; j++){
    pritnf("%d ",&a[h][k][j]);
    }
  printf("\n");
  }
printf("####################\n");
}

return 0;
}


Compiler output:
main.c: In function 'main':
main.c:18:5: error: implicit declaration of function 'pritnf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   18 |     pritnf("%d ",&a[h][k][j]);
      |     ^~~~~~
      |     printf
Language: C

#include<stdio.h>

int main(){

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

scanf("%d",&n);

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

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

return 0;
}


Compiler output:
main.c: In function 'main':
main.c:18:5: error: implicit declaration of function 'pritnf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   18 |     pritnf("%d ",a[h][k][j]);
      |     ^~~~~~
      |     printf
Language: C

#include <bits/stdc++.h>
#include <iostream>
 
using namespace std;
 
int main() {
    int n;
    int room[4][3][10];
    memset(room, 0, sizeof(room));
    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 i = 0; i < 4; i++) {
        for (int j = 0; j < 3; j++) {
            for (int k = 0; k < 10; k++) {
                cout << " " << room[i][j][k];
            }
            cout << endl;
        }
        if (i < 3) {
            cout << "####################" << endl;
        }
    }
}


Compiler output:
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
    1 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C

#include <stdio.c>


int  main (){
    int house[4][3][10] = {};
    int i,j,k;
    int n;

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

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

include <stdio.h>


int  main (){
    int house[4][3][10] = {};
    int i,j,k;
    int n;

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

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

#include<stdio.h>

main()
{
	int n;
	int resident[5][3][10]={};
	
	scanf("%d",&n);
	
	int i;
	
	for(i=0;i<n;i++){
		scanf(" %d %d %d %d",&b,&f,&r,&v);
		resident[b][f][r] += v;
		if(resident[b][f][r]>9){
			resident[b][f][r]=9;
		} else if(resident[b][f][r]<0){
			resident[b][f][r]=0;
		}
	}
	

	int h,j,k;
	int s;
	
	for(h=1;h<=4;h++){
		for(j=1;j<=3;j++){
			for(k=1;k<=10;k++){
				printf("%d",resident[h][j][k]);
				if(k<10){
					printf(" ");
				} else {
					printf("\n");
				}
			}
		}
		for(s=0;s<20;s++){
			printf("#");
		}
		printf("\n");
	}
}
	
	

Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main()
      | ^~~~
main.c: In function 'main':
main.c:13:39: error: 'b' undeclared (first use in this function)
   13 |                 scanf(" %d %d %d %d",&b,&f,&r,&v);
      |                                       ^
main.c:13:39: note: each undeclared identifier is reported only once for each function it appears in
main.c:13:42: error: 'f' undeclared (first use in this function)
   13 |                 scanf(" %d %d %d %d",&b,&f,&r,&v);
      |                                          ^
main.c:13:45: error: 'r' undeclared (first use in this function)
   13 |                 scanf(" %d %d %d %d",&b,&f,&r,&v);
      |                                             ^
main.c:13:48: error: 'v' undeclared (first use in this function)
   13 |                 scanf(" %d %d %d %d",&b,&f,&r,&v);
      |                                                ^
Language: C

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:4:36: error: invalid initializer
    4 |   int i,j,k,n,b,f,r,v,pe[4][3][10]=0;
      |                                    ^
Language: C

#include<stdio.h>
#define RM 10
#define FR 3
#define BL 4

int main(){
 int bfrv[RM*FR*BL-1]={};
 int m,i,j,b,f,r,v;
 scanf("%d ",&n);
 for(i=0; i<n; i++){
  scanf(" %d %d %d %d", &b, &f, &r, &v);
   brfv[b*f*r]=v;
 }
 for(i=0; i<RM*FR*BL){
  if((i+1)%RM==0){printf(" %d\n",brfv[i]);}
  else if((i+1)%RM*FR){printf("####################\n");}
  else{printf(" %d", brfv[i]);}
 }
 return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:15: error: 'n' undeclared (first use in this function)
    9 |  scanf("%d ",&n);
      |               ^
main.c:9:15: note: each undeclared identifier is reported only once for each function it appears in
main.c:12:4: error: 'brfv' undeclared (first use in this function); did you mean 'bfrv'?
   12 |    brfv[b*f*r]=v;
      |    ^~~~
      |    bfrv
main.c:14:21: error: expected ';' before ')' token
   14 |  for(i=0; i<RM*FR*BL){
      |                     ^
Language: C

#include<stdio.h>
#define RM 10
#define FR 3
#define BL 4

int main(){
 int bfrv[RM*FR*BL-1]={};
 int n,i,b,f,r,v;
 scanf("%d ",&n);
 for(i=0; i<n; i++){
  scanf(" %d %d %d %d", &b, &f, &r, &v);
   brfv[b*f*r]=v;
 }
 for(i=0; i<RM*FR*BL){
  if((i+1)%RM==0){printf(" %d\n",brfv[i]);}
  else if((i+1)%RM*FR){printf("####################\n");}
  else{printf(" %d", brfv[i]);}
 }
 return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:4: error: 'brfv' undeclared (first use in this function); did you mean 'bfrv'?
   12 |    brfv[b*f*r]=v;
      |    ^~~~
      |    bfrv
main.c:12:4: note: each undeclared identifier is reported only once for each function it appears in
main.c:14:21: error: expected ';' before ')' token
   14 |  for(i=0; i<RM*FR*BL){
      |                     ^
Language: C

#include<stdio.h>
#define RM 10
#define FR 3
#define BL 4

int main(){
 int bfrv[RM*FR*BL-1]={};
 int n,i,b,f,r,v;
 scanf("%d ",&n);
 for(i=0; i<n; i++){
  scanf(" %d %d %d %d", &b, &f, &r, &v);
   bfrv[b*f*r]=v;
 }
 for(i=0; i<RM*FR*BL){
  if((i+1)%RM==0){printf(" %d\n",bfrv[i]);}
  else if((i+1)%RM*FR){printf("####################\n");}
  else{printf(" %d", bfrv[i]);}
 }
 return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:21: error: expected ';' before ')' token
   14 |  for(i=0; i<RM*FR*BL){
      |                     ^
Language: C

#include<stdio.h>
#define RM 10
#define FR 3
#define BL 4

int main(){
 int bfrv[RM*FR*BL-1]={};
 int n,i,b,f,r,v;
 scanf("%d ",&n);
 for(i=0; i<n; i++){
  scanf(" %d %d %d %d", &b, &f, &r, &v);
   bfrv[b*f*r]=v;
 }
 for(i=0; i<RM*FR*BL){
  if((i+1)%RM==0){printf(" %d\n",bfrv[i]);}
  else if((i+1)%RM*FR==0){printf("####################\n");}
  else{printf(" %d", bfrv[i]);}
 }
 return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:21: error: expected ';' before ')' token
   14 |  for(i=0; i<RM*FR*BL){
      |                     ^
Language: C

#include<stdio.h>
#define RM 10
#define FR 3
#define BL 4

int main(){
 int bfrv[BL-1][FR-1][RM-1]={};
 int n,i,j,l,b,f,r,v;
 scanf("%d ",&n);
 for(i=0; i<n; i++){
  scanf(" %d %d %d %d", &b, &f, &r, &v);
   bfrv[b][f][r]=v;
 }
 for(i=0; i<BL;i++){
  for(j=0; j<FR; J++){
   for(l=0; l<RM; l++){
    {printf(" %d",bfrv[i]);}
   }
   printf("\n")
  }
  printf("####################\n")
 }
 return 0;
}

Compiler output:
main.c: In function 'main':
main.c:15:18: error: 'J' undeclared (first use in this function)
   15 |   for(j=0; j<FR; J++){
      |                  ^
main.c:15:18: note: each undeclared identifier is reported only once for each function it appears in
main.c:19:16: error: expected ';' before '}' token
   19 |    printf("\n")
      |                ^
      |                ;
   20 |   }
      |   ~             
main.c:21:35: error: expected ';' before '}' token
   21 |   printf("####################\n")
      |                                   ^
      |                                   ;
   22 |  }
      |  ~
Language: C

#include<stdio.h>
#define RM 10
#define FR 3
#define BL 4

int main(){
 int bfrv[BL-1][FR-1][RM-1]={};
 int n,i,j,l,b,f,r,v;
 scanf("%d ",&n);
 for(i=0; i<n; i++){
  scanf(" %d %d %d %d", &b, &f, &r, &v);
   bfrv[b][f][r]=v;
 }
 for(i=0; i<BL;i++){
  for(j=0; j<FR; j++){
   for(l=0; l<RM; l++){
    {printf(" %d",bfrv[i]);}
   }
   printf("\n")
  }
  printf("####################\n")
 }
 return 0;
}

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

#include<stdio.h>
#define RM 10
#define FR 3
#define BL 4

int main(){
 int bfrv[BL-1][FR-1][RM-1]={};
 int n,i,j,l,b,f,r,v;
 scanf("%d ",&n);
 for(i=0; i<n; i++){
  scanf(" %d %d %d %d", &b, &f, &r, &v);
   bfrv[b][f][r]=v;
 }
 for(i=0; i<BL;i++){
  for(j=0; j<FR; j++){
   for(l=0; l<RM; l++){
    {printf(" %d",bfrv[i]);}
   }
   printf("\n");
  }
  printf("####################\n")
 }
 return 0;
}

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

#include<stdio.h>
#define RM 10
#define FR 3
#define BL 4

int main(){
 int bfrv[BL-1][FR-1][RM-1]={};
 for(i=0; i<BL;i++){
  for(j=0; j<FR; j++){
   for(l=0; l<RM; l++){
    bfr[i][j][l]=0;
   }
  }
 }
 int n,i,j,l,b,f,r,v;
 scanf(" %d",&n);
 for(i=0; i<n; i++){
  scanf(" %d %d %d %d", &b, &f, &r, &v);
  bfrv[b][f][r]= bfrv[b][f][r] + v;
 }
 for(i=0; i<BL;i++){
  for(j=0; j<FR; j++){
   for(l=0; l<RM; l++){
    printf(" %d",bfrv[i]);
   }
   printf("\n");
  }
  if(i==3){}
  else{printf("####################\n");}
 }
 return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:6: error: 'i' undeclared (first use in this function)
    8 |  for(i=0; i<BL;i++){
      |      ^
main.c:8:6: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:7: error: 'j' undeclared (first use in this function)
    9 |   for(j=0; j<FR; j++){
      |       ^
main.c:10:8: error: 'l' undeclared (first use in this function)
   10 |    for(l=0; l<RM; l++){
      |        ^
main.c:11:5: error: 'bfr' undeclared (first use in this function); did you mean 'bfrv'?
   11 |     bfr[i][j][l]=0;
      |     ^~~
      |     bfrv
Language: C

#include<stdio.h>
#define RM 10
#define FR 3
#define BL 4

int main(){
 int bfrv[BL-1][FR-1][RM-1]={};
 int n,i,j,l,b,f,r,v;
 for(i=0; i<BL;i++){
  for(j=0; j<FR; j++){
   for(l=0; l<RM; l++){
    bfr[i][j][l]=0;
   }
  }
 }
 scanf(" %d",&n);
 for(i=0; i<n; i++){
  scanf(" %d %d %d %d", &b, &f, &r, &v);
  bfrv[b][f][r]= bfrv[b][f][r] + v;
 }
 for(i=0; i<BL;i++){
  for(j=0; j<FR; j++){
   for(l=0; l<RM; l++){
    printf(" %d",bfrv[i]);
   }
   printf("\n");
  }
  if(i==3){}
  else{printf("####################\n");}
 }
 return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:5: error: 'bfr' undeclared (first use in this function); did you mean 'bfrv'?
   12 |     bfr[i][j][l]=0;
      |     ^~~
      |     bfrv
main.c:12:5: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
#define RM 10
#define FR 3
#define BL 4
 
int main(){
 int bfrv[BL-1][FR-1][RM-1]={};
 int n,i,j,l,b,f,r,v;
 scanf(" %d",&n);
 for(i=0; i<n; i++){
  scanf(" %d %d %d %d", &b, &f, &r, &v);
  if(v<0 &&brfv[b][r][f] == 0){}
  else{bfrv[b][f][r]= bfrv[b][f][r] + v;}
 }
 for(i=0; i<BL;i++){
  for(j=0; j<FR; j++){
   for(l=0; l<RM; l++){
    printf(" %d",bfrv[i][j][l]);
   }
   printf("\n");
  }
  if(i==3){}
  else{printf("####################\n");}
 }
 return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:12: error: 'brfv' undeclared (first use in this function); did you mean 'bfrv'?
   12 |   if(v<0 &&brfv[b][r][f] == 0){}
      |            ^~~~
      |            bfrv
main.c:12:12: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
#define RM 10
#define FR 3
#define BL 4
 
int main(){
 int bfrv[BL-1][FR-1][RM-1]={};
 int n,i,j,l,b,f,r,v;
 scanf(" %d",&n);
 for(i=0; i<n; i++){
  scanf(" %d %d %d %d", &b, &f, &r, &v);
  if(v<0 && brfv[b][r][f] == 0){}
  else{bfrv[b][f][r]= bfrv[b][f][r] + v;}
 }
 for(i=0; i<BL;i++){
  for(j=0; j<FR; j++){
   for(l=0; l<RM; l++){
    printf(" %d",bfrv[i][j][l]);
   }
   printf("\n");
  }
  if(i==3){}
  else{printf("####################\n");}
 }
 return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:13: error: 'brfv' undeclared (first use in this function); did you mean 'bfrv'?
   12 |   if(v<0 && brfv[b][r][f] == 0){}
      |             ^~~~
      |             bfrv
main.c:12:13: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
#define RM 10
#define FR 3
#define BL 4
 
int main(){
 int bfrv[BL-1][FR-1][RM-1]={};
 int n,i,j,k,b,f,r,v;
 scanf(" %d",&n);
 for(i=0; i<n; i++){
  scanf(" %d %d %d %d", &b, &f, &r, &v);
  bfrv[b-1][f-1][r-1] = bfrv[b-1][f-1][r-1] + v;
 }
 for(i=0; i<BL;i++){
  for(j=0; j<FR; j++){
   for(k=0; k<RM; l++){
    printf(" %d",bfrv[i][j][k]);
   }
   printf("\n");
  }
  if(i==3){}
  else{printf("####################\n");}
 }
 return 0;
}

Compiler output:
main.c: In function 'main':
main.c:16:19: error: 'l' undeclared (first use in this function)
   16 |    for(k=0; k<RM; l++){
      |                   ^
main.c:16:19: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <iostream>
#include <cstring>
using namespace std;
int main(){	
	int room[4][3][10],num,a, b, c, d;
	memset(room, 0, sizeof(room));
	cin >> num;
	for (int i = 0; i < num; i++){	
		cin >> a >> b >> c >> d ;
		room[a - 1][b - 1][c - 1] += d;
	}
	for (a = 0; a < 4; a++){
		for (b = 0; b < 3; b++){
			for (int c = 0; c < 10; c++)
				cout << " " << room[a][b][c];
			cout << endl;
		}
		if(a != 3)cout << "####################" << endl;
	}
}

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

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

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


#include <stdio.h>
int main(void)
{
int n, b, f, r, v, i, j, k;
int room[5][4][11];

scanf("%d",&n);

while(n > 0){
scanf("%d %d %d %d",&b,&f,&r,&v);
room[b][f][r] += v;
n --;
}

for(i = 1; i <= 4; i++){
 for(j = 1; j <= 4; j++){
  for(k = 1; k <= 10; k++)
printf("%2d",room[i][j][k]);

printf("\n");
}
if(i != 4){
n = 0;
while(n < 20){
putchar('#');
n++;
}
}

return 0;
}

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


#include<stdio.h>

int main (){

 int b,f,r,v,i,t,n,s; 
 int array[10][10][10];

   scanf("%d",&n);
   
   for(i=0;i???n;i++){
      scanf("%d %d %d %d",&b,&f,&r,&v);
      array[b][f][r] += v;
   }
   for(i=0;i???4;i++){
   for(t=0;t???3;t++){
   for(s=0,s???10,s++){

       printf("%d",arrray[b][f][r]);
       if(s != 9) printf(" ");
    }
     printf("\n");
    }
    printf("###################\n");
    }

return 0;

}

Compiler output:
main.c: In function 'main':
main.c:11:14: error: expected expression before '?' token
   11 |    for(i=0;i???n;i++){
      |              ^
main.c:15:14: error: expected expression before '?' token
   15 |    for(i=0;i???4;i++){
      |              ^
main.c:17:22: error: expected expression before ')' token
   17 |    for(s=0,s???10,s++){
      |                      ^
main.c:19:20: error: 'arrray' undeclared (first use in this function); did you mean 'array'?
   19 |        printf("%d",arrray[b][f][r]);
      |                    ^~~~~~
      |                    array
main.c:19:20: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

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

Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main(void)
      | ^~~~
main.c: In function 'main':
main.c:5:37: error: redeclaration of 'b' with no linkage
    5 |         int A[4][3][10],n,b,f,r,v,a,b,c;
      |                                     ^
main.c:5:27: note: previous declaration of 'b' with type 'int'
    5 |         int A[4][3][10],n,b,f,r,v,a,b,c;
      |                           ^
Language: C

#include <stdio.h>

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

Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main(void)
      | ^~~~
main.c:32:2: error: expected identifier or '(' before ']' token
   32 | }]
      |  ^
Language: C

#include<stdio.h>
int main(){
int zyo[5][5][11]={0},mune,kai,hidari,hito,n;
int main(){
int a,b,c,d,e,f,g;
scanf("%d",&n);
for(a=0;a<n;a++){
scanf("%d %d %d %d",&mune,&kai,&hidari,&hito);
zyo[mune][kai][hidari]+=hito;
}
for(a=1;a<5;a++){
for(b=1;b<5;b++){
for(c=1;c<11;c++){
printf("%d",zyo[a][b][c]);
if(c!=10)
printf(" ");
else
printf("\n");
}
if(b!=4)
printf("********************\n");
}
}
retur n0;
}

Compiler output:
main.c: In function 'main':
main.c:24:1: error: unknown type name 'retur'
   24 | retur n0;
      | ^~~~~
main.c: In function 'main':
main.c:25:1: error: expected declaration or statement at end of input
   25 | }
      | ^
Language: C

#include <stdio.h>
#include <string.h>

int main()
{
	int  i,n;
	char dt[4][3][10];
	char wk[10];
    char *p,*wk_p;
	int wk_dt[4];

	memset(wk,'\0',sizeof(wk));
	memset(dt,'\0',sizeof(dt));
	gets(wk);
	sscanf(wk,"%d",&n);

	for (i=0 ; i<n ; i++) {
		gets_s(wk);
		p = wk;
		p=strtok(p," ");

        /*-- b   --*/
		sscanf(p,"%d",&wk_dt[0]);
	    p=strtok(NULL," ");
		if (p==NULL) {
			printf("ERROR\n");
		}
        /*-- f   --*/
		sscanf(p,"%d",&wk_dt[1]);
        /*-- r   --*/
	    p=strtok(NULL," ");
		if (p==NULL) {
			printf("ERROR\n");
		}
		sscanf(p,"%d",&wk_dt[2]);
        /*-- v   --*/
	    p=strtok(NULL," ");
		if (p==NULL) {
			printf("ERROR\n");
		}
		sscanf(p,"%d",&wk_dt[3]);

		dt[wk_dt[0]-1][wk_dt[1]-1][wk_dt[2]-1] += wk_dt[3];
	}

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

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:9: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
   14 |         gets(wk);
      |         ^~~~
      |         fgets
main.c:18:17: error: implicit declaration of function 'gets_s' [-Wimplicit-function-declaration]
   18 |                 gets_s(wk);
      |                 ^~~~~~
main.c:46:13: error: 'k' undeclared (first use in this function)
   46 |         for(k=0 ; k<4 ; k++) {
      |             ^
main.c:46:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:48:29: error: 'a' undeclared (first use in this function)
   48 |                         for(a=0 ; a<10 ; a++) {
      |                             ^
Language: C

#include <stdio.h>
#include <string.h>

int main()
{
	int  i,n;
	char dt[4][3][10];
	char wk[10];
    char *p,*wk_p;
	int wk_dt[4];

	memset(wk,'\0',sizeof(wk));
	memset(dt,'\0',sizeof(dt));
	gets(wk);
	sscanf(wk,"%d",&n);

	for (i=0 ; i<n ; i++) {
		gets(wk);
		p = wk;
		p=strtok(p," ");

        /*-- b   --*/
		sscanf(p,"%d",&wk_dt[0]);
	    p=strtok(NULL," ");
		if (p==NULL) {
			printf("ERROR\n");
		}
        /*-- f   --*/
		sscanf(p,"%d",&wk_dt[1]);
        /*-- r   --*/
	    p=strtok(NULL," ");
		if (p==NULL) {
			printf("ERROR\n");
		}
		sscanf(p,"%d",&wk_dt[2]);
        /*-- v   --*/
	    p=strtok(NULL," ");
		if (p==NULL) {
			printf("ERROR\n");
		}
		sscanf(p,"%d",&wk_dt[3]);

		dt[wk_dt[0]-1][wk_dt[1]-1][wk_dt[2]-1] += wk_dt[3];
	}

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

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:9: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
   14 |         gets(wk);
      |         ^~~~
      |         fgets
main.c:46:13: error: 'k' undeclared (first use in this function)
   46 |         for(k=0 ; k<4 ; k++) {
      |             ^
main.c:46:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:48:29: error: 'a' undeclared (first use in this function)
   48 |                         for(a=0 ; a<10 ; a++) {
      |                             ^
Language: C

#include<stdio.h>
int main(void){
int x[4][3][10];
int j,i,r,l,t,k,h,n;
for(i=0;i<4;i++){
for(r=0;r<3;r++){
for(l=0;l<10;l++){
x[i][r][l]=0;
}
}
}
scanf("%d",&j);
for(i=0;i<j;i++){
scanf(%d %d %d %d,&t,&k,&h,&n);
x[t-1][k-1][h-1]+=n;
}
for(i=0;i<4;i++){
for(r=0;r<3;r++){
for(l=0;l<10;l++){
if(l==9){printf("%d\n",x[i][r][l]);}else{
printf("%d ",x[i][r][l]);}
}
}
if(i!=3){
printf("####################\n");
}
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:7: error: expected expression before '%' token
   14 | scanf(%d %d %d %d,&t,&k,&h,&n);
      |       ^
Language: C

#include<stdio.h>
int main(void){
int x[4][3][10];
int j,i,r,l,t,k,h,n;
for(i=0;i<4;i++){
for(r=0;r<3;r++){
for(l=0;l<10;l++){
x[i][r][l]=0;
}
}
}
scanf("%d",&j);
for(i=0;i<j;i++){
scanf("%d %d %d %d",&t,&k,&h,&n);
x[t-1][k-1][h-1]+=n;
}
for(i=0;i<4;i++){
for(r=0;r<3;r++){
for(l=0;l<10;l++){
printf(" %d",x[i][r][l]);}
}
printf("\n");
}
if(i!=3){printf("####################\n");}
}
printf("\n");
return 0;
}

Compiler output:
main.c:26:8: error: expected declaration specifiers or '...' before string constant
   26 | printf("\n");
      |        ^~~~
main.c:27:1: error: expected identifier or '(' before 'return'
   27 | return 0;
      | ^~~~~~
main.c:28:1: error: expected identifier or '(' before '}' token
   28 | }
      | ^
Language: C

#include<stdio.h>
 
int main()
{
  int t[4][3][10]={0};
  int 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);
  t[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",t[i][j][k]);
      }
      printf("\n");
    }
    if(i!=4)printf("####################\n");
  }
  printf("\n")
  return 0;
}
 

Compiler output:
main.c: In function 'main':
main.c:7:15: error: 'n' undeclared (first use in this function)
    7 |   scanf("%d",&n);
      |               ^
main.c:7:15: note: each undeclared identifier is reported only once for each function it appears in
main.c:23:15: error: expected ';' before 'return'
   23 |   printf("\n")
      |               ^
      |               ;
   24 |   return 0;
      |   ~~~~~~
Language: C

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:8:8: error: expected expression before '=' token
    8 |    for(=0;k<10;k++){
      |        ^
main.c:19:8: error: expected expression before '=' token
   19 |    for(=0;k<10;k++){
      |        ^
Language: C

#incllude <stdio.h>
int main(){
 int data[4][3][10], n, b, f, r, v, i, j, k;
 scanf("%d", &n);

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

 for(i = 0; i < n; i++) {
  scanf("%d%d%d%d", &b, &f, &r, &v);
  data[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", data[i][j][k]);
   }
   printf("\n");
  }
  if(i != 3) {
  printf("####################\n");
  }
 }

Compiler output:
main.c:1:2: error: invalid preprocessing directive #incllude; did you mean #include?
    1 | #incllude <stdio.h>
      |  ^~~~~~~~
      |  include
main.c: In function 'main':
main.c:4:2: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    4 |  scanf("%d", &n);
      |  ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #incllude <stdio.h>
main.c:4:2: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    4 |  scanf("%d", &n);
      |  ^~~~~
main.c:4:2: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:22:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   22 |     printf(" %d", data[i][j][k]);
      |     ^~~~~~
main.c:22:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:22:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:22:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:24:4: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   24 |    printf("\n");
      |    ^~~~~~
main.c:24:4: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:27:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   27 |   printf("####################\n");
      |   ^~~~~~
main.c:27:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:29:2: error: expected declaration or statement at end of input
   29 |  }
      |  ^
Language: C

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

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

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

int n=0,c=0,b=0,f=0,r=0,v=0,B=0,F=0,R=0;
int x[4][3][10]={0};
scanf("%d",&n);
for(c=1;c<=n;c++){
scanf("%d %d %d %d",&b,&f,&r,&v);
x[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",x[B][F][R]);
		}
		printf("\n");
	}
	if(B<3){
	printf("####################\n");
}}

return 0;

Compiler output:
main.c: In function 'main':
main.c:23:1: error: expected declaration or statement at end of input
   23 | return 0;
      | ^~~~~~
Language: C

#include<stdio.h>
#define RIDGE 3
#define FLOOR 3
#define ROOM 10

int main(void) {
int n;
int b, f, r, v;
int dorm[RIDGE][FLOOR][ROOM] = {0};
int x,y,z;

scanf("%d", &n);

for(x = 0; x < n*4; x++) {
scanf("%d %d %d %d", b, f, r, v);
ridge[b][f][r] = v;
}

for(x = 0; x < RIDGE; x++) {
for(y = 0; y < FLOOR; y++) {
for(z = 0; z < RIDGE; z++) {
printf("%d", dorm[x][y][z]);
}
printf("\n");
}
printf("####################\n");
}

return (0);
}

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

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

	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(i=0;i<4;i++)
	{

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

		nyukyosya[b][f][r] = v;
		
		
		for(j=0;j<3;j++)
		{
			for(k=0;k<10;k++)
			{
				pritnf("%d",nyukyosya[i][j][k]);
			}

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

	

	



	return 0;
}

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

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

	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(i=0;i<4;i++)
	{

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

		nyukyosya[b][f][r] = nyukyosya[b][f][r] + v;
		
		
		
		for(j=0;j<3;j++)
		{
			for(k=0;k<10;k++)
			{
				pritnf("%d",nyukyosya[i][j][k]);
			}

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

	

	



	return 0;

}

Compiler output:
main.c: In function 'main':
main.c:46:33: error: implicit declaration of function 'pritnf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   46 |                                 pritnf("%d",nyukyosya[i][j][k]);
      |                                 ^~~~~~
      |                                 printf
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",&n);

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

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

	 	nyukyosya[b][f][r] = nyukyosya[b][f][r] + v;

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

		
		
		
		for(j=0;j<3;j++)
		{
			for(k=0;k<10;k++)
			{
				pritnf("%d",nyukyosya[i][j][k]);
			}

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

	

	

Compiler output:
main.c: In function 'main':
main.c:51:33: error: implicit declaration of function 'pritnf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   51 |                                 pritnf("%d",nyukyosya[i][j][k]);
      |                                 ^~~~~~
      |                                 printf
main.c:61:9: error: expected declaration or statement at end of input
   61 |         }
      |         ^
Language: C

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

Compiler output:
main.c:1:22: warning: extra tokens at end of #include directive
    1 | #include <stdio.h>   int main(void) {     int i,n,b,f,r,v;     int house[4][3][10] = {0};           scanf("%d",&n);     for (i=0; i<n; i++) {         scanf("%d %d %d %d",&b,&f,&r,&v);         house[b-1][f-1][r-1] += v;     }     for (b=0; b<4; b++) {         for (f=0; f<3; f++) {             for (r=0; r<10; r++) {                 printf(" %d",house[b][f][r]);             }         printf("\n");         }        if(b != 3) printf("####################\n");     }     return 0;
      |                      ^~~
/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