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

#include <iostream>
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <vector>
#include <climits>

typedef long long ll;

using namespace std;

void solve(){
    int n;
    int room[4][3][10];
    cin >> n;
    int b[n], f[n], r[n], v[n];
    memset(room, 0, 4*3*10*4);
    for(int i = 0; i < n; i++){
        cin >> b[i] >> f[i] >> r[i] >> v[i];
        room[b[i]-1][f[i]-1][r[i]-1] += v[i];
    }
    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;
        }
    }
}

int main() {
    solve();
    return 0;
}

Compiler output:
a.cc: In function 'void solve()':
a.cc:17:5: error: 'memset' was not declared in this scope
   17 |     memset(room, 0, 4*3*10*4);
      |     ^~~~~~
a.cc:7:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    6 | #include <climits>
  +++ |+#include <cstring>
    7 |
Language: C++

#include<Stdio.h>


int main() {
	int  room[4][3][10] = { 0 };	//room[b-tou][f-loor][r-oomnum] += v
	int i, j, k;
	int bmn, frn, rmn, dyn, DataN;

	scanf("%d", &DataN);

	for (i = 0; i < DataN; i++) {
		fflush(stdin);
		scanf("%d %d %d %d", &bmn, &frn, &rmn, &dyn);

		room[bmn-1][frn-1][rmn-1] += dyn;

	}


	for (i = 0; i < 4; i++) {			//mune
		for (j = 0; j < 3; j++) {		//floor
			for (k = 0; k < 10; k++) {	//romnum
				printf(" %d",room[i][j][k]);
			}
			printf("\n");
		}
		if (i == 3)break;
		for(j=0;j<20;j++)printf("#");
		printf("\n");
	}



	return 0;
}

Compiler output:
a.cc:1:9: fatal error: Stdio.h: No such file or directory
    1 | #include<Stdio.h>
      |         ^~~~~~~~~
compilation terminated.
Language: C++


*******************************************************************************/

#include <stdio.h>

int main()
{
    int a[5][4][11];
    for(int i = 1; i<=4; i++) {
        for(int j = 1; j<=3; j++) {
            for(int k = 1; k<=10; k++){
                a[i][j][k] = 0;
            }
        }
    }
    // spades, hearts, clubs and diamonds
    int n = 0;
    scanf("%d", &n);
    int b,f,r,v;
    //printf("%d\n",n);
    for(int i = 0; i<n; i++){
        scanf("%d %d %d %d",&b,&f,&r,&v);
        a[b][f][r] = v;
    }
    
    for(int i = 1; i<=4; i++) {
        for(int j = 1; j<=3; j++) {
            for(int k = 1; k<=10; k++){
                printf("%d",a[i][j][k]);
                if(k!=10) printf(" ");
            }printf("\n");
        }
        if(i!=4)
        printf("####################\n");
    }
    
    return 0;
}



Compiler output:
a.cc:2:80: error: expected unqualified-id before '/' token
    2 | *******************************************************************************/
      |                                                                                ^
a.cc: In function 'int main()':
a.cc:18:5: error: 'scanf' was not declared in this scope
   18 |     scanf("%d", &n);
      |     ^~~~~
a.cc:29:17: error: 'printf' was not declared in this scope
   29 |                 printf("%d",a[i][j][k]);
      |                 ^~~~~~
a.cc:5:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
    4 | #include <stdio.h>
  +++ |+#include <cstdio>
    5 | 
a.cc:31:14: error: 'printf' was not declared in this scope
   31 |             }printf("\n");
      |              ^~~~~~
a.cc:31:14: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
a.cc:34:9: error: 'printf' was not declared in this scope
   34 |         printf("####################\n");
      |         ^~~~~~
a.cc:34:9: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C++

#include<cstdio>
#include<stdlib.h>

#define B_MAX ( (int) 4 )
#define B_MIN ( (int) 1 )
#define F_MAX ( (int) 3 )
#define F_MIN ( (int) 1 )
#define R_MAX ( (int) 10 )
#define R_MIN ( (int) 1 )
#define V_MAX ( (int) 9 )
#define V_MIN ( (int) 0 )


class HOUSE
{
	public:
		int InputHouse(void);
		int CheckHouse(void);
		void PrintHouse(void);
	private:
		int n = 0, b = 0, f = 0, r = 0, v = 0;
		int house[B_MAX][F_MAX][R_MAX]={ { { 0 } } };
};

int HOUSE::Input(void)
{
	scanf("%d %d %d %d\n", &b, &f, &r, &v);
	
	if(Check() == -1)
	{
		return -1;
	}
	
	house[b-1][f-1][r-1] += v;
	
	if( (house[b-1][f-1][r-1] < V_MIN) || (house[b-1][f-1][r-1] > V_MAX) )
	{
		return -1;
	}
	
	return 0;
}

int HOUSE::Check(void)
{
	if( (b < B_MIN) || (b > B_MAX) ||
		(f < F_MIN) || (f > F_MAX) ||
		(r < R_MIN) || (r > R_MAX) )
	{
		return -1;
	}
	
	return 0;
}

void HOUSE::Print(void)
{
	for(int i = 0; i < B_MAX; i++)
	{
		for(int j = 0; j < F_MAX; j++)
		{
			for(int k = 0; k < R_MAX; k++)
			{
				printf(" %d", house[i][j][k]);
			}
			printf("\n");
		}
		if(i != (B_MAX - 1))
		{
			printf("####################\n");
		}
	}
}

int main(void)
{
	int n = 0;
	HOUSE House;
	
	scanf("%d", &n);
	while(n-- > 0)
	{
		if(House.Input() == -1)
		{
			return -1;
		}
	}
	
	House.Print();
	
	return 0;
}




Compiler output:
a.cc:25:5: error: no declaration matches 'int HOUSE::Input()'
   25 | int HOUSE::Input(void)
      |     ^~~~~
a.cc:25:5: note: no functions named 'int HOUSE::Input()'
a.cc:14:7: note: 'class HOUSE' defined here
   14 | class HOUSE
      |       ^~~~~
a.cc:44:5: error: no declaration matches 'int HOUSE::Check()'
   44 | int HOUSE::Check(void)
      |     ^~~~~
a.cc:44:5: note: no functions named 'int HOUSE::Check()'
a.cc:14:7: note: 'class HOUSE' defined here
   14 | class HOUSE
      |       ^~~~~
a.cc:56:6: error: no declaration matches 'void HOUSE::Print()'
   56 | void HOUSE::Print(void)
      |      ^~~~~
a.cc:56:6: note: no functions named 'void HOUSE::Print()'
a.cc:14:7: note: 'class HOUSE' defined here
   14 | class HOUSE
      |       ^~~~~
a.cc: In function 'int main()':
a.cc:83:26: error: 'class HOUSE' has no member named 'Input'
   83 |                 if(House.Input() == -1)
      |                          ^~~~~
a.cc:89:15: error: 'class HOUSE' has no member named 'Print'
   89 |         House.Print();
      |               ^~~~~
Language: C++

#include<cstdio>
#include<stdlib.h>

#define B_MAX ( (int) 4 )
#define B_MIN ( (int) 1 )
#define F_MAX ( (int) 3 )
#define F_MIN ( (int) 1 )
#define R_MAX ( (int) 10 )
#define R_MIN ( (int) 1 )
#define V_MAX ( (int) 9 )
#define V_MIN ( (int) 0 )


class HOUSE
{
	public:
		// Public member function
		int InputHouse(void);
		int CheckHouse(void);
		void PrintHouse(void);
	private:
		// Private member variable
		int n = 0, b = 0, f = 0, r = 0, v = 0;
		int house[B_MAX][F_MAX][R_MAX]={ { { 0 } } };
};

int HOUSE::InputHouse(void)
{
	scanf("%d %d %d %d\n", &b, &f, &r, &v);
	
	if(Check() == -1)
	{
		return -1;
	}
	
	house[b-1][f-1][r-1] += v;
	
	if( (house[b-1][f-1][r-1] < V_MIN) || (house[b-1][f-1][r-1] > V_MAX) )
	{
		return -1;
	}
	
	return 0;
}

int HOUSE::CheckHouse(void)
{
	if( (b < B_MIN) || (b > B_MAX) ||
		(f < F_MIN) || (f > F_MAX) ||
		(r < R_MIN) || (r > R_MAX) )
	{
		return -1;
	}
	
	return 0;
}

void HOUSE::PrintHouse(void)
{
	for(int i = 0; i < B_MAX; i++)
	{
		for(int j = 0; j < F_MAX; j++)
		{
			for(int k = 0; k < R_MAX; k++)
			{
				printf(" %d", house[i][j][k]);
			}
			printf("\n");
		}
		if(i != (B_MAX - 1))
		{
			printf("####################\n");
		}
	}
}

int main(void)
{
	int n = 0;
	HOUSE House;
	
	scanf("%d", &n);
	while(n-- > 0)
	{
		if(House.Input() == -1)
		{
			return -1;
		}
	}
	
	House.Print();
	
	return 0;
}




Compiler output:
a.cc: In member function 'int HOUSE::InputHouse()':
a.cc:31:12: error: 'Check' was not declared in this scope
   31 |         if(Check() == -1)
      |            ^~~~~
a.cc: In function 'int main()':
a.cc:85:26: error: 'class HOUSE' has no member named 'Input'
   85 |                 if(House.Input() == -1)
      |                          ^~~~~
a.cc:91:15: error: 'class HOUSE' has no member named 'Print'
   91 |         House.Print();
      |               ^~~~~
Language: C++

#include<iostram>
using namespace std;

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


Compiler output:
a.cc:1:9: fatal error: iostram: No such file or directory
    1 | #include<iostram>
      |         ^~~~~~~~~
compilation terminated.
Language: C++

#include<iostram>
using namespace std;

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


Compiler output:
a.cc:1:9: fatal error: iostram: No such file or directory
    1 | #include<iostram>
      |         ^~~~~~~~~
compilation terminated.
Language: C++

#include<iostram>
using namespace std;
 
int main(){
    int count[5][4][11], n;
     
    for ( int i = 0; i < 5; i++ ){
        for (int j = 0; j < 4; j++ ){
            for (k = 0; k < 11; k++ ){
                count[i][j][k] = 0;
            }
        }
    }
     
    cin >> n;
    for ( int i = 0; i < n; i++ ){
        int b, f, r, v;
        cin >> b >> f >> r >> v;
        count[b][f][r] = v;
    }
     
    for ( int f = 0; f < 4; f++ ){
        if ( f > 0 ) cout << "####################\n";
        for ( int b = 0; b < 4; b++ ){
            for ( int r = 0; r < 11; r++ ){
                cout << " " << count[b][f][r];
            }
        cout << endl;
        }
    }
     
    return 0;
}


Compiler output:
a.cc:1:9: fatal error: iostram: No such file or directory
    1 | #include<iostram>
      |         ^~~~~~~~~
compilation terminated.
Language: C++

#include<iostream>
using namespace std;
 
int main(){
    int count[5][4][11], n;
     
    for ( int i = 0; i < 5; i++ ){
        for (int j = 0; j < 4; j++ ){
            for (k = 0; k < 11; k++ ){
                count[i][j][k] = 0;
            }
        }
    }
     
    cin >> n;
    for ( int i = 0; i < n; i++ ){
        int b, f, r, v;
        cin >> b >> f >> r >> v;
        count[b][f][r] = v;
    }
     
    for ( int f = 0; f < 4; f++ ){
        if ( f > 0 ) cout << "####################\n";
        for ( int b = 0; b < 4; b++ ){
            for ( int r = 0; r < 11; r++ ){
                cout << " " << count[b][f][r];
            }
        cout << endl;
        }
    }
     
    return 0;


Compiler output:
a.cc: In function 'int main()':
a.cc:9:18: error: 'k' was not declared in this scope
    9 |             for (k = 0; k < 11; k++ ){
      |                  ^
a.cc:32:14: error: expected '}' at end of input
   32 |     return 0;
      |              ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include<iostream>
using namespace std;
 
int main(){
    int count[5][4][11], n;
     
    for ( int i = 0; i < 5; i++ ){
        for (int j = 0; j < 4; j++ ){
            for (k = 0; k < 11; k++ ){
                count[i][j][k] = 0;
            }
        }
    }
     
    cin >> n;
    for ( int i = 0; i < n; i++ ){
        int b, f, r, v;
        cin >> b >> f >> r >> v;
        count[b][f][r] += v;
    }
     
    for ( int f = 0; f < 4; f++ ){
        if ( f > 0 ) cout << "####################\n";
        for ( int b = 0; b < 5; b++ ){
            for ( int r = 0; r < 11; r++ ){
                cout << " " << count[b][f][r];
            }
        cout << endl;
        }
    }
     
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:18: error: 'k' was not declared in this scope
    9 |             for (k = 0; k < 11; k++ ){
      |                  ^
Language: C++

import java.util.*;
public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int count[][][] = new int[4][3][10];
		int i, j, k;
		int n = sc.nextInt();
		for(i = 0; i < n; i++) {
			int b = sc.nextInt();
			int f = sc.nextInt();
			int r = sc.nextInt();
			int v = sc.nextInt();
			
			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++) {
					System.out.print(" " + count[i][j][k]);
				}
			System.out.println();
			}
		if(i != 3) System.out.println("####################");
		}
	}

}



Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.*;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: expected unqualified-id before 'public'
    2 | public class Main {
      | ^~~~~~
Language: C++

#include<iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:28:13: error: 'i' was not declared in this scope
   28 |         for(i = 0; i < 20; i++){ cout << "#";
      |             ^
a.cc:32:2: error: expected '}' at end of input
   32 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include<iostream>
using namespace std;

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


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

#include<cstdio>
using namespace std;
int main(){
    int b,f,r,b;
    int F[10][3][4];
    for(int i=0;i<10;i++){
        for(int j=0;j<3;j++){
            for(int k=0;k<4;k++){
                F[i][j][k]=0;
            }
        }
    }
    int num;
    scanf("%d",&num);
    for(int i=0;i<num;i++){
        scanf(" %d %d %d %d",b,f,r,b);
        F[b][f][r]+=b;
    }
    for(int i=0;i<4;i++){
        for(int j=0;j<3;j++){
            for(int k=0;k<10;k++){
                printf("%d ",F[k][j][i]);
            }
            printf("\n");
        }
        printf("####################\n");
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:4:15: error: redeclaration of 'int b'
    4 |     int b,f,r,b;
      |               ^
a.cc:4:9: note: 'int b' previously declared here
    4 |     int b,f,r,b;
      |         ^
Language: C++

int n,b, f, r, v, room[4][3][10];
	//b棟f階のr番目の部屋にv人
	for (int q = 0; q < 4; q++){
		for (int w = 0; w < 3; w++){
			for (int e = 0; e < 10; e++){
				room[q][w][e] = 0;
			}
		}
	}
	cin >> n;
	for (int i = 0; i < n; i++){
		cin >> b >> f >> r >> v;
		room[b-1][f-1][r-1] = v;
	}
	for (int k = 0; k < 4; k++){
		for (int h = 0;h <3 ; h++){
			for (int o = 0;o < 10; o++){
				cout << room[k][h][o];
				if (o < 9){
					cout << " ";
				}
			}
			cout << endl;
		}
		if (k < 3){
			cout << "####################" << endl;
		}

	}
}


Compiler output:
a.cc:3:9: error: expected unqualified-id before 'for'
    3 |         for (int q = 0; q < 4; q++){
      |         ^~~
a.cc:3:25: error: 'q' does not name a type
    3 |         for (int q = 0; q < 4; q++){
      |                         ^
a.cc:3:32: error: 'q' does not name a type
    3 |         for (int q = 0; q < 4; q++){
      |                                ^
a.cc:10:9: error: 'cin' does not name a type
   10 |         cin >> n;
      |         ^~~
a.cc:11:9: error: expected unqualified-id before 'for'
   11 |         for (int i = 0; i < n; i++){
      |         ^~~
a.cc:11:25: error: 'i' does not name a type
   11 |         for (int i = 0; i < n; i++){
      |                         ^
a.cc:11:32: error: 'i' does not name a type
   11 |         for (int i = 0; i < n; i++){
      |                                ^
a.cc:15:9: error: expected unqualified-id before 'for'
   15 |         for (int k = 0; k < 4; k++){
      |         ^~~
a.cc:15:25: error: 'k' does not name a type
   15 |         for (int k = 0; k < 4; k++){
      |                         ^
a.cc:15:32: error: 'k' does not name a type
   15 |         for (int k = 0; k < 4; k++){
      |                                ^
a.cc:30:1: error: expected declaration before '}' token
   30 | }
      | ^
Language: C++

#include<bits/stdc++.h>
using namespace std.
int main(){
    int n;
    cin>>n;
    int num[4][3][10]={};
    for(int i=0;i<n;i++){
        int b,f,r,v;
        cin>>b>>f>>r>>v;
        num[b-1][f-1][r-1]+=v;
    }
    for(int i=0;i<4;i++){
        if(i) cout<<"####################"<<endl;
        for(int j=0;j<3;j++){
            for(k=0;k<10;k++){
                cout<<" "<<num[i][j][k];
            }
            cout<<endl;
        }
    }
    return 0;
}


Compiler output:
a.cc:2:20: error: expected ';' before '.' token
    2 | using namespace std.
      |                    ^
      |                    ;
a.cc:2:20: error: expected unqualified-id before '.' token
Language: C++

#include<bits/stdc++.h>
using namespace std:
int main(){
    int n;
    cin>>n;
    int num[4][3][10]={};
    for(int i=0;i<n;i++){
        int b,f,r,v;
        cin>>b>>f>>r>>v;
        num[b-1][f-1][r-1]+=v;
    }
    for(int i=0;i<4;i++){
        if(i) cout<<"####################"<<endl;
        for(int j=0;j<3;j++){
            for(k=0;k<10;k++){
                cout<<" "<<num[i][j][k];
            }
            cout<<endl;
        }
    }
    return 0;
}


Compiler output:
a.cc:2:20: error: expected ';' before ':' token
    2 | using namespace std:
      |                    ^
      |                    ;
a.cc:2:20: error: expected unqualified-id before ':' token
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
    int n;
    cin>>n;
    int num[4][3][10]={};
    for(int i=0;i<n;i++){
        int b,f,r,v;
        cin>>b>>f>>r>>v;
        num[b-1][f-1][r-1]+=v;
    }
    for(int i=0;i<4;i++){
        if(i) cout<<"####################"<<endl;
        for(int j=0;j<3;j++){
            for(k=0;k<10;k++){
                cout<<" "<<num[i][j][k];
            }
            cout<<endl;
        }
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:17: error: 'k' was not declared in this scope
   15 |             for(k=0;k<10;k++){
      |                 ^
Language: C++

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

int main(){
int n;
int a[10][10][10]={};
cin>>n;

for(int i=0;i<n;i++){
int x,y,g,h;
cin>>x>>y>>g>>h;
a[x][y][g]+=h;
}

for(int x=1;x<5;x++){
for(int y=1;y<4;y++){
for(int g=1;g<11;g++){
cout<<a[x][y][g];
if(g<10){cout<<" ";}
}
if(g==10 && y==3){}
else{cout<<endl;}
}
if(x<4){cout<<"####################"<<endl;}
}



return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:4: error: 'g' was not declared in this scope
   21 | if(g==10 && y==3){}
      |    ^
Language: C++

int n;
int a[10][10][10]={};
cin>>n;

for(int i=0;i<n;i++){
int x,y,g,h;
cin>>x>>y>>g>>h;
a[x][y][g]+=h;
}

for(int x=1;x<5;x++){
for(int y=1;y<4;y++){
for(int g=1;g<11;g++){
cout<<a[x][y][g];
if(g<10){cout<<" ";}
}
if(x==10 && y==3){}
else{cout<<endl;}
}
if(x<4){cout<<"####################"<<endl;}
}



return 0;
}


Compiler output:
a.cc:3:1: error: 'cin' does not name a type
    3 | cin>>n;
      | ^~~
a.cc:5:1: error: expected unqualified-id before 'for'
    5 | for(int i=0;i<n;i++){
      | ^~~
a.cc:5:13: error: 'i' does not name a type
    5 | for(int i=0;i<n;i++){
      |             ^
a.cc:5:17: error: 'i' does not name a type
    5 | for(int i=0;i<n;i++){
      |                 ^
a.cc:11:1: error: expected unqualified-id before 'for'
   11 | for(int x=1;x<5;x++){
      | ^~~
a.cc:11:13: error: 'x' does not name a type
   11 | for(int x=1;x<5;x++){
      |             ^
a.cc:11:17: error: 'x' does not name a type
   11 | for(int x=1;x<5;x++){
      |                 ^
a.cc:25:1: error: expected unqualified-id before 'return'
   25 | return 0;
      | ^~~~~~
a.cc:26:1: error: expected declaration before '}' token
   26 | }
      | ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:3:6: error: 'cin' was not declared in this scope
    3 |      cin >>n;
      |      ^~~
a.cc:12:16: error: 'cout' was not declared in this scope
   12 |          if(i) cout<<"####################"<<endl;
      |                ^~~~
a.cc:12:46: error: 'endl' was not declared in this scope
   12 |          if(i) cout<<"####################"<<endl;
      |                                              ^~~~
a.cc:15:14: error: 'cout' was not declared in this scope
   15 |              cout << " "<<num[i][j][k];
      |              ^~~~
a.cc:15:34: error: 'j' was not declared in this scope
   15 |              cout << " "<<num[i][j][k];
      |                                  ^
a.cc:17:10: error: 'cout' was not declared in this scope
   17 |          cout <<endl;
      |          ^~~~
a.cc:17:17: error: 'endl' was not declared in this scope
   17 |          cout <<endl;
      |                 ^~~~
a.cc: At global scope:
a.cc:20:3: error: expected unqualified-id before 'return'
   20 |   return 0;
      |   ^~~~~~
a.cc:21:1: error: expected declaration before '}' token
   21 | }
      | ^
Language: C++

i#include <bits/stdc++.h>
using namespace std;
nt main(){
    int n;
     cin >>n;
    int num[4][3][10] = {};
    for (int i =0;i<n;i++){
         int b,f,r,v;
         cin >>b>>f>>r>>v;
         num[b-1][f-1][r-1]+= v;
     }
      
     for ( int i =0 ; i<4;i++){
         if(i) cout<<"####################"<<endl;
         
         for(int k =0;k<10;k++){
             cout << " "<<num[i][j][k];
         }
         cout <<endl;
         }
    }
  return 0;
}


Compiler output:
a.cc:1:2: error: stray '#' in program
    1 | i#include <bits/stdc++.h>
      |  ^
a.cc:1:1: error: 'i' does not name a type
    1 | i#include <bits/stdc++.h>
      | ^
a.cc:3:1: error: 'nt' does not name a type; did you mean 'int'?
    3 | nt main(){
      | ^~
      | int
a.cc:22:3: error: expected unqualified-id before 'return'
   22 |   return 0;
      |   ^~~~~~
a.cc:23:1: error: expected declaration before '}' token
   23 | }
      | ^
Language: C++

i#include <bits/stdc++.h>
using namespace std;
int main(){
    int n;
     cin >>n;
    int num[4][3][10] = {};
    for (int i =0;i<n;i++){
         int b,f,r,v;
         cin >>b>>f>>r>>v;
         num[b-1][f-1][r-1]+= v;
     }
      
     for ( int i =0 ; i<4;i++){
         if(i) cout<<"####################"<<endl;
         
         for(int k =0;k<10;k++){
             cout << " "<<num[i][j][k];
         }
         cout <<endl;
         }
    }
  return 0;
}


Compiler output:
a.cc:1:2: error: stray '#' in program
    1 | i#include <bits/stdc++.h>
      |  ^
a.cc:1:1: error: 'i' does not name a type
    1 | i#include <bits/stdc++.h>
      | ^
a.cc: In function 'int main()':
a.cc:5:6: error: 'cin' was not declared in this scope
    5 |      cin >>n;
      |      ^~~
a.cc:14:16: error: 'cout' was not declared in this scope
   14 |          if(i) cout<<"####################"<<endl;
      |                ^~~~
a.cc:14:46: error: 'endl' was not declared in this scope
   14 |          if(i) cout<<"####################"<<endl;
      |                                              ^~~~
a.cc:17:14: error: 'cout' was not declared in this scope
   17 |              cout << " "<<num[i][j][k];
      |              ^~~~
a.cc:17:34: error: 'j' was not declared in this scope
   17 |              cout << " "<<num[i][j][k];
      |                                  ^
a.cc:19:10: error: 'cout' was not declared in this scope
   19 |          cout <<endl;
      |          ^~~~
a.cc:19:17: error: 'endl' was not declared in this scope
   19 |          cout <<endl;
      |                 ^~~~
a.cc: At global scope:
a.cc:22:3: error: expected unqualified-id before 'return'
   22 |   return 0;
      |   ^~~~~~
a.cc:23:1: error: expected declaration before '}' token
   23 | }
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
    int n;
     cin >>n;
    int num[4][3][10] = {};
    for (int i =0;i<n;i++){
         int b,f,r,v;
         cin >>b>>f>>r>>v;
         num[b-1][f-1][r-1]+= v;
     }
      
     for ( int i =0 ; i<4;i++){
         if(i) cout<<"####################"<<endl;
         
         for(int k =0;k<10;k++){
             cout << " "<<num[i][j][k];
         }
         cout <<endl;
         }
    }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:34: error: 'j' was not declared in this scope
   17 |              cout << " "<<num[i][j][k];
      |                                  ^
a.cc: At global scope:
a.cc:22:3: error: expected unqualified-id before 'return'
   22 |   return 0;
      |   ^~~~~~
a.cc:23:1: error: expected declaration before '}' token
   23 | }
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
    int n;
     cin >>n;
    int num[4][3][10] = {};
    for (int i =0;i<n;i++){
         int b,f,r,v;
         cin >>b>>f>>r>>v;
         num[b-1][f-1][r-1]+= v;
     }
      
     for ( int i =0 ; i<4;i++){
         if(i) cout<<"####################"<<endl;
         for (oint j =0;j,3;j++){
         
         for(int k =0;k<10;k++){
             cout << " "<<num[i][j][k];
         }
         cout <<endl;
         }
    }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:15: error: 'oint' was not declared in this scope; did you mean 'uint'?
   15 |          for (oint j =0;j,3;j++){
      |               ^~~~
      |               uint
a.cc:15:25: error: 'j' was not declared in this scope
   15 |          for (oint j =0;j,3;j++){
      |                         ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
    int n;
     cin >>n;
    int num[4][3][10] = {};
    for (int i =0;i<n;i++){
         int b,f,r,v;
         cin >>b>>f>>r>>v;
         num[b-1][f-1][r-1]+= v;
     }
      
     for ( int i =0 ; i<4;i++){
         if(i) cout<<"####################"<<endl;
         for (oint j =0;j<3;j++){
         
         for(int k =0;k<10;k++){
             cout << " "<<num[i][j][k];
         }
         cout <<endl;
         }
    }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:15: error: 'oint' was not declared in this scope; did you mean 'uint'?
   15 |          for (oint j =0;j<3;j++){
      |               ^~~~
      |               uint
a.cc:15:25: error: 'j' was not declared in this scope
   15 |          for (oint j =0;j<3;j++){
      |                         ^
Language: C++

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


int main(){
  int n
  cin n;
  
  int count[4][3][10] = {};
  int b,f,r,v;
  cin>>b>>f>>r>>v;
  count[b-1][f-1][r-1] += v;
  }


  for(int i=0;i<4;i++){
   if(i) cout<<"####################"<<endl;
 

   for(int j=0;j<3;j++){
    for(int k=0;k<10;k++0{
     cout<<" "<<count<,[i][j][k];
     }
    cout>>endl;
   }


  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: expected initializer before 'cin'
    7 |   cin n;
      |   ^~~
a.cc: At global scope:
a.cc:16:3: error: expected unqualified-id before 'for'
   16 |   for(int i=0;i<4;i++){
      |   ^~~
a.cc:16:15: error: 'i' does not name a type
   16 |   for(int i=0;i<4;i++){
      |               ^
a.cc:16:19: error: 'i' does not name a type
   16 |   for(int i=0;i<4;i++){
      |                   ^
Language: C++

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


int main(){
  int n
  cin n;
  
  int count[4][3][10] = {};
  int b,f,r,v;
  cin>>b>>f>>r>>v;
  count[b-1][f-1][r-1] += v;
  }


  for(int i=0;i<4;i++){
   if(i) cout<<"####################"<<endl;
 

   for(int j=0;j<3;j++){
    for(int k=0;k<10;k++0){
     cout<<" "<<count<,[i][j][k];
     }
    cout>>endl;
   }


  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: expected initializer before 'cin'
    7 |   cin n;
      |   ^~~
a.cc: At global scope:
a.cc:16:3: error: expected unqualified-id before 'for'
   16 |   for(int i=0;i<4;i++){
      |   ^~~
a.cc:16:15: error: 'i' does not name a type
   16 |   for(int i=0;i<4;i++){
      |               ^
a.cc:16:19: error: 'i' does not name a type
   16 |   for(int i=0;i<4;i++){
      |                   ^
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main()
{
  int data[12][10] = {};
  int n,b,f,r,v;

  cin >> n;

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

      if(b == '1')
	{
	  v += data[f-1][r-1];
	}
      if(b == '2')
	{
	  v += data[f+2][r-1];
	}
      if(b == '3')
	{
	  v += data[f+5][r-1];
	}
      if(b == '4')
	{
	  v += data[f+8][r-1];
	}
    }
  for(int j = 0;j < 13;j++)
    {
      for(int k = 0;k < 10;k++)
	{
	  cout << data[j][k] << endl;
	}
      cout << endl;
    }
}



Compiler output:
a.cc: In function 'int main()':
a.cc:12:17: warning: range-based 'for' loops with initializer only available with '-std=c++20' or '-std=gnu++20' [-Wc++20-extensions]
   12 |   for(int i = 0;i < n :i++)
      |                 ^
a.cc:12:23: error: found ':' in nested-name-specifier, expected '::'
   12 |   for(int i = 0;i < n :i++)
      |                       ^
      |                       ::
a.cc:12:21: error: 'n' is not a class, namespace, or enumeration
   12 |   for(int i = 0;i < n :i++)
      |                     ^
a.cc:33:3: error: expected primary-expression before 'for'
   33 |   for(int j = 0;j < 13;j++)
      |   ^~~
a.cc:32:6: error: expected ';' before 'for'
   32 |     }
      |      ^
      |      ;
   33 |   for(int j = 0;j < 13;j++)
      |   ~~~ 
a.cc:33:3: error: expected primary-expression before 'for'
   33 |   for(int j = 0;j < 13;j++)
      |   ^~~
a.cc:32:6: error: expected ')' before 'for'
   32 |     }
      |      ^
      |      )
   33 |   for(int j = 0;j < 13;j++)
      |   ~~~ 
a.cc:12:6: note: to match this '('
   12 |   for(int i = 0;i < n :i++)
      |      ^
Language: C++

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


int main(){
  int n;
  cin>>n;
  
  int count[4][3][10] = {};
  int b,f,r,v;
  cin>>b>>f>>r>>v;
  count[b-1][f-1][r-1] += v;
  }

  for(int i=0;i<4;i++){
   if(i) cout<<"####################"<<endl;
 

   for(int j=0;j<3;j++){
    for(int k=0;k<10;k++){
     cout<<" "<<count<<[i][j][k];
     }
    cout<<endl;
   }


  return 0;
}


Compiler output:
a.cc:15:3: error: expected unqualified-id before 'for'
   15 |   for(int i=0;i<4;i++){
      |   ^~~
a.cc:15:15: error: 'i' does not name a type
   15 |   for(int i=0;i<4;i++){
      |               ^
a.cc:15:19: error: 'i' does not name a type
   15 |   for(int i=0;i<4;i++){
      |                   ^
Language: C++

int main(){

  int n;
  cin>>n;
  int num[4][3][10] = {};
  for(int i=0;i<n;i++){
    int b, f, r, v;
    cin>>b>>f>>r>>v;
    num[b-1][f-1][r-1] += v;
  }

  for(int i=0;i<4;i++){
    if(i) cout<<"####################"<<endl;

    for(int j=0;j<3;j++){
      for(int k=0;k<10;k++){
	cout<<" "<<num[i][j][k];
      }
      cout<<endl;
    }
  }

  return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'cin' was not declared in this scope
    4 |   cin>>n;
      |   ^~~
a.cc:13:11: error: 'cout' was not declared in this scope
   13 |     if(i) cout<<"####################"<<endl;
      |           ^~~~
a.cc:13:41: error: 'endl' was not declared in this scope
   13 |     if(i) cout<<"####################"<<endl;
      |                                         ^~~~
a.cc:17:9: error: 'cout' was not declared in this scope
   17 |         cout<<" "<<num[i][j][k];
      |         ^~~~
a.cc:19:7: error: 'cout' was not declared in this scope
   19 |       cout<<endl;
      |       ^~~~
a.cc:19:13: error: 'endl' was not declared in this scope
   19 |       cout<<endl;
      |             ^~~~
Language: C++

#include<iostream>
#include"stdafx.h"

using namespace std;

int main()
{
	int n, b, f, r, v;
	int data[12][10] = {};

	cin >> n;

	for (int i = 0; i < n; i++)
	{
		cin >> b >> f >> r >> v;
		if (b == 1)
		{
			data[f - 1][r - 1] += v;
		}
		if (b == 2)
		{
			data[f + 2][r - 1] += v;
		}
		if (b == 3)
		{
			data[f + 5][r - 1] += v;
		}
		if (b == 4)
		{
			data[f + 8][r - 1] += v;
		}
	}
	for (int k = 0; k < 12; k++)
	{
		for (int j = 0; j < 10; j++)
		{
			cout << data[k][j] << " ";
		}
		cout << endl;
		if ((k+1) % 3 == 0)
		{
			cout << "####################" << endl;
		}
		//cout << endl;
	}
	return 0;
}


Compiler output:
a.cc:2:9: fatal error: stdafx.h: No such file or directory
    2 | #include"stdafx.h"
      |         ^~~~~~~~~~
compilation terminated.
Language: C++

#include<iostream>
using namespace std;

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



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

#include<iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:14:19: error: invalid types 'int[int]' for array subscript
   14 |         a[b][f][r][v]+=v;
      |                   ^
Language: C++

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



Compiler output:
a.cc:1:26: warning: extra tokens at end of #include directive
    1 | #include <iostream>using namespace std;int main(){    int c[10][10][100];    int n, b, f, r, v;        for(int i = 1; i <= 4; i++){        for(int j = 1; j <= 3; j++){            for(int t = 1; t <= 10; t++){                c[i][j][t] = 0;            }        }    }        cin >> n;    for(int i = 0; i < n; i++){        cin >> b >> f >> r >> v;        c[b][f][r] += v;    }        for(int i = 1; i <= 4; i++){        for(int j = 1; j <= 3; j++){            for(int t = 1; t <= 10; t++){                cout << ' ' << c[i][j][t];            }            cout << endl;        }        if(i != 4)  cout << "####################"<<endl;    }    return 0;}
      |                          ^~~~~~~~~
a.cc:1:10: fatal error: iostream>usin: No such file or directory
    1 | #include <iostream>using namespace std;int main(){    int c[10][10][100];    int n, b, f, r, v;        for(int i = 1; i <= 4; i++){        for(int j = 1; j <= 3; j++){            for(int t = 1; t <= 10; t++){                c[i][j][t] = 0;            }        }    }        cin >> n;    for(int i = 0; i < n; i++){        cin >> b >> f >> r >> v;        c[b][f][r] += v;    }        for(int i = 1; i <= 4; i++){        for(int j = 1; j <= 3; j++){            for(int t = 1; t <= 10; t++){                cout << ' ' << c[i][j][t];            }            cout << endl;        }        if(i != 4)  cout << "####################"<<endl;    }    return 0;}
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

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


Compiler output:
a.cc:1:26: warning: extra tokens at end of #include directive
    1 | #include <iostream>using namespace std;
      |                          ^~~~~~~~~
a.cc:1:10: fatal error: iostream>usin: No such file or directory
    1 | #include <iostream>using namespace std;
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

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

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

    for(int j=0;j<3;j++){
      for(int k=0;k<10;k++){
        cout<<" "<<num[i][j][k];
      }
    cout<<endl;
    }
  }
  return 0;


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

#include <iostream>
#include <vector>
#include <utility>
#include <queue>
#include <cstring>
#define INF 900000000
using namespase std;

int main(){
	int a[4][3][10];
	int n;
	cin>>n;
	for(int c=0;c<4;c++){
		for(int d=0;c<3;d++){
			for(int e=0;e<10;e++){
				a[c][d][e]=0;
			}
  		}
	}
	for(int g=0;g<n;g++){
		int b,f,r,v;
		cin>>b>>f>>r>>v;
		a[b-1][f-1][r-1]=a[b-1][f-1][r-1]+v;
		}
	for(int i=0;i<4;i++){
		for(int j=0;j<3;j++){
			for(int k=0;k<10;k++){
		cout<<a[i][j][k];
		if(k=9)cout<<endl;
		if(i==0&&i==1&&i==2||j==2||k==19){
			for(int z=0;z<20;z++){
				cout<<'#';
				   }
				   cout<<endl;}
		    }
		}
	}
	return 0;
	}



Compiler output:
a.cc:7:7: error: expected nested-name-specifier before 'namespase'
    7 | using namespase std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:12:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   12 |         cin>>n;
      |         ^~~
      |         std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:28:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   28 |                 cout<<a[i][j][k];
      |                 ^~~~
      |                 std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:29:30: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   29 |                 if(k=9)cout<<endl;
      |                              ^~~~
      |                              std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:34:42: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   34 |                                    cout<<endl;}
      |                                          ^~~~
      |                                          std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include<iostream>
using namespace std;
int main(){

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

int n;
cin>>n;

int b,f,r,v;
for(intl=1;l<=n;l++){
 cin>>b>>f>>r>>v;
 a[b][f][r]=v;
}

for(int i=0;i<=3;i++){
 for(int j=0;j<=2;j++){
  for(int k=0;k<=7;k++){
   cout<<" "<<a[i][j][k];
  }
  cout<<endl;
 }
 if(i=3)break;
 cout<<"####################"<<endl;
}

}



Compiler output:
a.cc: In function 'int main()':
a.cc:18:5: error: 'intl' was not declared in this scope; did you mean 'int'?
   18 | for(intl=1;l<=n;l++){
      |     ^~~~
      |     int
a.cc:18:12: error: 'l' was not declared in this scope
   18 | for(intl=1;l<=n;l++){
      |            ^
Language: C++

#include "stdafx.h"
#include <iostream>
#include <string>
using namespace std;

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

	int count;
	cin >> count;

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

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


Compiler output:
a.cc:1:10: fatal error: stdafx.h: No such file or directory
    1 | #include "stdafx.h"
      |          ^~~~~~~~~~
compilation terminated.
Language: C++

#include<stdio.h>

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

  scanf("%d",&n);

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

  for(i=0;i<4;i++){
    if(i) printf("####################\n");

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




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

#include <iostream>

using namespace std;

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

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

    }

     for (int k=0;k<4;++k){
        for (int j=0;j<3;++j){
            for (int i=0;i<10;++i){
                 cout << " ";
                cout << h[i][j][k];


            }
            cout << endl;
        }
        cout << "####################"<<endl;
     }






Compiler output:
a.cc: In function 'int main()':
a.cc:35:7: error: expected '}' at end of input
   35 |      }
      |       ^
a.cc:6:1: note: to match this '{'
    6 | {     int h[10][3][4];
      | ^
Language: C++

#include <iostream>

using namespace std;

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

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

    }

     for (int k=0;k<4;++k){
        for (int j=0;j<3;++j){
            for (int i=0;i<10;++i){
                 cout << " ";
                cout << h[i][j][k];


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




}



Compiler output:
a.cc: In function 'int main()':
a.cc:41:2: error: expected '}' at end of input
   41 | }
      |  ^
a.cc:6:1: note: to match this '{'
    6 | {     int h[10][3][4];
      | ^
Language: C++

#include <iostream>
using namespace std;

int main(){
    int n, b, f, r, v;
    int t[4][3][10] = {};
    
    // input
    cin >> n;
    for(int i = 0; i > n;i++){
        cin >> b >> f >> r >> v;
        t[b][f][r] += v;
    }
    
    //output
    for(int i = 0;i < 4;i++){
        for(int j = 0;j < 3;j++){
            for(int k = 0;k < 10;k++){
                if(k == 9){
                    cout << t[i][l][k];                    
                }
                else{
                    cout << t[i][l][k] << " ";
                }
            }
            cout << endl;
        }
        for(int x = 0;x < 20;x++){
            cout << "#";
        }
        cout << endl;
    }
    
    return 0;
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:20:34: error: 'l' was not declared in this scope
   20 |                     cout << t[i][l][k];
      |                                  ^
a.cc:23:34: error: 'l' was not declared in this scope
   23 |                     cout << t[i][l][k] << " ";
      |                                  ^
Language: C++

#include <iostream>
using namespace std;

int main(){
    int n, b, f, r, v;
    int t[5][4][11] = {};
    
    // input
    cin >> n;
    for(int i = 0; i > n;i++){
        cin >> b >> f >> r >> v;
        t[b][f][r] += v;
    }
    
    //output
    for(int i = 1;i < 5;i++){
        for(int j = 1;j < 4;j++){
            for(int k = 1;k < 11;k++){
                cout << " " << [i][j][k];
            }
            cout << endl;
        }
        for(int x = 0;x < 20;x++){
            cout << "#";
        }
        cout << endl;
    }
    
    return 0;
    
}


Compiler output:
a.cc: In lambda function:
a.cc:19:35: error: expected '{' before '[' token
   19 |                 cout << " " << [i][j][k];
      |                                   ^
a.cc: In function 'int main()':
a.cc:19:35: error: no match for 'operator[]' (operand types are 'main()::<lambda()>' and 'int')