criyle/codenet-compile-errors huggingface dataset:
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:32: error: expected ')' before '{' token
   20 |    if((i%3==2)&&(i!=(NUMBER-1)){
      |      ~                         ^
      |                                )
main.c:23:1: error: expected expression before '}' token
   23 | }
      | ^
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:32: error: expected ')' before '{' token
   20 |    if((i%3==2)&&(i!=(NUMBER-1)){
      |      ~                         ^
      |                                )
main.c:23:4: error: expected expression before '}' token
   23 |    }
      |    ^
main.c: At top level:
main.c:25:1: error: expected identifier or '(' before 'return'
   25 | return 0;
      | ^~~~~~
main.c:26:1: error: expected identifier or '(' before '}' token
   26 | }
      | ^
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:32: error: expected ')' before '{' token
   20 |    if((i%3==2)&&(i!=(NUMBER-1)){
      |      ~                         ^
      |                                )
main.c:23:4: error: expected expression before '}' token
   23 |    }
      |    ^
Language: C

#include <stdio.h>
#define NUMBER (4)
#define ROW (3)
#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-1][f-1][r-1]++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!=(NUMBER-1))){
      printf("####################\n");
   }
   }

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:25: error: expected ';' before 'v'
   11 |    data[b-1][f-1][r-1]++v;
      |                         ^
      |                         ;
Language: C

#include <stdio.h>

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

  scanf("%d",&n);
  for(i=0 ; i < n ; i++)
    {
      scanf("%d %d %d %d",&b,&f,&r,&v);
      aparts[b-1][f-1][r-1] += v;  //n??¶????????±=????????¨?±?????????±????????°????????????????????´????????????
                                   //????????¨?±?????????±????????°??????????????????=????????¨?±??????\?±??????°???????????????= v?????????
    }
  
  for(i=0 ; i<4 ; i++)
    {
      for(j = 0 ; j <3 ; j++)
	{
	  for(k=0 ; k<10 ; k++)
	    {
	      printf(" %d",aparts[i][j][k]);
	    }
	  printf("\n");
	}

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

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

#include<stdio.h>


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


 for(i=0;i<3;i++){
    for(j=0;j<10;j++){
      a[0][i][j]=0;
      a[1][i][j]=0;
      a[2][i][j]=0;
      a[3][i][j]=0;
    }
  }
  scanf("%d",&n);

 

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

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

Compiler output:
main.c: In function 'main':
main.c:33:22: error: 'count' undeclared (first use in this function)
   33 |         printf(" %d",count[i][j][k]);
      |                      ^~~~~
main.c:33:22: 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 i,j,k;
  int b,c,d,e;
  int a[4][3][10];


 for(i=0;i<3;i++){
    for(j=0;j<10;j++){
      a[0][i][j]=0;
      a[1][i][j]=0;
      a[2][i][j]=0;
      a[3][i][j]=0;
    }
  }
  scanf("%d",&n);

 

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

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

#include <stdio.h>
int main (){
    int heya[5][4][11];
    int j,h,i,k,n,g,f,d;
    int tou,kai,room,hito;
    scanf("%d",&n);
    for(j=1; j<=4; j++){
        for(h=1; h<=3; h++){
            for(i=1; i<=10; i++){
                heya[j][h][i]=0;
        }
    }
    }
    for(k=1; k<=n; k++){
        scanf("%d %d %d %d",&tou,&kai,&room,&hito);
         heya[tou][kai][room]=heya[tou][kai][room]+hito;      }

    for(g=1; g<=4; g++){
        for(f=1; f<=3; f++){
            for(d=1; d<=10; d++){
                printf(" %d",heya[g][f][d]);
        } printf("\n\n");
    }  if(g==4){break;}       printf("####################\n\n");
    }

ret

Compiler output:
main.c: In function 'main':
main.c:26:1: error: 'ret' undeclared (first use in this function)
   26 | ret
      | ^~~
main.c:26:1: note: each undeclared identifier is reported only once for each function it appears in
main.c:26:4: error: expected ';' at end of input
   26 | ret
      |    ^
      |    ;
main.c:26:1: error: expected declaration or statement at end of input
   26 | ret
      | ^~~
Language: C

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

		// ??????????????\??????????????°?????\???????????°
		int num;
		scanf("%d", &num);

		// ???????????????
		int build[15][10];

		//???????????????left:?????????????????????right:?????????????????????
		int ridge, stage, order, man;
		int left, right;

		// ??\?????????????£?????????°?????¨?±????????????°??????????????\??????
		for (int cnt = 0; cnt < num; cnt++) {

			scanf("%d", &ridge);
			scanf("%d", &stage);
			scanf("%d", &order);
			scanf("%d", &man);

			left = (ridge - 1) * 4 + stage - 1;
			right = order - 1;

			build[left][right] += man;
		}

		// ????????????????????????
		for (left = 0; left < 15; left++) {

			if (left == 3 || left == 7 || left == 11) {

				System.out.println("####################");

			} else {

				for (right = 0; right < 10; right++) {

					switch (right) {

					case 0: case 1: case 2: case 3: case 4: case 5: case 6: case 7: case 8:
						printf("%d", build[left][right]);
						break;

					case 9:
						printf("%d\n", build[left][right]);
						break;
					}
				}
			}
		}
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:35:33: error: 'System' undeclared (first use in this function)
   35 |                                 System.out.println("####################");
      |                                 ^~~~~~
main.c:35:33: note: each undeclared identifier is reported only once for each function it appears in
main.c: At top level:
main.c:55:9: error: expected identifier or '(' before 'return'
   55 |         return 0;
      |         ^~~~~~
main.c:56:1: error: expected identifier or '(' before '}' token
   56 | }
      | ^
Language: C

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

		// ??????????????\??????????????°?????\???????????°
		int num;
		scanf("%d", &num);

		// ???????????????
		int build[15][10];

		//???????????????left:?????????????????????right:?????????????????????
		int ridge, stage, order, man;
		int left, right;

		// ??\?????????????£?????????°?????¨?±????????????°??????????????\??????
		for (int cnt = 0; cnt < num; cnt++) {

			scanf("%d", &ridge);
			scanf("%d", &stage);
			scanf("%d", &order);
			scanf("%d", &man);

			left = (ridge - 1) * 4 + stage - 1;
			right = order - 1;

			build[left][right] += man;
		}

		// ????????????????????????
		for (left = 0; left < 15; left++) {

			if (left == 3 || left == 7 || left == 11) {

				printf("####################");

			} else {

				for (right = 0; right < 10; right++) {

					switch (right) {

					case 0: case 1: case 2: case 3: case 4: case 5: case 6: case 7: case 8:
						printf("%d", build[left][right]);
						break;

					case 9:
						printf("%d\n", build[left][right]);
						break;
					}
				}
			}
		}
	}
	return 0;
}

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

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:9:9: error: 'i' undeclared (first use in this function)
    9 |     for(i = 0; i < n; i++){
      |         ^
main.c:9:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:15:13: error: 'j' undeclared (first use in this function)
   15 |         for(j = 0; j < 3; j++){
      |             ^
main.c:16:17: error: 'k' undeclared (first use in this function)
   16 |             for(k = 0; k < 10; k++){
      |                 ^
Language: C

#include <stdio.h>
??
int main(void){
????????int n;
    int i, j, k;
????????int 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(i = 0; i < 4; i++){
????????????????for(j = 0; j < 3; j++){
????????????????????????for(k = 0; k < 10; k++){
????????????????????????????????if(k) printf(" ");
????????????????????????????????printf("%d", house[i][j][k]);
????????????????????????}
????????????????????????puts("");
????????????????}
????????????????if(i != 3)
????????????????????????puts("####################");
????????}
????????return 0;
}
????

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

#include <stdio.h>
int main(void){
int n;
int i, j, k;
int 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(i = 0; i < 4; i++){
for(j = 0; j < 3; j++){
for(k = 0; k < 10; k++){
printf("%d", house[i][j][k]);
}
puts("");
}
if(i != 3)
puts("####################");
}
return 0;
}
????

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

#include <stdio.h>
int main(void){
    
    int n,b,f,r,v;
    int i,x,y;
    int room[15][20] = {0};
    
    scanf("%d",&n);
    
    for(i = 0; i < n; i++){
        scanf("%d %d %d %d",&b,&f,&r,&v);
        room[4*(b-1)+(f-1)][r-1] = v;
    }
    for(y = 0; y < 15; y++){
        for(x = 0; x < 20; x++){
            if(y == 3 || y == 7 || y == 1a1) printf("##");
            else printf(" %d",room[y][x]);
        }
        printf("\n");
    }
    
}

Compiler output:
main.c: In function 'main':
main.c:16:41: error: invalid suffix "a1" on integer constant
   16 |             if(y == 3 || y == 7 || y == 1a1) printf("##");
      |                                         ^~~
Language: C

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


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

#include<stdio.h>

int z;//パブリック変数

int main(void){//floatよりもdoubleを
int n,h[4+1][3+1][10+1],b[100+1],f[100+1],r[100+1],v[100+1],i,j,k,l;
scanf("%d",&n);
for(i=1;i<=n;i++){
	scanf("%d %d %d %d",&b[i],&f[i],&r[i],&v[i]);
}
//イニシャライズ
for(k=1;k<=4;k++){
	for(j=1;j<=3;j++){
		for(i=1;i<=10;i++){
			h[k][j][i]=0;
		}
	}
}
//人数計算
for(l=1;l<=n;l++){
		h[b[l]][f[l]][r[l]]=h[b[l]][f[l]][r[l]]+v[l];
}
//出力
for(k=1;k<=4;k++){
	for(j=1;j<=3;j++){
		for(i=1;i<=10;i++){
			printf(" %d",h[k][j][i]);
		}
		printf("\n");1
	}
	printf("####################\n");
}
return 0;
}


Compiler output:
main.c: In function 'main':
main.c:29:31: error: expected ';' before '}' token
   29 |                 printf("\n");1
      |                               ^
      |                               ;
   30 |         }
      |         ~
Language: C

#include<stdio.h>
int main(void){
        int n,i,j,x,b,f,r,v;
        int c[4][3][10];
        for(i=0;i<4;i++){
         for(j=0;j<3;j++){
          for(x=0;x<10;x++){
           c[i][j][x]=0;
          }
         }
        }
        scanf("%d",&n);

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








        for(i=0;i<3;i++){
          printf("%d %d %d %d %d %d %d %d %d %d\n",[0][i][0],c[0][i][1],[0][i][2],[0][i][3],[0][i][4],[0][i][5],[0][i][6],[0][i][7],[0][i][8],[0][i][9]); 
        }
        printf("####################\n");
        for(i=0;i<3;i++){
          printf("%d %d %d %d %d %d %d %d %d %d\n",[1][i][0],c[1][i][1],[1][i][2],[1][i][3],[1][i][4],[1][i][5],[1][i][6],[1][i][7],[1][i][8],[1][i][9]); 
        }
        printf("####################\n");
        for(i=0;i<3;i++){
          printf("%d %d %d %d %d %d %d %d %d %d\n",[2][i][0],c[2][i][1],[2][i][2],[2][i][3],[2][i][4],[2][i][5],[2][i][6],[2][i][7],[2][i][8],[2][i][9]); 
        }
        printf("####################\n");
        for(i=0;i<3;i++){
          printf("%d %d %d %d %d %d %d %d %d %d\n",[3][i][0],c[3][i][1],[3][i][2],[3][i][3],[3][i][4],[3][i][5],[3][i][6],[3][i][7],[3][i][8],[3][i][9]); 
        }
 
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:27:52: error: expected expression before '[' token
   27 |           printf("%d %d %d %d %d %d %d %d %d %d\n",[0][i][0],c[0][i][1],[0][i][2],[0][i][3],[0][i][4],[0][i][5],[0][i][6],[0][i][7],[0][i][8],[0][i][9]);
      |                                                    ^
main.c:31:52: error: expected expression before '[' token
   31 |           printf("%d %d %d %d %d %d %d %d %d %d\n",[1][i][0],c[1][i][1],[1][i][2],[1][i][3],[1][i][4],[1][i][5],[1][i][6],[1][i][7],[1][i][8],[1][i][9]);
      |                                                    ^
main.c:35:52: error: expected expression before '[' token
   35 |           printf("%d %d %d %d %d %d %d %d %d %d\n",[2][i][0],c[2][i][1],[2][i][2],[2][i][3],[2][i][4],[2][i][5],[2][i][6],[2][i][7],[2][i][8],[2][i][9]);
      |                                                    ^
main.c:39:52: error: expected expression before '[' token
   39 |           printf("%d %d %d %d %d %d %d %d %d %d\n",[3][i][0],c[3][i][1],[3][i][2],[3][i][3],[3][i][4],[3][i][5],[3][i][6],[3][i][7],[3][i][8],[3][i][9]);
      |                                                    ^
Language: C

#include <stdio.h>

int main(void)
{
	int room[4][3][10] = {0};

	int n, b, f, r, p, i, j, k;

	scanf("%d\n", &n);
	for (i = 0; i < n; i++) {
		scanf("%d %d %d %d\n", &b, &f, &r, &p);
		room[b][f][r] += p;
	}
	for (b = 0; b < 4; b++)
		for (f = 0; f < 3; f++)
			for (r = 0; r < 10; r++) {
				printf("%d", room[b][f][r]);
				if (r != 9) printf(" ");
			}
			printf("\n");
		}
		if (r != 3) printf("####################\n");
	}
}



Compiler output:
main.c:22:17: error: expected identifier or '(' before 'if'
   22 |                 if (r != 3) printf("####################\n");
      |                 ^~
main.c:23:9: error: expected identifier or '(' before '}' token
   23 |         }
      |         ^
main.c:24:1: error: expected identifier or '(' before '}' token
   24 | }
      | ^
Language: C

#include <stdio.h>

int main(void)
{
	int room[4][3][10] = {0};

	int n, b, f, r, p, i, j, k;

	scanf("%d\n", &n);
	for (i = 0; i < n; i++) {
		scanf("%d %d %d %d\n", &b, &f, &r, &p);
		room[b][f][r] += p;
	}
	for (b = 0; b < 4; b++)
		for (f = 0; f < 3; f++)
			for (r = 0; r < 10; r++) {
				printf("%d", room[b][f][r]);
				if (r != 9) printf(" ");
			}
			printf("\n");
		}
		if (b != 3) printf("####################\n");
	}
}



Compiler output:
main.c:22:17: error: expected identifier or '(' before 'if'
   22 |                 if (b != 3) printf("####################\n");
      |                 ^~
main.c:23:9: error: expected identifier or '(' before '}' token
   23 |         }
      |         ^
main.c:24:1: error: expected identifier or '(' before '}' token
   24 | }
      | ^
Language: C

#include<stdio.h>
int main(){
    unsigned int num;
    undigned int house[4][3][10];
    unsigned int bil;
    unsigned int flor;
    unsigned int room;
    signed int  riside;
    undigned int i, j, k;
    for(i = 0;i < 4;i++){
        for(j = 0;j < 3;j++){
            for(k = 0;k < 10;k++){
                house[i][j][k] = 0;
            }
        }
    }
    scanf("%d", &num);
    for(i = 0;i < num;i++){
        scanf("%d %d %d %d", &bil, &flor, &room, &riside);
        data[bil - 1][flor - 1][room - 1] += riside;
    }
    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){
           printf("####################\n");
        }
    }
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:4:5: error: 'undigned' undeclared (first use in this function)
    4 |     undigned int house[4][3][10];
      |     ^~~~~~~~
main.c:4:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:4:13: error: expected ';' before 'int'
    4 |     undigned int house[4][3][10];
      |             ^~~~
      |             ;
main.c:9:13: error: expected ';' before 'int'
    9 |     undigned int i, j, k;
      |             ^~~~
      |             ;
main.c:10:9: error: 'i' undeclared (first use in this function)
   10 |     for(i = 0;i < 4;i++){
      |         ^
main.c:11:13: error: 'j' undeclared (first use in this function)
   11 |         for(j = 0;j < 3;j++){
      |             ^
main.c:12:17: error: 'k' undeclared (first use in this function)
   12 |             for(k = 0;k < 10;k++){
      |                 ^
main.c:13:17: error: 'house' undeclared (first use in this function)
   13 |                 house[i][j][k] = 0;
      |                 ^~~~~
main.c:20:9: error: 'data' undeclared (first use in this function)
   20 |         data[bil - 1][flor - 1][room - 1] += riside;
      |         ^~~~
Language: C

#include<stdio.h>
int main(){
    unsigned int num;
    unsigned int house[4][3][10];
    unsigned int bil;
    unsigned int flor;
    unsigned int room;
    signed int  riside;
    undigned int i, j, k;
    for(i = 0;i < 4;i++){
        for(j = 0;j < 3;j++){
            for(k = 0;k < 10;k++){
                house[i][j][k] = 0;
            }
        }
    }
    scanf("%d", &num);
    for(i = 0;i < num;i++){
        scanf("%d %d %d %d", &bil, &flor, &room, &riside);
        data[bil - 1][flor - 1][room - 1] += riside;
    }
    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){
           printf("####################\n");
        }
    }
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:9:5: error: 'undigned' undeclared (first use in this function)
    9 |     undigned int i, j, k;
      |     ^~~~~~~~
main.c:9:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:13: error: expected ';' before 'int'
    9 |     undigned int i, j, k;
      |             ^~~~
      |             ;
main.c:10:9: error: 'i' undeclared (first use in this function)
   10 |     for(i = 0;i < 4;i++){
      |         ^
main.c:11:13: error: 'j' undeclared (first use in this function)
   11 |         for(j = 0;j < 3;j++){
      |             ^
main.c:12:17: error: 'k' undeclared (first use in this function)
   12 |             for(k = 0;k < 10;k++){
      |                 ^
main.c:20:9: error: 'data' undeclared (first use in this function)
   20 |         data[bil - 1][flor - 1][room - 1] += riside;
      |         ^~~~
Language: C

#include<stdio.h>
int main(){
    unsigned int num;
    unsigned int house[4][3][10];
    unsigned int bil;
    unsigned int flor;
    unsigned int room;
    signed int  riside;
    unsigned int i, j, k;
    for(i = 0;i < 4;i++){
        for(j = 0;j < 3;j++){
            for(k = 0;k < 10;k++){
                house[i][j][k] = 0;
            }
        }
    }
    scanf("%d", &num);
    for(i = 0;i < num;i++){
        scanf("%d %d %d %d", &bil, &flor, &room, &riside);
        data[bil - 1][flor - 1][room - 1] += riside;
    }
    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){
           printf("####################\n");
        }
    }
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:20:9: error: 'data' undeclared (first use in this function)
   20 |         data[bil - 1][flor - 1][room - 1] += riside;
      |         ^~~~
main.c:20:9: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
int main(){
    unsigned short usW_D_num;                /* 情報量の格納用変数 */
    unsigned short usW_D_house[4][3][10];    /* 部屋情報の格納用変数 */
    unsigned short usW_D_bil;                /* 棟番号の格納用変数 */
    unsigned short usW_D_flor;               /* 階数の格納用変数 */
    unsigned short usW_D_room;               /* 部屋番号の格納用変数 */
    signed long  riside;              /* 入居者数の格納用変数 */
    unsigned short i, j, k;            /* ループ変数 */

    /* 配列の初期化 */
    for(i = 0;i < 4;i++){
        for(j = 0;j < 3;j++){
            for(k = 0;k < 10;k++){
                usW_D_house[i][j][k] = 0;
            }
        }
    }

    /* 情報量の入力 */
    scanf("%d", &usW_D_num);
    /* 入居者変更情報の入力 */
    for(i = 0;i < num;i++){
        /* 入居者変更情報の入力 */
        scanf("%d %d %d %d", &usW_D_bil, &usW_D_flor, &usW_D_room, &riside);
        /* 入居者変更情報の加算 */
        usW_D_house[usW_D_bil - 1][usW_D_flor - 1][usW_D_room - 1] += riside;
    }

    /* 部屋情報の出力 */
    for(i = 0;i < 4;i++){
        for(j = 0;j < 3;j++){
            for(k = 0;k < 10;k++){
                /* 各部屋の入居者の出力 */
                printf(" %d", usW_D_house[i][j][k]);
            }
            /* 階の区切り */
            printf("\n");
        }
        /* 第四棟でない場合棟を区切る */
        if(i != 3){
           /* 棟の区切り */
           printf("####################\n");
        }
    }
    return 0;
}


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

#include<stdio.h>
int main(){
    unsigned short usW_D_num;                /* 情報量の格納用変数 */
    unsigned short usW_D_house[4][3][10];    /* 部屋情報の格納用変数 */
    unsigned short usW_D_bil;                /* 棟番号の格納用変数 */
    unsigned short usW_D_flor;               /* 階数の格納用変数 */
    unsigned short usW_D_room;               /* 部屋番号の格納用変数 */
    signed long  ulW_D_riside;              /* 入居者数の格納用変数 */
    unsigned usW_C_short i, j, k;            /* ループ変数 */

    /* 配列の初期化 */
    for(usW_C_i = 0;usW_C_i < 4;usW_C_i++){
        for(usW_C_j = 0;usW_C_j < 3;usW_C_j++){
            for(usW_C_k = 0;usW_C_k < 10;usW_C_k++){
                usW_D_house[usW_C_i][usW_C_j][usW_C_k] = 0;
            }
        }
    }

    /* 情報量の入力 */
    scanf("%d", &usW_D_num);
    /* 入居者変更情報の入力 */
    for(usW_C_i = 0;usW_C_i < usW_D_num;usW_C_i++){
        /* 入居者変更情報の入力 */
        scanf("%d %d %d %d", &usW_D_bil, &usW_D_flor, &usW_D_room, &ulW_D_riside);
        /* 入居者変更情報の加算 */
        usW_D_house[usW_D_bil - 1][usW_D_flor - 1][usW_D_room - 1] += ulW_D_riside;
    }

    /* 部屋情報の出力 */
    for(usW_C_i = 0;usW_C_i < 4;usW_C_i++){
        for(usW_C_j = 0;usW_C_j < 3;usW_C_j++){
            for(usW_C_k = 0;usW_C_k < 10;usW_C_k++){
                /* 各部屋の入居者の出力 */
                printf(" %d", usW_D_house[usW_C_i][usW_C_j][usW_C_k]);
            }
            /* 階の区切り */
            printf("\n");
        }
        /* 第四棟でない場合棟を区切る */
        if(usW_C_i != 3){
           /* 棟の区切り */
           printf("####################\n");
        }
    }
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:9:26: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'i'
    9 |     unsigned usW_C_short i, j, k;            /* ループ変数 */
      |                          ^
main.c:9:26: error: 'i' undeclared (first use in this function)
main.c:9:26: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:29: error: 'j' undeclared (first use in this function)
    9 |     unsigned usW_C_short i, j, k;            /* ループ変数 */
      |                             ^
main.c:9:32: error: 'k' undeclared (first use in this function)
    9 |     unsigned usW_C_short i, j, k;            /* ループ変数 */
      |                                ^
main.c:12:9: error: 'usW_C_i' undeclared (first use in this function); did you mean 'usW_D_bil'?
   12 |     for(usW_C_i = 0;usW_C_i < 4;usW_C_i++){
      |         ^~~~~~~
      |         usW_D_bil
main.c:13:13: error: 'usW_C_j' undeclared (first use in this function)
   13 |         for(usW_C_j = 0;usW_C_j < 3;usW_C_j++){
      |             ^~~~~~~
main.c:14:17: error: 'usW_C_k' undeclared (first use in this function)
   14 |             for(usW_C_k = 0;usW_C_k < 10;usW_C_k++){
      |                 ^~~~~~~
Language: C

#include "stdio.h"

int main()
{
	int input = 0;
	int nCnt = 0;
	int a[4];
	int output[4][3][10]
	int buff = 0;
	int i = 0;
	int j = 0;
	int k = 0;

	scanf("%d", &nCnt);
	if(nCnt < 0)
	{
		return 0;
	}

	for(i = 0; i < n; i++)
	{
		//++++++++++++++++++++++++
		//a[0]:A/B/C/D
		//a[1]:Floor
		//a[2]:Row
		//a[3]:Value
		scanf("%d", &input);
		a[i] = input;

	}
	output[a[0]][a[1]][a[3]] = a[4];


	for(i = 0; i < 4; i++)
	{
		for(j = 0; j < 3; j++)
		{
			for(k = 0; k < 10; k++)
			{
				if(k == 0)		printf("%d", output[i][j][k]);
				else if(k == 9)		printf(" %d\n", output[i][j][k]);
				else(k % 9 != 0)	printf(" %d", output[i][j][k]);
			}
		}
		if(i != 3)
		{
			printf("####################\n");
		}
	}
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:8:29: error: expected ';' before 'int'
    8 |         int output[4][3][10]
      |                             ^
      |                             ;
    9 |         int buff = 0;
      |         ~~~                  
main.c:20:24: error: 'n' undeclared (first use in this function)
   20 |         for(i = 0; i < n; i++)
      |                        ^
main.c:20:24: note: each undeclared identifier is reported only once for each function it appears in
main.c:31:9: error: 'output' undeclared (first use in this function)
   31 |         output[a[0]][a[1]][a[3]] = a[4];
      |         ^~~~~~
main.c:42:56: error: expected ';' before 'printf'
   42 |                                 else(k % 9 != 0)        printf(" %d", output[i][j][k]);
      |                                                 ^~~~~~~~~~~~~~
      |                                                        ;
Language: C

#include "stdio.h"

int main()
{
	int input = 0;
	int nCnt = 0;
	int a[4];
	int output[4][3][10];
	int buff = 0;
	int i = 0;
	int j = 0;
	int k = 0;

	scanf("%d", &nCnt);
	if(nCnt < 0)
	{
		return 0;
	}

	for(i = 0; i < n; i++)
	{
		//++++++++++++++++++++++++
		//a[0]:A/B/C/D
		//a[1]:Floor
		//a[2]:Row
		//a[3]:Value
		scanf("%d", &input);
		a[i] = input;

	}
	output[a[0]][a[1]][a[3]] = a[4];


	for(i = 0; i < 4; i++)
	{
		for(j = 0; j < 3; j++)
		{
			for(k = 0; k < 10; k++)
			{
				if(k == 0)		printf("%d", output[i][j][k]);
				else if(k == 9)		printf(" %d\n", output[i][j][k]);
				else(k % 9 != 0)	printf(" %d", output[i][j][k]);
			}
		}
		if(i != 3)
		{
			printf("####################\n");
		}
	}
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:20:24: error: 'n' undeclared (first use in this function)
   20 |         for(i = 0; i < n; i++)
      |                        ^
main.c:20:24: note: each undeclared identifier is reported only once for each function it appears in
main.c:42:56: error: expected ';' before 'printf'
   42 |                                 else(k % 9 != 0)        printf(" %d", output[i][j][k]);
      |                                                 ^~~~~~~~~~~~~~
      |                                                        ;
Language: C

#include "stdio.h"

int main()
{
	int input = 0;
	int nCnt = 0;
	int a[4];
	int output[4][3][10];
	int buff = 0;
	int i = 0;
	int j = 0;
	int k = 0;

	scanf("%d", &nCnt);
	if(nCnt < 0)
	{
		return 0;
	}

	for(i = 0; i < nCnt; i++)
	{
		//++++++++++++++++++++++++
		//a[0]:A/B/C/D
		//a[1]:Floor
		//a[2]:Row
		//a[3]:Value
		scanf("%d", &input);
		a[i] = input;

	}
	output[a[0]][a[1]][a[3]] = a[4];


	for(i = 0; i < 4; i++)
	{
		for(j = 0; j < 3; j++)
		{
			for(k = 0; k < 10; k++)
			{
				if(k == 0)		printf("%d", output[i][j][k]);
				else if(k == 9)		printf(" %d\n", output[i][j][k]);
				else(k % 9 != 0)	printf(" %d", output[i][j][k]);
			}
		}
		if(i != 3)
		{
			printf("####################\n");
		}
	}
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:42:56: error: expected ';' before 'printf'
   42 |                                 else(k % 9 != 0)        printf(" %d", output[i][j][k]);
      |                                                 ^~~~~~~~~~~~~~
      |                                                        ;
Language: C

#include "stdio.h"

int main()
{
	int input = 0;
	int nCnt = 0;
	int a[4];
	int output[4][3][10];
	int buff = 0;
	int i = 0;
	int j = 0;
	int k = 0;

	scanf("%d", &nCnt);
	if(nCnt < 0)
	{
		return 0;
	}

	for(i = 0; i < nCnt; i++)
	{
		//++++++++++++++++++++++++
		//a[0]:A/B/C/D
		//a[1]:Floor
		//a[2]:Row
		//a[3]:Value
		scanf("%d", &input);
		a[i] = input;

	}
	output[a[0]][a[1]][a[3]] = a[4];


	for(i = 0; i < 4; i++)
	{
		for(j = 0; j < 3; j++)
		{
			for(k = 0; k < 10; k++)
			{
				if(k == 0)		printf("%d", output[i][j][k]);
				else if(k == 9)		printf(" %d\n", output[i][j][k]);
				else(k % 9 != 0)
				{
					printf(" %d", output[i][j][k]);
				}
			}
		}
		if(i != 3)
		{
			printf("####################\n");
		}
	}
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:42:49: error: expected ';' before '{' token
   42 |                                 else(k % 9 != 0)
      |                                                 ^
      |                                                 ;
   43 |                                 {
      |                                 ~
Language: C

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



Compiler output:
main.c: In function 'main':
main.c:5:17: error: 'n' undeclared (first use in this function)
    5 |     scanf("%d",&n);
      |                 ^
main.c:5:17: note: each undeclared identifier is reported only once for each function it appears in
main.c:23:20: warning: missing terminating " character
   23 |             printf("####################);
      |                    ^
main.c:23:20: error: missing terminating " character
   23 |             printf("####################);
      |                    ^~~~~~~~~~~~~~~~~~~~~~~
main.c:24:9: error: expected expression before '}' token
   24 |         }
      |         ^
main.c:23:20: error: expected ';' before '}' token
   23 |             printf("####################);
      |                    ^
      |                    ;
   24 |         }
      |         ~
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:23:20: warning: missing terminating " character
   23 |             printf("####################);
      |                    ^
main.c:23:20: error: missing terminating " character
   23 |             printf("####################);
      |                    ^~~~~~~~~~~~~~~~~~~~~~~
main.c:24:9: error: expected expression before '}' token
   24 |         }
      |         ^
main.c:23:20: error: expected ';' before '}' token
   23 |             printf("####################);
      |                    ^
      |                    ;
   24 |         }
      |         ~
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:23:20: warning: missing terminating " character
   23 |             printf("####################);
      |                    ^
main.c:23:20: error: missing terminating " character
   23 |             printf("####################);
      |                    ^~~~~~~~~~~~~~~~~~~~~~~
main.c:24:9: error: expected expression before '}' token
   24 |         }
      |         ^
main.c:23:20: error: expected ';' before '}' token
   23 |             printf("####################);
      |                    ^
      |                    ;
   24 |         }
      |         ~
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:23:20: warning: missing terminating " character
   23 |             printf("####################\n);
      |                    ^
main.c:23:20: error: missing terminating " character
   23 |             printf("####################\n);
      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~
main.c:24:9: error: expected expression before '}' token
   24 |         }
      |         ^
main.c:23:20: error: expected ';' before '}' token
   23 |             printf("####################\n);
      |                    ^
      |                    ;
   24 |         }
      |         ~
Language: C

#include <stdio.h>

int main(int argc, const char * argv[]) {
    int count[4][3][10]={0};
    
    int i,j,k,n;
    
    int b,f,r,v;
    
    scanf("%d",&n);
    
    for(i=0;i<n;i++){
        scanf("%d %d %d %d",&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:31:5: error: expected declaration or statement at end of input
   31 |     return 0;
      |     ^~~~~~
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:15:31: error: 'card' undeclared (first use in this function)
   15 |                 printf(" %d", card[i][j][k]);
      |                               ^~~~
main.c:15:31: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:12:19: error: expected expression before '[' token
   12 |     printf("%d ",&[i][j][k]);
      |                   ^
main.c:16:1: error: expected declaration or statement at end of input
   16 | }
      | ^
Language: C

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


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

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


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

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


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

#include<stdio.h>

int main(){

  int n;
  int b;
  int f;
  int r;
  int v;
  int i;
  int j;
  
  int A[12][10]
    for(i=0; i<12; i++)
      for(j=0; j<10; j++)
	info[i][j]=0;
    
  scanf("%d",&n);
  for(i=0; i<n i++){
    scanf("%d %d %d %d",&b,&f,&r,&v);
    info [(b-1)*3*]
      }
  return 0;
}



Compiler output:
main.c: In function 'main':
main.c:14:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'for'
   14 |     for(i=0; i<12; i++)
      |     ^~~
main.c:16:9: error: 'info' undeclared (first use in this function)
   16 |         info[i][j]=0;
      |         ^~~~
main.c:16:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:19:15: error: expected ';' before 'i'
   19 |   for(i=0; i<n i++){
      |               ^~
      |               ;
main.c:21:19: error: expected expression before ']' token
   21 |     info [(b-1)*3*]
      |                   ^
Language: C

#include<stdio.h>

int main(){

  int n;
  int b;
  int f;
  int r;
  int v;
  int i;
  int j;
  
  int A[12][10]
    for(i=0; i<12; i++)
      for(j=0; j<10; j++)
	info[i][j]=0;
    
  scanf("%d",&n);
  for(i=0; i<n i++){
    scanf("%d %d %d %d",&b,&f,&r,&v);
    info [(b-1)*3+(f-1)][r-1]=info[(b-1)*3+(f-1)][r-1]+v;
      }
  
  for(i=0; i<12; i++){
    for(j=0; j<10; j++){
      printf("%d", info[i][j];)
    }
    if((i+1) % 3 == 0 && i != 11)printf("\n###################");
    printf("\n");
  }

  return 0;
}



Compiler output:
main.c: In function 'main':
main.c:14:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'for'
   14 |     for(i=0; i<12; i++)
      |     ^~~
main.c:16:9: error: 'info' undeclared (first use in this function)
   16 |         info[i][j]=0;
      |         ^~~~
main.c:16:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:19:15: error: expected ';' before 'i'
   19 |   for(i=0; i<n i++){
      |               ^~
      |               ;
main.c:26:30: error: expected ')' before ';' token
   26 |       printf("%d", info[i][j];)
      |             ~                ^
      |                              )
main.c:26:32: error: expected ';' before '}' token
   26 |       printf("%d", info[i][j];)
      |                                ^
      |                                ;
   27 |     }
      |     ~
Language: C

#include <stdio.h>
int main(void){
  	int count[4][3][10] = {0};

	int N, i, j, k;


	scanf("%d", &N);

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

		int b, f, r, v;

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

		count[b - 1][f - 1][r - 1] += v;

	}

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

		if (i > 0) printf("####################\n");

		for (j = 0; j < 3; j++) {

			for (k = 0; k < 10; k++) {

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

			}

			printf("\n");

		}

	}



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

#include <stdio.h>

int main(void){

   int n,b,f,r,v,i,j,a,c;

   

   scanf("%d",&n);

   int count[4][3][10]={{{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(j=0;j < 4;j++){

       for(a=0;a < 3;a++){

           for(c=0;c < 10;c++){

               printf(" %d",count[j][a][c]);

           }

           printf("\n");

       }

       if(j == b-1)break;

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

   }
#include <stdio.h>

int main(void){

   int n,b,f,r,v,i,j,a,c;

   

   scanf("%d",&n);

   int count[4][3][10]={{{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(j=0;j < 4;j++){

       for(a=0;a < 3;a++){

           for(c=0;c < 10;c++){

               printf(" %d",count[j][a][c]);

           }

           printf("\n");

       }

       if(j == b-1)break;

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

   }

  

 
  
 return 0; }
 


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

#include <stdio.h>

int main(void){
  int n;
  int b, f, r, v;

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

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

  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:8:3: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'for'
    8 |   for(int i=0; i<4; i++){
      |   ^~~
main.c:11:9: error: 'tenants' undeclared (first use in this function)
   11 |         tenants[i][j][k] = 0;
      |         ^~~~~~~
main.c:11:9: note: each undeclared identifier is reported only once for each function it appears in