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

import java.util.Scanner;

public class Program{	
	public static void main(String[] args){
	Scanner scan = new Scanner(System.in);

	 int data[][][] = new int[4][3][10];
	 int n, b, f, r, v, i, j, k;
	 n = scan.nextInt();
	   
	 for(i = 0; i < 4; i++) {
	  for(j = 0; j < 3; j++) {
	   for(k = 0; k < 10; k++) {
	    data[i][j][j] = 0;
	   }
	  }
	 }
	   
	 for(i = 0; i < n; i++) {
	  b = scan.nextInt();
	  f = scan.nextInt();
	  r = scan.nextInt();
	  v = scan.nextInt();
	  data[b-1][f-1][r-1] += v;
	 }
	   
	 for(i = 0; i < 4; i++) {
	  for(j = 0; j < 3; j++) {
	   for(k = 0; k < 10; k++) {
		System.out.print(" " + data[i][j][k]);
	   }
	   System.out.println("");
	  }
	  if(i != 3) {
	  System.out.println("####################");
	  }
	 }

	}
}

Compiler output:
Main.java:3: error: class Program is public, should be declared in a file named Program.java
public class Program{	
       ^
1 error
Language: Java

import java.util.Scanner;

public class Program.java{	
	public static void main(String[] args){
	Scanner scan = new Scanner(System.in);

	 int data[][][] = new int[4][3][10];
	 int n, b, f, r, v, i, j, k;
	 n = scan.nextInt();
	   
	 for(i = 0; i < 4; i++) {
	  for(j = 0; j < 3; j++) {
	   for(k = 0; k < 10; k++) {
	    data[i][j][j] = 0;
	   }
	  }
	 }
	   
	 for(i = 0; i < n; i++) {
	  b = scan.nextInt();
	  f = scan.nextInt();
	  r = scan.nextInt();
	  v = scan.nextInt();
	  data[b-1][f-1][r-1] += v;
	 }
	   
	 for(i = 0; i < 4; i++) {
	  for(j = 0; j < 3; j++) {
	   for(k = 0; k < 10; k++) {
		System.out.print(" " + data[i][j][k]);
	   }
	   System.out.println("");
	  }
	  if(i != 3) {
	  System.out.println("####################");
	  }
	 }

	}
}

Compiler output:
Main.java:3: error: '{' expected
public class Program.java{	
                    ^
1 error
Language: Java

import java.util.Scanner;
 
public class Program.java{
    public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
 
     int data[][][] = new int[4][3][10];
     int n, b, f, r, v, i, j, k;
     n = scan.nextInt();
        
     for(i = 0; i < 4; i++) {
      for(j = 0; j < 3; j++) {
       for(k = 0; k < 10; k++) {
        data[i][j][j] = 0;
       }
      }
     }
        
     for(i = 0; i < n; i++) {
      b = scan.nextInt();
      f = scan.nextInt();
      r = scan.nextInt();
      v = scan.nextInt();
      data[b-1][f-1][r-1] += v;
     }
        
     for(i = 0; i < 4; i++) {
      for(j = 0; j < 3; j++) {
       for(k = 0; k < 10; k++) {
        System.out.print(" " + data[i][j][k]);
       }
       System.out.println("");
      }
      if(i != 3) {
      System.out.println("####################");
      }
     }
 
    }
}

Compiler output:
Main.java:3: error: '{' expected
public class Program.java{
                    ^
1 error
Language: Java

import java.util.Scanner;

public class Main {
	void run(){
		Scanner s = new Scanner(System.in);
		int n = s.nextInt();
		int home1[][] = new int[3][10];
		int home2[][] = new int[3][10];
		int home3[][] = new int[3][10];
		int home4[][] = new int[3][10];
		for(int i = 0; i < n; i++){
			int b = s.nextInt();
			int f = s.nextInt();
			int r = s.nextInt();
			int v = s.nextInt();
			if(b == 1) home1[f - 1][r - 1] = v;
			if(b == 2) home2[f - 1][r - 1] = v;
			if(b == 3) home3[f - 1][r - 1] = v;
			if(b == 4) home4[f - 1][r - 1] = v;
		}
		for(int a = 0; a < 4; a++){
			for(int i = 0; i < 3; i++){
				for(int j = 0; j < 10;j++){
					if(j != 0){
						if (a == 0) System.out.print(home1[i][j]);
						else if(a == 1) System.out.print(home2[i][j]);
						else if(a == 2) System.out.print(home3[i][j]);
						else if(a == 3) System.out.print(home4[i][j]);
					}
					else {
						if (a == 0) System.out.print(" " + home1[i][j]);
						else if(a == 1) System.out.print(" " + home2[i][j]);
						else if(a == 2) System.out.print(" " + home3[i][j]);
						else if(a == 3) System.out.print(" " + home4[i][j]);
					}
				}
				System.out.println();
			}
			if(a != 3) System.out.println("####################");
		}
	}

	public static void main(String[] args) {
		/* 
		 * Main x;
		 * x = new Main();
		 * x.run();
		 * ??¨????????????
		 */
		new Main().run();
		
	}

Compiler output:
Main.java:52: error: reached end of file while parsing
	}
	 ^
1 error
Language: Java

import java.util.Scanner;


public class Main2 {


	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int[][][] house = new int[4][3][10];

		for(int i=0;i<n;i++){
			int tou = scan.nextInt();
			int floor = scan.nextInt();
			int room = scan.nextInt();
			int people = scan.nextInt();
			
			house[tou-1][floor-1][room-1]=people;
		}

		for(int i=0;i<4;i++){
			for(int j=0;j<3;j++){
				for(int k=0;k<10;k++){
					if(k!=0) System.out.print(" ");
					System.out.print(house[i][j][k]);
				}
				System.out.println();
			}
			for(int j=0;j<20;j++){
				System.out.print("#");
			}
			System.out.println();
		}

	}

}

Compiler output:
Main.java:4: error: class Main2 is public, should be declared in a file named Main2.java
public class Main2 {
       ^
1 error
Language: Java

import java.util.Scanner;


public class Main2 {


	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int[][][] house = new int[4][3][10];

		for(int i=0;i<n;i++){
			int tou = scan.nextInt();
			int floor = scan.nextInt();
			int room = scan.nextInt();
			int people = scan.nextInt();

			house[tou-1][floor-1][room-1]=people;
		}

		for(int i=0;i<4;i++){
			for(int j=0;j<3;j++){
				for(int k=0;k<10;k++){
					if(k!=0) System.out.print(" ");
					System.out.print(house[i][j][k]);
				}
				System.out.println();
			}
			if(i!=4){
				for(int j=0;j<20;j++){
					System.out.print("#");
				}
				
			}
			System.out.println();
		}

	}

}

Compiler output:
Main.java:4: error: class Main2 is public, should be declared in a file named Main2.java
public class Main2 {
       ^
1 error
Language: Java

import java.util.Scanner;


public class Main2 {


	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int[][][] house = new int[4][3][10];

		for(int i=0;i<n;i++){
			int tou = scan.nextInt();
			int floor = scan.nextInt();
			int room = scan.nextInt();
			int people = scan.nextInt();

			house[tou-1][floor-1][room-1]=people;
		}

		for(int i=0;i<4;i++){
			for(int j=0;j<3;j++){
				for(int k=0;k<10;k++){
					if(k!=0) System.out.print(" ");
					System.out.print(house[i][j][k]);
				}
				System.out.println();
			}
			if(i!=3){
				for(int j=0;j<20;j++){
					System.out.print("#");
				}

			}
			System.out.println();
		}

	}

}

Compiler output:
Main.java:4: error: class Main2 is public, should be declared in a file named Main2.java
public class Main2 {
       ^
1 error
Language: Java

import java.util.Scanner;


public class Main2 {


	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int[][][] house = new int[4][3][10];

		for(int i=0;i<n;i++){
			int tou = scan.nextInt();
			int floor = scan.nextInt();
			int room = scan.nextInt();
			int people = scan.nextInt();

			house[tou-1][floor-1][room-1]=people;
		}

		for(int i=0;i<4;i++){
			for(int j=0;j<3;j++){
				for(int k=0;k<10;k++){
					if(k!=0) System.out.print(" ");
					System.out.print(house[i][j][k]);
				}
				System.out.println();
			}
			if(i!=3){
				for(int j=0;j<20;j++){
					System.out.print("#");
				}
				System.out.println();
			}
		}

	}

}

Compiler output:
Main.java:4: error: class Main2 is public, should be declared in a file named Main2.java
public class Main2 {
       ^
1 error
Language: Java

import java.util.Scanner;


public class Main2 {


	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int[][][] house = new int[4][3][10];

		for(int i=0;i<n;i++){
			int tou = scan.nextInt();
			int floor = scan.nextInt();
			int room = scan.nextInt();
			int people = scan.nextInt();

			house[tou-1][floor-1][room-1]=people;
		}

		for(int i=0;i<4;i++){
			for(int j=0;j<3;j++){
				for(int k=0;k<10;k++){
					if(house[i][j][k]>0){
						System.out.print(" "+house[i][j][k]);
					}else{
						System.out.print(" 0");
					}
				}
				System.out.println();
			}
			if(i!=3){
				for(int j=0;j<20;j++){
					System.out.print("#");
				}
				System.out.println();
			}
		}

	}

}

Compiler output:
Main.java:4: error: class Main2 is public, should be declared in a file named Main2.java
public class Main2 {
       ^
1 error
Language: Java

import java.util.Scanner;


public class Main2 {


	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int[][][] house = new int[4][3][10];

		for(int i=0;i<n;i++){
			int tou = scan.nextInt();
			int floor = scan.nextInt();
			int room = scan.nextInt();
			int people = scan.nextInt();

			house[tou-1][floor-1][room-1]=house[tou-1][floor-1][room-1]+people;
		}

		for(int i=0;i<4;i++){
			for(int j=0;j<3;j++){
				for(int k=0;k<10;k++){
					if(house[i][j][k]>0){
						System.out.print(" "+house[i][j][k]);
					}else{
						System.out.print(" 0");
					}
				}
				System.out.println();
			}
			if(i!=3){
				for(int j=0;j<20;j++){
					System.out.print("#");
				}
				System.out.println();
			}
		}

	}

}

Compiler output:
Main.java:4: error: class Main2 is public, should be declared in a file named Main2.java
public class Main2 {
       ^
1 error
Language: Java

import java.io.*;
public class Main {
	public static void main(String[] args) throws IOException{
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		String line = reader.readLine();
		int n = Integer.parseInt(line);
		int x[][] = new int[n][4];
		int y[][][] = new int[4][3][10];
		for(int i = 0; i < 4; i++){
			for(int j = 0; j < 3; j++){
				for(int k = 0; k < 10; k++){
					y[i][j][k] = 0;
				}
			}
		}
		for(int l = 0; l < n; l++){
			String line1 = reader.readLine();
			String[] sarray = line1.split(" ", -1);
			for(int m = 0; m < 4; m++){
				x[l][m] = Integer.parseInt(sarray[m]);
			}
			y[x[l][0] - 1][x[l][1] - 1][x[l][2] - 1] += x[l][3];
		}
		for(int p = 0; p < 4; p++){
			for(int q = 0; q < 3; q++){
				for(int r = 0; r < 10; r++){
					System.out.print(y[p][q][r] + " ");
				}
				System.out.println();
			System.out.println("####################");
		}
	}
}

Compiler output:
Main.java:33: error: reached end of file while parsing
}
 ^
1 error
Language: Java

import java.util.*;

public class Main{
	public static void main(String[] args){
		int[][][] people = new int[4][3][10];
		for(int i = 0; i < 4; i++){
			for(int j = 0; j < 3; j++){
				for(int k = 0; k < 10; k++){
					int[i][j][k] = 0;
				}
			}
		}

		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		for(int h = 0; h < n; h++){
			int b = scan.nextInt();
			int f = scan.nextInt();
			int r = scan.nextInt();
			int v = scan.nextInt();
			people[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++){
					System.out.printf(" %d", people[i][j][k]);
				}
				System.out.println("");
			}
			StringBuilder sb = new StringBuilder();
			for(int k = 0; k < 20; k++){
				sb.append("#");
			}
			String str = sb.toString();
			System.out.println(str);
		}
	}
}

Compiler output:
Main.java:9: error: ']' expected
					int[i][j][k] = 0;
					    ^
Main.java:9: error: ';' expected
					int[i][j][k] = 0;
					     ^
Main.java:9: error: not a statement
					int[i][j][k] = 0;
					       ^
Main.java:9: error: ';' expected
					int[i][j][k] = 0;
					        ^
Main.java:9: error: not a statement
					int[i][j][k] = 0;
					          ^
Main.java:9: error: ';' expected
					int[i][j][k] = 0;
					           ^
6 errors
Language: Java

mport java.util.Scanner;

class Test {

	static final int BUILDING = 4;
	static final int FLOOR = 3;
	static final int ROOM = 10;

	static int [] room = new int[BUILDING * FLOOR * ROOM];

	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		while(n-- > 0){
			update(sc.nextInt(),sc.nextInt(),sc.nextInt(),sc.nextInt());
		}
		sc.close();
		for(int b = 1;b <= BUILDING;b++){
			for(int f = 1;f <= FLOOR;f++){
				for(int r = 1;r <= ROOM;r++){
					System.out.print(" " + get(b,f,r));
				}
				System.out.println();
			}
			if(b <= BUILDING - 1) System.out.println("####################");
		}
	}

	static void update(int b,int f,int r,int v){
		room[(b - 1) * (FLOOR * ROOM) + (f - 1) * ROOM + (r - 1)] = v;
	}

	static int get(int b,int f,int r){
		return room[(b - 1) * (FLOOR * ROOM) + (f - 1) * ROOM + (r - 1)];
	}

}

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
mport java.util.Scanner;
^
1 error
Language: Java

import java.util.Scanner;

class Main{
    static int[][][] value = new int[4][3][10];
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        while(n-- > 0){
            value[kussomendo(sc.nextInt() - 1,4)][kussomendo(sc.nextInt() - 1,3)][kussomendo(sc.nextInt() - 1,10)] = kussomendo(sc.nextInt(),10);
        }
        for(int i = 0;i < 4;i++){
            for(int j = 0;j < 3;j++){
                for(int k = 0;k < 10;k++){
                    System.out.print(" " + value[i][j][k]);
                }
                System.out.println();
            }
            if(i <= 2) System.out.println("####################");
        }
    }

    static int kussomendo(int value,int max){
        if(value < 0) return 0;
        else if(value > mac) return max;
        return value;
    }

}

Compiler output:
Main.java:24: error: cannot find symbol
        else if(value > mac) return max;
                        ^
  symbol:   variable mac
  location: class Main
1 error
Language: Java

mport java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
	
	public static void main(String[] args) {
		try {
		
			int [][][] a = new int[4][3][10];
					
			for (int i = 0; i < 4; i++) {
				for (int j = 0; j < 3; j++) {
					for (int k = 0; k < 10; k++) {
						a[i][j][k] = 0;
					}
				}
			}

			BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
			String s = reader.readLine();	
			int n = Integer.parseInt(s);

			String t;
			String[] u;
			int b, f, r, v;
			for (int l = 0; l < n; l++) {
				t = reader.readLine();
				u = t.split(" ");
				b = Integer.parseInt(u[0]);
				f = Integer.parseInt(u[1]);
				r = Integer.parseInt(u[2]);
				v = Integer.parseInt(u[3]);
				a[b - 1][f - 1][r - 1] += v;
			}
			
			for (int m = 0; m < 4; m++) {
				for (int o = 0; o < 3; o++) {
					for (int p = 0; p < 10; p++) {
						System.out.print(" ");
						System.out.print(a[m][o][p]);
					}
					System.out.println();
				}
				System.out.println("####################");
			}
			
		} catch (IOException e) {
			e.printStackTrace();
		}
	}

}

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
mport java.io.BufferedReader;
^
Main.java:2: error: class, interface, enum, or record expected
import java.io.IOException;
^
Main.java:3: error: class, interface, enum, or record expected
import java.io.InputStreamReader;
^
3 errors
Language: Java

import java.io.IOException;

public class Main{
  public static void main(String[] args) throws IOException{
   BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
   

  }
}

Compiler output:
Main.java:5: error: cannot find symbol
   BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
   ^
  symbol:   class BufferedReader
  location: class Main
Main.java:5: error: cannot find symbol
   BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
                           ^
  symbol:   class BufferedReader
  location: class Main
Main.java:5: error: cannot find symbol
   BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
                                              ^
  symbol:   class InputStreamReader
  location: class Main
3 errors
Language: Java

import java.io.IOException;
import java.io.BufferedReader;

public class Main{
  public static void main(String[] args) throws IOException{
   BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
   

  }
}

Compiler output:
Main.java:6: error: cannot find symbol
   BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
                                              ^
  symbol:   class InputStreamReader
  location: class Main
1 error
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main{
  public static void main(String[] args) throws IOException{
   BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
   //??????????????¶??°?????\???
   int n = Integer.parseInt(br.readLine());
   //??????????????¨?±?
   String[] room = new String[120];

   //??????????????¨?±???????????????°
   int[] number = new int[120];
   
    int roomnumber = 0;
    for(int i = 0; i < 4; i++){
            for(int j = 0; j < 3; j++){
               for(int k =0 ; k < 10; k++){
                  room[roomnumber] = i + j + k;
                  roomnumber++;
               }
            }//for
    }//for


  }
}

Compiler output:
Main.java:20: error: incompatible types: int cannot be converted to String
                  room[roomnumber] = i + j + k;
                                           ^
1 error
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main{
  public static void main(String[] args) throws IOException{
   BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
   //??????????????¶??°?????\???
   int n = Integer.parseInt(br.readLine());
      
   int b,r,f,v;//?£?????????°?????¨?±???????,????????\?±?
   int[] room = new Boolean[4][3][10];//??¨?±?????????°
    
   
   
   
  }
}

Compiler output:
Main.java:12: error: incompatible types: Boolean[][][] cannot be converted to int[]
   int[] room = new Boolean[4][3][10];//???????????????
                ^
1 error
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main{
  public static void main(String[] args) throws IOException{
   BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
   //??????????????¶??°?????\???
   int n = Integer.parseInt(br.readLine());
      
   int b,r,f,v;//?£?????????°?????¨?±???????,????????\?±?
   int[][][] room = new Boolean[4][3][10];//??¨?±?????????°
    
   
   
   
  }
}

Compiler output:
Main.java:12: error: incompatible types: Boolean[][][] cannot be converted to int[][][]
   int[][][] room = new Boolean[4][3][10];//???????????????
                    ^
1 error
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main{
  public static void main(String[] args) throws IOException{
   BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
   //??????????????¶??°?????\???
   int n = Integer.parseInt(br.readLine());
      
   int b,r,f,v;//?£?????????°?????¨?±???????,????????\?±?
   int[][][] room = new int[4][3][10];//??¨?±?????????°
    
   for(int i = 0;i < 4;i++){
     for(int j = 0;j < 3;j++){ 
       for(int k = 0;k < 10;k++){
         room[i][j][k] = 0;//??????????????°???0????????????
       }
     }
   }
     
    for(int i = 0;i < n;i++){   
     String line = br.readLine();  
     String[] token = line.split(" ");
     int b, f, r, v;        
     b = Integer.parseInt(token[0]);
     f = Integer.parseInt(token[1]);
     r = Integer.parseInt(token[2]);
     v = Integer.parseInt(token[3]);
     room[b-1][f-1][r-1] += v;
 
    } 



  }
}

Compiler output:
Main.java:25: error: variable b is already defined in method main(String[])
     int b, f, r, v;        
         ^
Main.java:25: error: variable f is already defined in method main(String[])
     int b, f, r, v;        
            ^
Main.java:25: error: variable r is already defined in method main(String[])
     int b, f, r, v;        
               ^
Main.java:25: error: variable v is already defined in method main(String[])
     int b, f, r, v;        
                  ^
4 errors
Language: Java

import java.io.IOException;
import java.util.ArrayList;
import java.util.Scanner;
class Main{
	public static void main(String[] args)throws NumberFormatException, IOException{

		Scanner scan = new Scanner(System.in);
		ArrayList<String> suite = new ArrayList<String>();
		ArrayList<String> hikaku = new ArrayList<String>();
		ArrayList<Integer> lb = new ArrayList<Integer>();
		ArrayList<Integer> lf = new ArrayList<Integer>();
		ArrayList<Integer> lr = new ArrayList<Integer>();
		ArrayList<Integer> lv = new ArrayList<Integer>();
		int n =scan.nextInt();
		for(int i=0;i<n;i++){
			int bb = scan.nextInt();
			int ff = scan.nextInt();
			int rr = scan.nextInt();
			int vv = scan.nextInt();
			lb.add(bb);
			lf.add(ff);
			lr.add(rr);
			lv.add(vv);
		}
		int heya = 0;
		int tou1 [] = new int [31];
		int tou2 [] = new int [31];
		int tou3 [] = new int [31];
		int tou4 [] = new int [31];
		for(int i =0;i<31;i++){
			tou1[i] = 0;
			tou2[i] = 0;
			tou3[i] = 0;
			tou4[i] = 0;
		}
		for(int i =0;i<lb.size();i++){
				heya = 0;
				heya += lr.get(i);
				heya += (lf.get(i) * 10 - 10);
				System.out.println(heya);
				if(lb.get(i) == 1){
					tou1[heya] = lv.get(i);
				}
				if(lb.get(i) == 2){
					tou2[heya] = lv.get(i);
				}
				if(lb.get(i) == 3){
					tou3[heya] = lv.get(i);
				}
				if(lb.get(i) == 4){
					tou4[heya] = lv.get(i);
				}
		}
		for(int i = 1;i<31;i++){
			System.out.print(tou1[i]);
			if(i == 10 || i == 20 || i == 30){
				System.out.println("");
			}
			else{
				System.out.print(" ");
			}
		}
		System.out.println("####################");
		for(int i = 1;i<31;i++){
			System.out.print(tou2[i]);
			if(i == 10 || i == 20 || i == 30){
				System.out.println("");
			}
			else{
				System.out.print(" ");
			}
		}
		System.out.println("####################");
		for(int i = 1;i<31;i++){
			System.out.print(tou3[i]);
			if(i == 10 || i == 20 || i == 30){
				System.out.println("");
			}
			else{
				System.out.print(" ");
			}
		}

Compiler output:
Main.java:82: error: reached end of file while parsing
		}
		 ^
1 error
Language: Java

import java.io.*;
import java.lang.StringBuilder;
public class Main {
	public static void main(String[] args) throws Exception{
		BufferedReader sc = new BufferedReader(new InputStreamReader(System.in));
		StringBuilder bu = new StringBuilder();
		int[][][] t = new int[4][3][10];
		int n = Integer.parseInt(sc.readLine());
		for(int i=0;i<n;i++){
			String[] st= sc.readLine().split(" ");
			int b = Integer.parseInt(st[0]);
			int f = Integer.parseInt(st[1]);
			int r = Integer.parseInt(st[2]);
			int v = Integer.parseInt(st[3]);
			t[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++){
					bu.append(" ").append(t[b][f][r]);
				}
				bu.append("\n")
			}
			bu.append("####################\n");
		}
		System.out.println(bu);
	}
}

Compiler output:
Main.java:22: error: ';' expected
				bu.append("\n")
				               ^
1 error
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.ArrayList;

public class java {

	public static void main(String[] args) throws java.lang.Exception
	{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		//?????±?????°n????¨??????????
		int n = (Integer.parseInt(br.readLine()));
		
		//n??¶????????±????????????
		ArrayList<String> list = new ArrayList<String>();
		for (int i = 0; i < n; i++) {
			list.add(br.readLine());
		}

		
		//?????????????????±???int??????????????????2?¬?????????????????´???????
		int[][] data = new int[n][4];
		for(int i = 0; i < n; i++) {
			String s = list.get(i);
			String [] ary = s.split(" ", 0);
		
			
			for(int j = 0; j < 4; j++) {	
				data[i][j] = Integer.parseInt(ary[j]);
			}
		}
		
		//?????±????????¨?????¨?±??????±????¨??????????
		int[][] building1 = new int[3][10];
		int[][] building2 = new int[3][10];
		int[][] building3 = new int[3][10];
		int[][] building4 = new int[3][10];
		for(int i = 0; i < n; i++) {
			int floor = data[i][1];
			int number = data[i][2];
			if(data[i][0] == 1) {
				building1[floor - 1][number -1] = building1[floor - 1][number -1] + data[i][3];
			}
			if(data[i][0] == 2) {
				building2[floor - 1][number -1] = building1[floor - 1][number -1] + data[i][3];
			}
			if(data[i][0] == 3) {
				building3[floor - 1][number -1] = building1[floor - 1][number -1] + data[i][3];
			}
			if(data[i][0] == 4) {
				building4[floor - 1][number -1] = building1[floor - 1][number -1] + data[i][3];
			}
		}
		
		//?????????????????????
		for(int i = 0; i < 3; i++) {
			for(int j = 0; j < 10; j++) {
				System.out.print(" " + building1[i][j]);
			}
			System.out.println();
		}
		System.out.println("####################");
		
		for(int i = 0; i < 3; i++) {
			for(int j = 0; j < 10; j++) {
				System.out.print(" " + building2[i][j]);
			}
			System.out.println();
		}
		System.out.println("####################");
		
		for(int i = 0; i < 3; i++) {
			for(int j = 0; j < 10; j++) {
				System.out.print(" " + building3[i][j]);
			}
			System.out.println();
		}
		System.out.println("####################");
		
		for(int i = 0; i < 3; i++) {
			for(int j = 0; j < 10; j++) {
				System.out.print(" " + building4[i][j]);
			}
			System.out.println();
		}
	}

}

Compiler output:
Main.java:5: error: class java is public, should be declared in a file named java.java
public class java {
       ^
Main.java:7: error: cannot find symbol
	public static void main(String[] args) throws java.lang.Exception
	                                                  ^
  symbol:   class lang
  location: class java
2 errors
Language: Java

import java.util.Scanner;

public class OfficialHouse {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int[][][] room = new int[4][3][10];  
		int n = sc.nextInt();  //n???????????±
		int b ;  //?£???°
		int f ;  //?????°
		int r ;  //??¨?±???°
		int v ; //?????°
	//??\???????????????	
		for(int i = 0 ; i < n ; i++) {
			b = sc.nextInt();
			f = sc.nextInt();
			r = sc.nextInt();
			v = sc.nextInt();
			
			room[b-1][f-1][r-1] += v ; 
		}
		
	//??????????????????	
	for(int i = 0; i < 4 ; i++) {
		for (int k = 0 ; k < 3 ; k++) {
			for(int rN = 0 ; rN < 10 ; rN++) {
				System.out.print(" " + room[i][k][rN]);
			}
			System.out.println("");
		}
	//????????????(#)???4?£????????????????????????????????????????????????????	
		if(i != 3 ) {
			System.out.println("####################");
		}
	}
	
     sc.close();
  }

}

Compiler output:
Main.java:3: error: class OfficialHouse is public, should be declared in a file named OfficialHouse.java
public class OfficialHouse {
       ^
1 error
Language: Java

import java.util*;

class Main{
	public static void main(String[] args){
		
		int b,f,r,v;
		int[][][] room = new int[4][3][10] //b,f,r 
		for(int i=0;i<4;i++){
			for(int j=0;j<3;j++){
				for(int t=0;t<10;t++){
					room[i][j][t]=0;
				}
			}
		}
		
		Scanner sc = new Scanner(System.in);
		int n =Integer.parseInt(sc.nextLine());
		for(int i=0;i<n;i++){
			String[] line=sc.nextLine().split(" ");
			b=Integer.parseInt(line[0]);
			f=Integer.parseInt(line[1]);
			r=Integer.parseInt(line[2]);
			v=Integer.parseInt(line[3]);
			room[b][f][r]=room[b][f][r]+v;
		}
		for(int i=0;i<4;i++){
			for(int j=0;j<3;j++){
				for(int t=0;t<10;t++){
					System.out.print(" "+room[i][j][t]);
				}
				System.out.println(" ");
			}
			if(!(i==3)){
				System.out.println("####################");
			}
		}
	}
}

Compiler output:
Main.java:1: error: ';' expected
import java.util*;
                ^
Main.java:7: error: ';' expected
		int[][][] room = new int[4][3][10] //b,f,r 
		                                  ^
2 errors
Language: Java

import java.util.Scanner;

public class Test {
	public static void main(String[] args) {
		Scanner scan=new Scanner(System.in);
		int n=scan.nextInt();
		int abc[][][] = new int[5][4][11];
		int i;
		for(i=0;i<n;i++) {
			int a=scan.nextInt();
			int b=scan.nextInt();
			int c=scan.nextInt();
			int x=scan.nextInt();
			abc[a][b][c]=x;
		}
		for(int a=1;a<5;a++) {
			for(int b=1;b<4;b++) {
				for(int c=1;c<11;c++) {
					System.out.printf(" "+abc[a][b][c]);
				}
				System.out.println();
			}
			if(a<4)
				System.out.println("####################");
			}
		System.out.println("");
		scan.close();
}
}


Compiler output:
Main.java:3: error: class Test is public, should be declared in a file named Test.java
public class Test {
       ^
1 error
Language: Java

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scan=new Scanner(System.in);
		int n=scan.nextInt();
		int a[][][] = new int[4][3][10];
		int i;
		for(i=0;i<n;i++) {
			int b=scan.nextInt()-1;
			int f=scan.nextInt()-1;
			int r=scan.nextInt()-1;
			int v=scan.nextInt();
			abc[b][f][r]=v;
		}
		for(int b=0;b<4;b++) {
			for(int f=0;f<3;f++) {
				for(int r=0;r<10;r++) {
					System.out.printf(" "+a[b][f][r]);
				}
				System.out.println(" ");
			}
			if(b<3)
				System.out.println("####################");
			}
		System.out.println("");
		scan.close();
}
}


Compiler output:
Main.java:14: error: cannot find symbol
			abc[b][f][r]=v;
			^
  symbol:   variable abc
  location: class Main
1 error
Language: Java

import java.util.Scanner;

public class Test {
	public static void main(String[] args) {
		Scanner scan=new Scanner(System.in);
		int n=scan.nextInt();
		int a[][][] = new int[4][3][10];
		int i;
		for(i=0;i<n;i++) {
			int b=scan.nextInt()-1;
			int f=scan.nextInt()-1;
			int r=scan.nextInt()-1;
			int v=scan.nextInt();
			a[b][f][r] +=v;
                        if(a[b][f][r]<0) a[b][f][r]=0;
		}
		for(int b=0;b<4;b++) {
			for(int f=0;f<3;f++) {
				for(int r=0;r<10;r++) {
					System.out.printf(" "+ a[b][f][r]);
				}
				System.out.println("");
			}
			if(b<3)
				System.out.println("####################");
			}
		scan.close();
}
}


Compiler output:
Main.java:3: error: class Test is public, should be declared in a file named Test.java
public class Test {
       ^
1 error
Language: Java

public class Main {

	static int[][][] oh = new int[4][3][10];

	public static void main(String[] args) {
		int[] edit = new int[4];
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();

		for (int i = 0; i < n; i++) {
			for (int j = 0; j < 4; j++) {
				edit[j] = sc.nextInt();
			}
			editRoom(edit[0], edit[1], edit[2], edit[3]);
		}

		dispHouse();

		sc.close();
	}

	private static void dispHouse() {

		for(int i = 0; i < oh.length; i++) {
			for(int j = 0; j < oh[0].length; j++) {
				for(int k = 0; k < oh[0][0].length; k++) {

					System.out.print(" " + oh[i][j][k]);

				}

					System.out.println();
			}
				if (i < oh.length - 1) {
					System.out.println("####################");
				}

		}

	}

	public static void editRoom(int b, int f, int r, int v){
		oh[b - 1][f - 1][r - 1] += v;
	}
}


Compiler output:
Main.java:7: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:7: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		                 ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: Java

import scala.io.StdIn.{readLine,readInt}
 
object Main {
 
  def main(args: Array[String]) = {
    val n = readInt
    val rooms = Array.ofDim[Int](4,3,10)
 
    (1 to n) foreach { _ =>
      val v = readLine.split(" ").map(_.toInt)
      rooms(v(0)-1)(v(1)-1)(v(2)-1) += v(3)
    }
 
    for(b <- 0 to 3) {
      for(f <- 0 to 2) {
        for(r <- 0 to 9) {
          print(" "+rooms(b)(f)(r))
        }
        println()
      }
      if(b!=3) {
        println("####################")
      }
    }
  }
}


Compiler output:
Main.java:1: error: <identifier> expected
import scala.io.StdIn.{readLine,readInt}
                      ^
1 error
Language: Java

import scala.io.StdIn.{readLine,readInt}
 
object Main {
 
  def main(args: Array[String]) = {
    val n = readInt
    val rooms = Array.ofDim[Int](4,3,10)
 
    1 to n foreach { _ =>
      val v = readLine.split(" ").map(_.toInt)
      rooms(v(0)-1)(v(1)-1)(v(2)-1) += v(3)
    }
 
    for(b <- 0 to 3) {
      for(f <- 0 to 2) {
        for(r <- 0 to 9) {
          print(" "+rooms(b)(f)(r))
        }
        println()
      }
      if(b!=3) {
        println("####################")
      }
    }
  }
}


Compiler output:
Main.java:1: error: <identifier> expected
import scala.io.StdIn.{readLine,readInt}
                      ^
1 error
Language: Java

import java.util.Scanner;

public class Main {

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


Compiler output:
Main.java:28: error: reached end of file while parsing
		}
		 ^
1 error
Language: Java

import java.util.Scanner;

class Main{
	public static void main(String[] args){
		Scanner stdIn=new Scanner(System.in);
		int n,b,f,r,v,i,j,k;
		int[][][] a=new int[4][3][10]={0};
		n=stdIn.nextInt();
		for(i=0;i<n;i++){
			b=stdIn.nextInt();
			f=stdIn.nextInt();
			r=stdIn.nextInt();
			v=stdIn.nextInt();
			a[b-1][f-1][r-1]+=v;
		}
		for(i=0;i<4;i++){
			for(j=0;j<3;j++){
				for(k=0;k<10;k++)System.out.print(" "+a[i][j][k]);
				System.out.println();
			}
			if(i!=3)System.out.println("####################");
		}
	}
}


Compiler output:
Main.java:7: error: illegal start of expression
		int[][][] a=new int[4][3][10]={0};
		                              ^
Main.java:7: error: not a statement
		int[][][] a=new int[4][3][10]={0};
		                               ^
Main.java:7: error: ';' expected
		int[][][] a=new int[4][3][10]={0};
		                                ^
3 errors
Language: Java

import java.util.Scanner;
  
public class Main{
  
    public static void main(String[] args) {
  
        //
        int input_low = 0;
        int house_number = 0;
        int floar_number = 0;
        int room_number = 0;
        int person = 0;
  
        // テキスト入力
        Scanner sc = new Scanner(System.in);
  
        // A大学の公舎を作る
        int school_house[][][];
        school_house = new int[4][3][10];
  
        // 入力の数だけ回す
        while (sc.hasNext()) {
  
            // 入力行数
            input_low = sc.nextInt();
  
            // 入力行数分回す
            for (int i = 0; i < input_low; i++) {
  
while(sc.hasNext){
                // 部屋の指定
                house_number = sc.nextInt();
                floar_number = sc.nextInt();
                room_number = sc.nextInt();
                person = sc.nextInt();
 break;}
                // 部屋に人を放り込む
                school_house[house_number][floar_number][room_number] = person;
  
            }break;}
            // 出力
            for (int hi = 0; hi < 4; hi++) {
                for (int fi = 0; fi < 3; fi++) {
                    for (int ri = 0; ri < 10; ri++) {
                        System.out.print(school_house[hi][fi][ri]);
                    }
                    System.out.print("\n");
                }
                System.out.println("####################");
            }
         
    }
  
}

Compiler output:
Main.java:30: error: cannot find symbol
while(sc.hasNext){
        ^
  symbol:   variable hasNext
  location: variable sc of type Scanner
1 error
Language: Java

import java.util.Scanner;


public class Official_House {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int[][][] house = new int[4][3][10];
		int n = scan.nextInt();
		for(int i = 0; i < n; i++){
			int b = scan.nextInt() - 1;
			int f = scan.nextInt() - 1;
			int r = scan.nextInt() - 1;
			int v = scan.nextInt();
			house[b][f][r] = v;
		}
		for(int i = 0; i < 4; i++){
			for(int j = 0; j < 3; j++){
				for(int k = 0; k < 10; k++){
					System.out.print(" " + house[i][j][k]);
				}System.out.println();
			}
			System.out.println("####################");
		}

	}

}

Compiler output:
Main.java:4: error: class Official_House is public, should be declared in a file named Official_House.java
public class Official_House {
       ^
1 error
Language: Java

import java.util.Scanner;

public class Main{
	public static void main(String[] args){
		Scanner scan = null;
		try{
			scan = new Scanner(System.in);
			int[][][] count = new int[4][3][10];
			int n = scan.nextInt();
			for(int i = 0 ; i< n;i++){
				int b = scan.nextInt();
				int f = scan.nextInt();
				int r = scan.nextInt();
				int v = scan.nextInt();
				count[b-1][f-1][r-1] = v;
			}
			for(int i = 0; i < count.length;i++){
				for(int j = 0 ; j < count[i].length;j++){
					System.out.print(count[i][j][0]);
					for(int k = 1; k < count[i][j].length;k++){
						System.out.print(" " + count[i][j][k]);
					}
					System.out.println();
				}
				if( i != count.length -1){
				for(int j = 0; j < 20;j++){
					System.out.print("#");
				}
				}
				System.out.println();
			}
		}finally{
			if(scan != null)scan.close();
		}
	}
}import java.util.Scanner;

public class Main{
	public static void main(String[] args){
		Scanner scan = null;
		try{
			scan = new Scanner(System.in);
			int[][][] count = new int[4][3][10];
			int n = scan.nextInt();
			for(int i = 0 ; i< n;i++){
				int b = scan.nextInt();
				int f = scan.nextInt();
				int r = scan.nextInt();
				int v = scan.nextInt();
				count[b-1][f-1][r-1] = v;
			}
			for(int i = 0; i < count.length;i++){
				for(int j = 0 ; j < count[i].length;j++){
					System.out.print(count[i][j][0]);
					for(int k = 1; k < count[i][j].length;k++){
						System.out.print(" " + count[i][j][k]);
					}
					System.out.println();
				}
				if( i != count.length -1){
				for(int j = 0; j < 20;j++){
					System.out.print("#");
				}
				}
				System.out.println();
			}
		}finally{
			if(scan != null)scan.close();
		}
	}
}

Compiler output:
Main.java:36: error: class, interface, enum, or record expected
}import java.util.Scanner;
 ^
1 error
Language: C

#include<stdio.h>

int main(){
  int tou;
  int kai;
  int situ;
  int t[4][3][10]
  int n,c;
  scanf("%d",&c);
  for(i=0;i<c;i++){
    scanf("%d %d %d %d",&tou,&kai,&situ,&n);
    t[tou][kai][situ]=n;

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


Compiler output:
main.c: In function 'main':
main.c:7:18: error: expected ';' before 'int'
    7 |   int t[4][3][10]
      |                  ^
      |                  ;
    8 |   int n,c;
      |   ~~~             
main.c:10:7: error: 'i' undeclared (first use in this function)
   10 |   for(i=0;i<c;i++){
      |       ^
main.c:10:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:12:5: error: 't' undeclared (first use in this function)
   12 |     t[tou][kai][situ]=n;
      |     ^
main.c:15:9: error: 'j' undeclared (first use in this function)
   15 |     for(j=1;j<4;j++){
      |         ^
main.c:16:11: error: 'k' undeclared (first use in this function)
   16 |       for(k=1;k<10;k++){
      |           ^
main.c:17:32: error: expected ';' before '}' token
   17 |       printf(" %d",&t[i][j][k])}
      |                                ^
      |                                ;
main.c:21:1: error: expected declaration or statement at end of input
   21 | }
      | ^
Language: C

#include<stdio.h>

int main(){
  int tou;
  int kai;
  int situ;
  int t[4][3][10];
  int n,c;
  scanf("%d",&c);
  for(i=0;i<c;i++){
    scanf("%d %d %d %d",&tou,&kai,&situ,&n);
    t[tou][kai][situ]=n;

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


Compiler output:
main.c: In function 'main':
main.c:10:7: error: 'i' undeclared (first use in this function)
   10 |   for(i=0;i<c;i++){
      |       ^
main.c:10:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:15:9: error: 'j' undeclared (first use in this function)
   15 |     for(j=1;j<4;j++){
      |         ^
main.c:16:11: error: 'k' undeclared (first use in this function)
   16 |       for(k=1;k<10;k++){
      |           ^
main.c:17:32: error: expected ';' before '}' token
   17 |       printf(" %d",&t[i][j][k])}
      |                                ^
      |                                ;
main.c:21:1: error: expected declaration or statement at end of input
   21 | }
      | ^
Language: C

#include<stdio.h>

int main(){
  int tou;
  int kai;
  int situ;
  int t[4][3][10];
  int n,c;
  scanf("%d",&c);

  for(i=0;i<c;i++){
    scanf("%d %d %d %d",&tou,&kai,&situ,&n);
    t[tou][kai][situ]=n;}

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


Compiler output:
main.c: In function 'main':
main.c:11:7: error: 'i' undeclared (first use in this function)
   11 |   for(i=0;i<c;i++){
      |       ^
main.c:11:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:16:9: error: 'j' undeclared (first use in this function)
   16 |     for(j=1;j<4;j++){
      |         ^
main.c:17:11: error: 'k' undeclared (first use in this function)
   17 |       for(k=1;k<10;k++){
      |           ^
main.c:18:32: error: expected ';' before '}' token
   18 |       printf(" %d",&t[i][j][k])}
      |                                ^
      |                                ;
Language: C

#include<stdio.h>

int main(){
  int tou;
  int kai;
  int situ;
  int t[4][3][10];
  int n,c,i,j,k;
  scanf("%d",&c);

  for(i=0;i<c;i++){
    scanf("%d %d %d %d",&tou,&kai,&situ,&n);
    t[tou][kai][situ]=n;}

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


Compiler output:
main.c: In function 'main':
main.c:18:32: error: expected ';' before '}' token
   18 |       printf(" %d",&t[i][j][k])}
      |                                ^
      |                                ;
Language: C

#include<stdio.h>
 
 int main()
{
 int a,b,f,r,v,i,j,n;

 int t[4][3][10]={0};

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

for(k=0;k<4;k++){
                for(j=0;j<3;j++){
                                 for(1=0;1<10;1++){
                                                    printf(" %d",t[k][j][i]);
                                                   }
                                 }
                if(k==3)break;
                printf("####################");
                }
return 0;
}


Compiler output:
main.c: In function 'main':
main.c:15:5: error: 'k' undeclared (first use in this function)
   15 | for(k=0;k<4;k++){
      |     ^
main.c:15:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:17:39: error: lvalue required as left operand of assignment
   17 |                                  for(1=0;1<10;1++){
      |                                       ^
main.c:17:48: error: lvalue required as increment operand
   17 |                                  for(1=0;1<10;1++){
      |                                                ^~
Language: C

#include<stdio.h>
 
 int main()
{
 int a,b,f,r,v,i,j,n;

 int t[4][3][10]={0};

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

for(k=0;k<4;k++){
                for(j=0;j<3;j++){
                                 for(i=0;i<10;i++){
                                                    printf(" %d",t[k][j][i]);
                                                   }
                                 }
                if(k==3)break;
                printf("####################");
                }
return 0;
}


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

#include<stdio.h>
 
 int main()
{
 int a,b,f,r,v,i,j,n,k;

 int t[4][3][10]={0};

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

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


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

#include<stdio.h>
 
 int main()
{
 int a,b,f,r,v,i,j,n,k;

 int t[4][3][10]={0};

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

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


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

#include<stdio.h>
 
 int main()
{
 int a,b,f,r,v,i,j,n,k;

 int t[4][3][10]={0};

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

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


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

include<stdio.h>

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

	return 0;
}


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