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

let () = 
    let (s, h, c, d) = (0, 1, 2, 3)
    let arr = Array.make_matrix 4 13 false in
    let n = read_int () in
    for _ = 1 to n do 
        let (a, j) = Scanf.scanf "%c %d\n" (fun x y -> (x, y - 1)) in
	match a with
            | 'S' -> arr(s).(j) <- true
            | 'H' -> arr(h).(j) <- true
            | 'C' -> arr(c).(j) <- true
            | 'D' -> arr(d).(j) <- true
            | _   -> ()
    done;
    let f c = 
        Array.iteri (fun i v -> if not v then Printf.printf "%c %d\n" c (i + 1) ); in
    f 'S' arr(s);
    f 'H' arr(h);
    f 'C' arr(c);
    f 'D' arr(d);
;;


Compiler output:
a.cc:1:8: error: expected constructor, destructor, or type conversion before '=' token
    1 | let () =
      |        ^
a.cc:14:5: error: 'let' does not name a type
   14 |     let f c =
      |     ^~~
a.cc:15:84: error: 'in' does not name a type; did you mean 'int'?
   15 |         Array.iteri (fun i v -> if not v then Printf.printf "%c %d\n" c (i + 1) ); in
      |                                                                                    ^~
      |                                                                                    int
a.cc:17:5: error: 'f' does not name a type
   17 |     f 'H' arr(h);
      |     ^
a.cc:18:5: error: 'f' does not name a type
   18 |     f 'C' arr(c);
      |     ^
a.cc:19:5: error: 'f' does not name a type
   19 |     f 'D' arr(d);
      |     ^
Language: C++

let () = 
    let (s, h, c, d) = (0, 1, 2, 3) in
    let arr = Array.make_matrix 4 13 false in
    let n = read_int () in
    for _ = 1 to n do 
        let (a, j) = Scanf.scanf "%c %d\n" (fun x y -> (x, y - 1)) in
	match a with
            | 'S' -> arr(s).(j) <- true
            | 'H' -> arr(h).(j) <- true
            | 'C' -> arr(c).(j) <- true
            | 'D' -> arr(d).(j) <- true
            | _   -> ()
    done;
    let f c = 
        Array.iteri (fun i v -> if not v then Printf.printf "%c %d\n" c (i + 1) ); in
    f 'S' arr(s);
    f 'H' arr(h);
    f 'C' arr(c);
    f 'D' arr(d);
;;


Compiler output:
a.cc:1:8: error: expected constructor, destructor, or type conversion before '=' token
    1 | let () =
      |        ^
a.cc:14:5: error: 'let' does not name a type
   14 |     let f c =
      |     ^~~
a.cc:15:84: error: 'in' does not name a type; did you mean 'int'?
   15 |         Array.iteri (fun i v -> if not v then Printf.printf "%c %d\n" c (i + 1) ); in
      |                                                                                    ^~
      |                                                                                    int
a.cc:17:5: error: 'f' does not name a type
   17 |     f 'H' arr(h);
      |     ^
a.cc:18:5: error: 'f' does not name a type
   18 |     f 'C' arr(c);
      |     ^
a.cc:19:5: error: 'f' does not name a type
   19 |     f 'D' arr(d);
      |     ^
Language: C++

let () = 
    let (s, h, c, d) = (0, 1, 2, 3) in
    let arr = Array.make_matrix 4 13 false in
    let n = read_int () in
    for _ = 1 to n do 
        let (a, j) = Scanf.scanf "%c %d\n" (fun x y -> (x, y - 1)) in
	match a with
            | 'S' -> arr.(s).(j) <- true
            | 'H' -> arr.(h).(j) <- true
            | 'C' -> arr.(c).(j) <- true
            | 'D' -> arr.(d).(j) <- true
            | _   -> ()
    done;
    let f c = 
        Array.iteri (fun i v -> if not v then Printf.printf "%c %d\n" c (i + 1) ); in
    f 'S' arr.(s);
    f 'H' arr.(h);
    f 'C' arr.(c);
    f 'D' arr.(d);
;;


Compiler output:
a.cc:1:8: error: expected constructor, destructor, or type conversion before '=' token
    1 | let () =
      |        ^
a.cc:14:5: error: 'let' does not name a type
   14 |     let f c =
      |     ^~~
a.cc:15:84: error: 'in' does not name a type; did you mean 'int'?
   15 |         Array.iteri (fun i v -> if not v then Printf.printf "%c %d\n" c (i + 1) ); in
      |                                                                                    ^~
      |                                                                                    int
a.cc:17:5: error: 'f' does not name a type
   17 |     f 'H' arr.(h);
      |     ^
a.cc:18:5: error: 'f' does not name a type
   18 |     f 'C' arr.(c);
      |     ^
a.cc:19:5: error: 'f' does not name a type
   19 |     f 'D' arr.(d);
      |     ^
Language: C++

#include<iostream>
using namespace std;

int main(){

	//初期化
	int n, x;
	char c;
	bool cards[4][13];

	for(int i = 0; i < 4; i++){
		for(int j = 0; j < 13; j++){
			cards[i][j] == false;
		}
	}

	//入力
	cin >> n;

	for(int i = 0; i < n; i++){

		cin >> c >> x;

		if(c == 'S') cards[0][x] == true;
		else if(c == 'H') cards[1][x] = true;
		else if(c == 'C') cards[2][x] = true;
		else if(c == 'D') cards[3][x] = true
	}
	

	//表示
	for(int i = 0; i < 4; i++){
		for(int j = 0; j < 13; j++){
			if(cards[i][j] == false){
				if(i == 0) cout << 'S' << " " << j + 1 << endl;
				else if(i == 1) cout << 'H' << " " << j + 1 << endl;
				else if(i == 2) cout << 'C' << " " << j + 1 << endl;
				else if(i == 3) cout << 'D' << " " << j + 1 << endl;
			}	
							
		}
	}

	return 0;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:27:53: error: expected ';' before '}' token
   27 |                 else if(c == 'D') cards[3][x] = true
      |                                                     ^
      |                                                     ;
   28 |         }
      |         ~
Language: C++

fn main() {
	let mut s = [false; 13];
	let mut h = [false; 13];
	let mut c = [false; 13];
	let mut d = [false; 13];
	
	let n = readLine::<usize>();
	for _ in 0..n {
	    let mut line = String::new();
	    std::io::stdin().read_line(&mut line).ok();
		let v : Vec<&str> = line.trim().split_whitespace().collect();
		let (suit, i) = (v[0], v[1].parse::<usize>().ok().unwrap() - 1);
		
		match suit {
			"S" => s[i] = true,
			"H" => h[i] = true,
			"C" => c[i] = true,
			"D" => d[i] = true,
			_   => panic!(),
		}
	}
	print_card("S", s);
	print_card("H", h);
	print_card("C", c);
	print_card("D", d);
}

fn print_card(suit: &str, xs: [bool; 13]) {
	for i in 0..13 {
		if !xs[i] {
			println!("{} {}", suit, i + 1);
		}
	}
}

fn readLine<T: std::str::FromStr>() -> T {
    let mut line = String::new();
    std::io::stdin().read_line(&mut line).ok();
    line.trim().parse().ok().unwrap()
}


Compiler output:
a.cc:8:18: error: too many decimal points in number
    8 |         for _ in 0..n {
      |                  ^~~~
a.cc:29:18: error: too many decimal points in number
   29 |         for i in 0..13 {
      |                  ^~~~~
a.cc:1:1: error: 'fn' does not name a type
    1 | fn main() {
      | ^~
a.cc:28:1: error: 'fn' does not name a type
   28 | fn print_card(suit: &str, xs: [bool; 13]) {
      | ^~
a.cc:28:38: error: expected unqualified-id before numeric constant
   28 | fn print_card(suit: &str, xs: [bool; 13]) {
      |                                      ^~
a.cc:36:1: error: 'fn' does not name a type
   36 | fn readLine<T: std::str::FromStr>() -> T {
      | ^~
Language: C++

#include <stdio.h>
#include <ctype.h>
#include <stdlib.h>

int main()
{
	int i, n, id, rank;
	short card[4][14];
	char buf[100], *p;
	char ids[4] = { 'S', 'H', 'C', 'D' };

	for (id = 0; id < 4; id++) {
		for (rank = 1; rank <= 13; rank++) card[id][rank] = 1;
	}
	gets(buf);
	n = atoi(buf);
	for (i = 0; i < n; i++) {
		gets(buf);
		p = buf;
		while (isspace(*p)) p++;
		switch (*p) {
		case 'S': id = 0; break;
		case 'H': id = 1; break;
		case 'C': id = 2; break;
		case 'D': id = 3; break;
		}
		rank = atoi(++p);
//		printf("id=%d, rank=%d\n", id, rank);
		card[id][rank] = 0;
	}
	for (id = 0; id < 4; id++) {
		for (rank = 1; rank <= 13; rank++) {
			if (card[id][rank]) printf("%c %d\n", ids[id], rank);
		}
	}
	return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:15:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
   15 |         gets(buf);
      |         ^~~~
      |         getw
Language: C++

#include<cstdio>
#include<cstring>

int main(){
bool b[4][13];
int i,n,m;
int c;
memset(b,1,sizeof(b));
scanf("&d",&n);
for(i=0;i<n;i++){
scanf("&c&d",&c&m);
if(c=='S')b[0][m-1]=false;
if(c=='H')b[1][m-1]=false;
if(c=='C')b[2][m-1]=false;
if(c=='D')b[3][m-1]=false;
}

for(i=0;i<13;i++)if(b[0][i])printf("S %d",i+1);
for(i=0;i<13;i++)if(b[1][i])printf("H %d",i+1);
for(i=0;i<13;i++)if(b[2][i])printf("C %d",i+1);
for(i=0;i<13;i++)if(b[3][i])printf("D %d",i+1);

return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:16: error: invalid operands of types 'int*' and 'int' to binary 'operator&'
   11 | scanf("&c&d",&c&m);
      |              ~~^~
      |              |  |
      |              |  int
      |              int*
Language: C++

#include<algorithm>
#include<string>
#include<cmath>
#include<vector>

using namespace std;

int toint(char c)
{
  if(c == 'S')
    return 0;
  if(c == 'H')
    return 1;
  if(c == 'C')
    return 2;
  if(c == 'D')
    return 3;
}
char tochar(int n)
{
  if(n == 0)
    return 'S';
  if(n == 1)
    return 'H';
  if(n == 2)
    return 'C';
  if(n == 3)
    return 'D';
}


bool state[4][14];
int main()
{
  int n;
  char m;
  int d;
  cin >> n;
  for(int i = 0; i < n; i++)
  {
    cin >> m >> d;
    state[toint(m)][d] = true;
  }

  for(int i = 0; i < 4; i++)
  {
    for(int j = 1; j < 13; j++)
    {
      if(!state[i][j])
        cout << tochar(i) << " " << j << endl;
    }
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:38:3: error: 'cin' was not declared in this scope
   38 |   cin >> n;
      |   ^~~
a.cc:5:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    4 | #include<vector>
  +++ |+#include <iostream>
    5 | 
a.cc:50:9: error: 'cout' was not declared in this scope
   50 |         cout << tochar(i) << " " << j << endl;
      |         ^~~~
a.cc:50:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:50:42: error: 'endl' was not declared in this scope
   50 |         cout << tochar(i) << " " << j << endl;
      |                                          ^~~~
a.cc:5:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    4 | #include<vector>
  +++ |+#include <ostream>
    5 | 
a.cc: In function 'int toint(char)':
a.cc:18:1: warning: control reaches end of non-void function [-Wreturn-type]
   18 | }
      | ^
a.cc: In function 'char tochar(int)':
a.cc:29:1: warning: control reaches end of non-void function [-Wreturn-type]
   29 | }
      | ^
Language: C++

#include <stdio.h>
using namespace std;
int main(){
	
	int card[4][13]={0};
	char ckind;
	int number;
	char kind[4]={'S','H','C','D'};
	int i;
	int j;
	int n;
	
	cin >> n;
	
	for(i=0;i<n;i++){
			cin >> ckind >> number ;
			switch(ckind){
				case 'S': card[0][number-1]=1;
				case 'H': card[1][number-1]=1;
				case 'C': card[2][number-1]=1;
				case 'D': card[3][number-1]=1;
		}
	}
	
	
	/*for(i=0;i<4;i++){
		for(j=0;j<13;j++){
			printf("%d",card[i][j]);

		}
}*/
	
	for(i=0;i<4;i++){
		for(j=0;j<13;j++){
			if(card[i][j]==0)
                        cout << kind[i] <<" " << j+1 << endl;
		}
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:9: error: 'cin' was not declared in this scope
   13 |         cin >> n;
      |         ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include <stdio.h>
  +++ |+#include <iostream>
    2 | using namespace std;
a.cc:36:25: error: 'cout' was not declared in this scope
   36 |                         cout << kind[i] <<" " << j+1 << endl;
      |                         ^~~~
a.cc:36:25: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:36:57: error: 'endl' was not declared in this scope
   36 |                         cout << kind[i] <<" " << j+1 << endl;
      |                                                         ^~~~
a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    1 | #include <stdio.h>
  +++ |+#include <ostream>
    2 | using namespace std;
Language: C++

#include<iostream>
#include<stdio.h>
using namespace std;

main() {

  int i, r, n, s[13], h[13], c[13], d[13];
  string f;
  cin >> n;

  for(i = 0; i < n; i++){
    cin >> f >> r;
    if(f == "S"){
      s[r-1] = r; 
    }else if(f == "H"){
      h[r-1] = r;
    }else if(f == "C"){
      c[r-1] = r;
    }else {
      d[r-1] = r;
    }
    
  }

  for(i = 0; i < 13; i++){
    if(i+1 != s[i]){
      printf("S %d\n",i+1);
    }
  }
  for(i = 0; i < 13; i++){
    if(i+1 != h[i]){
      printf("H %d\n",i+1);
    }
  }
  for(i = 0; i < 13; i++){
    if(i+1 != c[i]){
      printf("C %d\n",i+1);
    }
  }
  for(i = 0; i < 13; i++){
    if(i+1 != d[i]){
      printf("D %d\n",i+1);
    }
  }

Compiler output:
a.cc:5:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    5 | main() {
      | ^~~~
a.cc: In function 'int main()':
a.cc:44:4: error: expected '}' at end of input
   44 |   }
      |    ^
a.cc:5:8: note: to match this '{'
    5 | main() {
      |        ^
Language: C++

#include<iostream>
#include<stdio.h>
using namespace std;

main() {

  int i, r, n, s[13], h[13], c[13], d[13];
  char f;
  cin >> n;

  for(i = 0; i < n; i++){
    cin >> f >> r;
    if(f == "S"){
      s[r-1] = r; 
    }else if(f == "H"){
      h[r-1] = r;
    }else if(f == "C"){
      c[r-1] = r;
    }else {
      d[r-1] = r;
    }
    
  }

  for(i = 0; i < 13; i++){
    if(i+1 != s[i]){
      printf("S %d\n",i+1);
    }
  }
  for(i = 0; i < 13; i++){
    if(i+1 != h[i]){
      printf("H %d\n",i+1);
    }
  }
  for(i = 0; i < 13; i++){
    if(i+1 != c[i]){
      printf("C %d\n",i+1);
    }
  }
  for(i = 0; i < 13; i++){
    if(i+1 != d[i]){
      printf("D %d\n",i+1);
    }
  }

Compiler output:
a.cc:5:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    5 | main() {
      | ^~~~
a.cc: In function 'int main()':
a.cc:13:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   13 |     if(f == "S"){
      |        ~~^~~~~~
a.cc:15:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   15 |     }else if(f == "H"){
      |              ~~^~~~~~
a.cc:17:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   17 |     }else if(f == "C"){
      |              ~~^~~~~~
a.cc:44:4: error: expected '}' at end of input
   44 |   }
      |    ^
a.cc:5:8: note: to match this '{'
    5 | main() {
      |        ^
Language: Java

import java.util.Scanner;

public class Main_2 {
	
	public static void main(String[] args) {
		int a = 0;
		int to,kai,ban;
		int [][][] nin = new int [5][4][11];
		
		for(to = 1; to < 5; to++){
			for(kai = 1; kai < 4; kai++){
				for(ban = 1; ban < 11; ban++){
					nin[to][kai][ban] = 0;
				}
			}
		}
		
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		while(a != n){
			String i = sc.next();        // b=棟  f=階  r=号  v=人数
			int f = sc.nextInt();
			int r = sc.nextInt();
			int v = sc.nextInt();
			int b = Integer.parseInt(i);
			nin [b][f][r] = nin [b][f][r] + v;
			a++;
		}
		
		for(to = 1; to < 5; to++){
			for(kai = 1; kai < 4; kai++){
				for(ban = 1; ban < 11; ban++){
					if(ban == 1){
						System.out.print(" " + nin[to][kai][ban] + " ");
					}else if(ban != 10){
						System.out.print(nin[to][kai][ban] + " ");
					}else{
						System.out.print(nin[to][kai][ban]);
					}
				}
				System.out.println();
			}
			if(kai == 4 && to != 4){
				System.out.println("####################");
			}
		}
		sc.close();
	}
}


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

import java.util.Scanner;

public class Main_2 {
	
	public static void main(String[] args) {
		int a = 0;
		int to,kai,ban;
		int [][][] nin = new int [5][4][11];
		
		for(to = 1; to < 5; to++){
			for(kai = 1; kai < 4; kai++){
				for(ban = 1; ban < 11; ban++){
					nin[to][kai][ban] = 0;
				}
			}
		}
		
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		while(a != n){
			String i = sc.next();        // b=棟  f=階  r=号  v=人数
			int f = sc.nextInt();
			int r = sc.nextInt();
			int v = sc.nextInt();
			int b = Integer.parseInt(i);
			nin [b][f][r] = nin [b][f][r] + (v);
			a++;
		}
		
		for(to = 1; to < 5; to++){
			for(kai = 1; kai < 4; kai++){
				for(ban = 1; ban < 11; ban++){
					if(ban == 1){
						System.out.print(" " + nin[to][kai][ban] + " ");
					}else if(ban != 10){
						System.out.print(nin[to][kai][ban] + " ");
					}else{
						System.out.print(nin[to][kai][ban]);
					}
				}
				System.out.println();
			}
			if(kai == 4 && to != 4){
				System.out.println("####################");
			}
		}
		sc.close();
	}
}


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

import java.util.Scanner;

public class Main_2 {
	
	public static void main(String[] args) {
		int a = 0;
		int to,kai,ban;
		int [][][] nin = new int [5][4][11];
		
		for(to = 1; to < 5; to++){
			for(kai = 1; kai < 4; kai++){
				for(ban = 1; ban < 11; ban++){
					nin[to][kai][ban] = 0;
				}
			}
		}
		
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		while(a != n){
			String i = sc.next();        // b=棟  f=階  r=号  v=人数
			int f = sc.nextInt();
			int r = sc.nextInt();
			int v = sc.nextInt();
			int b = Integer.parseInt(i);
			nin [b][f][r] = nin [b][f][r] + (v);
			a++;
		}
		
		for(to = 1; to < 5; to++){
			for(kai = 1; kai < 4; kai++){
				for(ban = 1; ban < 11; ban++){
					if(ban == 1){
						System.out.print(" " + nin[to][kai][ban] + " ");
					}else if(ban != 10){
						System.out.print(nin[to][kai][ban] + " ");
					}else{
						System.out.print(nin[to][kai][ban]);
					}
				}
				if(to != 5){
					System.out.println();
				}
			}
			if(kai == 4 && to != 4){
				System.out.println("####################");
			}
		}
		sc.close();
	}
}


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

import java.util.Scanner;

public class Main_2 {
	
	public static void main(String[] args) {
		int a = 0;
		int to,kai,ban;
		int [][][] nin = new int [5][4][11];
		
		for(to = 1; to < 5; to++){
			for(kai = 1; kai < 4; kai++){
				for(ban = 1; ban < 11; ban++){
					nin[to][kai][ban] = 0;
				}
			}
		}
		
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		while(a != n){
			String i = sc.next();        // b=棟  f=階  r=号  v=人数
			int f = sc.nextInt();
			int r = sc.nextInt();
			int v = sc.nextInt();
			int b = Integer.parseInt(i);
			nin [b][f][r] = nin [b][f][r] + v;
			a++;
		}
		
		for(to = 1; to < 5; to++){
			for(kai = 1; kai < 4; kai++){
				for(ban = 1; ban < 11; ban++){
					if(ban == 1){
						System.out.print(" " + nin[to][kai][ban] + " ");
					}else if(ban != 10){
						System.out.print(nin[to][kai][ban] + " ");
					}else{
						System.out.print(nin[to][kai][ban]);
					}
				}
				if(to != 5){
					System.out.println();
				}
			}
			if(kai == 4 && to != 4){
				System.out.println("####################");
			}
		}
		sc.close();
	}
}


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

import java.util.Scanner;

public class Main_2 {
	
	public static void main(String[] args) {
		int a = 0;
		int to,kai,ban;
		int [][][] nin = new int [5][4][11];
		
		for(to = 1; to < 5; to++){
			for(kai = 1; kai < 4; kai++){
				for(ban = 1; ban < 11; ban++){
					nin[to][kai][ban] = 0;
				}
			}
		}
		
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		while(a != n){
			String i = sc.next();        // b=棟  f=階  r=号  v=人数
			int f = sc.nextInt();
			int r = sc.nextInt();
			int v = sc.nextInt();
			int b = Integer.parseInt(i);
			nin [b][f][r] = nin [b][f][r] + v;
			a++;
		}
		
		for(to = 1; to < 5; to++){
			for(kai = 1; kai < 4; kai++){
				for(ban = 1; ban < 11; ban++){
					if(ban == 1){
						System.out.print(nin[to][kai][ban] + " ");
					}else if(ban != 10){
						System.out.print(nin[to][kai][ban] + " ");
					}else{
						System.out.print(nin[to][kai][ban]);
					}
				}
				if(to != 5){
					System.out.println();
				}
			}
			if(kai == 4 && to != 4){
				System.out.println("####################");
			}
		}
		sc.close();
	}
}


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

import java.util.Scanner;

public class Main_2 {
	
	public static void main(String[] args) {
		int a = 0;
		int to,kai,ban;
		int [][][] nin = new int [5][4][11];
		
		for(to = 1; to < 5; to++){
			for(kai = 1; kai < 4; kai++){
				for(ban = 1; ban < 11; ban++){
					nin[to][kai][ban] = 0;
				}
			}
		}
		
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		while(a != n){
			int b = sc.nextInt();    // b=棟  f=階  r=号  v=人数
			int f = sc.nextInt();
			int r = sc.nextInt();
			int v = sc.nextInt();
			nin [b][f][r] = nin [b][f][r] + v;
			a++;
		}
		
		for(to = 1; to < 5; to++){
			for(kai = 1; kai < 4; kai++){
				for(ban = 1; ban < 11; ban++){
					if(ban == 1){
						System.out.print(" " + nin[to][kai][ban] + " ");
					}else if(ban != 10){
						System.out.print(nin[to][kai][ban] + " ");
					}else{
						System.out.print(nin[to][kai][ban]);
					}
				}
				if(to != 5){
					System.out.println();
				}
			}
			if(kai == 4 && to != 4){
				System.out.println("####################");
			}
		}
		sc.close();
	}
}


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

import java.util.Scanner;

public class Main_2  {
	
	public static void main(String[] args) {
		int a = 0;
		int to,kai,ban;
		int [][][] nin = new int [5][4][11];
		
		for(to = 1; to < 5; to++){
			for(kai = 1; kai < 4; kai++){
				for(ban = 1; ban < 11; ban++){
					nin[to][kai][ban] = 0;
				}
			}
		}
		
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		while(a != n){
			String i = sc.next();        // b=棟  f=階  r=号  v=人数
			int f = sc.nextInt();
			int r = sc.nextInt();
			int v = sc.nextInt();
			int b = Integer.parseInt(i);
			nin [b][f][r] = nin [b][f][r] + v;
			a++;
		}
		
		for(to = 1; to < 5; to++){
			for(kai = 1; kai < 4; kai++){
				for(ban = 1; ban < 11; ban++){
					if(ban == 1){
						System.out.print(" " + nin[to][kai][ban] + " ");
					}else if(ban != 10){
						System.out.print(nin[to][kai][ban] + " ");
					}else{
						System.out.print(nin[to][kai][ban]);
					}
				}
				System.out.println();
			}
			if(kai == 4 && to != 4){
				System.out.println("####################");
			}
		}
		sc.close();
	}
}


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

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


Compiler output:
Main.java:13: error: cannot find symbol
        int n = sc.nextInt();
                ^
  symbol:   variable sc
  location: class Main
Main.java:16: error: cannot find symbol
            int b = sc.nextInt();
                    ^
  symbol:   variable sc
  location: class Main
Main.java:17: error: cannot find symbol
            int f = sc.nextInt();
                    ^
  symbol:   variable sc
  location: class Main
Main.java:18: error: cannot find symbol
            int r = sc.nextInt();
                    ^
  symbol:   variable sc
  location: class Main
Main.java:19: error: cannot find symbol
            int v = sc.nextInt();
                    ^
  symbol:   variable sc
  location: class Main
Main.java:31: error: cannot find symbol
        if(i != 4)
           ^
  symbol:   variable i
  location: class Main
6 errors
Language: Java

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


Compiler output:
Main.java:13: error: cannot find symbol
        int n = sc.nextInt();
                ^
  symbol:   variable sc
  location: class Main
Main.java:16: error: cannot find symbol
            int b = sc.nextInt();
                    ^
  symbol:   variable sc
  location: class Main
Main.java:17: error: cannot find symbol
            int f = sc.nextInt();
                    ^
  symbol:   variable sc
  location: class Main
Main.java:18: error: cannot find symbol
            int r = sc.nextInt();
                    ^
  symbol:   variable sc
  location: class Main
Main.java:19: error: cannot find symbol
            int v = sc.nextInt();
                    ^
  symbol:   variable sc
  location: class Main
5 errors
Language: Java

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


Compiler output:
Main.java:11: error: ';' expected
        int k = 0:
                 ^
1 error
Language: Java

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


Compiler output:
Main.java:30: error: variable i is already defined in method main(String[])
        for(int i = 0 ; i < 4 ; i++)
                ^
Main.java:32: error: variable j is already defined in method main(String[])
            for(int j = 0 ; j < 3 ; j++)
                    ^
Main.java:34: error: variable k is already defined in method main(String[])
                for(int k = 0 ; k < 10 ; k++)
                        ^
3 errors
Language: Java


import java.util.Scanner;



public class Main3 {   
    public static void main(String[] args) {
        
        Scanner sc = new Scanner(System.in);
        
        Tower[] tower = new Tower[4];
        for(int i=0; i < tower.length; i++) tower[i] = new Tower();
        
        int n;
        n = sc.nextInt();
        
        for(int i=0; i < n; i++){
            //System.out.println(tower[0]);
            tower[sc.nextInt()-1].index(sc.nextInt(), sc.nextInt(), sc.nextInt());
        }
        
        for(int i=0; i < tower.length; i++){
            tower[i].print();
            if(i != tower.length -1) System.out.println("####################");
        }
        
    }
}

class Tower{
    
    Floor[] floor = new Floor[3];
    
    Tower(){
        for(int i=0; i < floor.length; i++) floor[i] = new Floor();        
    }
    
    void index(int f ,int r ,int v){
        floor[f-1].addPeople(r, v);
    }
    
    void print(){
        for(Floor a : floor){
            for(int b : a.room){
                System.out.print(" " + b);
            }
            System.out.println(" ");
        }
    }
}

class Floor{    
    int[] room = new int[9];
    
    Floor(){
        for(int i=0; i < room.length; i++) room[i] = 0;
    }
    
    void addPeople(int r ,int v){
        this.room[r-1] += v;
    }
}

       


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

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

		int [][] room = new int [4][10];

		int n = scan.nextInt();

		for(int i = 0 ; i < n ; i++){
			int b = scan.nextInt(), f = scan.nextInt(),
					r = scan.nextInt(), v = scan.nextInt();
			    room [f-1][r-1] += v;
		}

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

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

import java.io.*;
public class Sample01
{
	public static void main(String[] arg) throws IOException
	{
		BufferedReader br = 
		new BufferedReader(new InputStreamReader(System.in));
		int N = Integer.parseInt(br.readLine());
		int b,f,r,v;
		int[][] base = new int[12][10];
		String[] lines;
		for(int i=0;i<N;i++)
		{
			lines = br.readLine().split(" ");
			b = Integer.parseInt(lines[0]);
			f = Integer.parseInt(lines[1]);
			r = Integer.parseInt(lines[2]);
			v = Integer.parseInt(lines[3]);
			if(base[((b-1)*3)+(f-1)][r-1]>0 && v < 0)
			{
				base[((b-1)*3)+(f-1)][r-1] += v;
			}
			else
			{
				base[((b-1)*3)+(f-1)][r-1] = v;
			}
		}
		for(int i=0;i<12;i++)
		{
			for(int j=0;j<10;j++)
			{
				System.out.print(" "+base[i][j]);
			}

			if((i+1)!=12&&(i+1)%3==0)
			{
				System.out.println();
				System.out.print("####################");
			}
			System.out.println();
		}
	}
}

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

import java.io.*;
public class Main
{
	public static void main(String[] arg) throws IOException
	{
		BufferedReader br = 
		new BufferedReader(new InputStreamReader(System.in));
		int N = Integer.parseInt(br.readLine());
		int b,f,r,v;
		int[][] base = new int[12][10];
		String[] lines;
		for(int i=0;i<N;i++)
		{
			lines = br.readLine().split(" ");
			b = Integer.parseInt(lines[0]);
			f = Integer.parseInt(lines[1]);
			r = Integer.parseInt(lines[2]);
			v = Integer.parseInt(lines[3]);
			if(base[((b-1)*3)+(f-1)][r-1]>=0)
			{
				base[((b-1)*3)+(f-1)][r-1] += v;
			}else if()
			else
			{
				base[((b-1)*3)+(f-1)][r-1] = v;
			}
		}
		for(int i=0;i<12;i++)
		{
			for(int j=0;j<10;j++)
			{
				System.out.print(" "+base[i][j]);
			}

			if((i+1)!=12&&(i+1)%3==0)
			{
				System.out.println();
				System.out.print("####################");
			}
			System.out.println();
		}
	}
}

Compiler output:
Main.java:22: error: illegal start of expression
			}else if()
			         ^
Main.java:23: error: 'else' without 'if'
			else
			^
2 errors
Language: Java

mport java.util.Scanner;
public class Main {

	public static void main(String[] args) {
		
		Scanner sc=new Scanner(System.in);
		int n=sc.nextInt();
		int b,f,r,v;
		int[][][] num = new int[4][3][10];
		
		for (int a=0;a<n;a++){
			b=sc.nextInt();f=sc.nextInt();
			r=sc.nextInt();v=sc.nextInt();
			num[b-1][f-1][r-1] = num[b-1][f-1][r-1] + v;
		}
		for (int a=0;a<4;a++){
			for (int c=0;c<3;c++){
				for (int d=0;d<10;d++){
					System.out.print(" "+num[a][c][d]);
				}
				System.out.println();
			}
			if (a<n){
				System.out.println("####################");
			}
		}
	}
}

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
mport java.util.Scanner;
^
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 b,f,r,v;
		int[][][] num = new int[4][3][10];
		for (int a=0;a<4;a++){
			for (int c=0;c<3;c++){
				for (int d=0;d<10;d++){
					num[a][c][d] = 0;
				}
			}
		}
		for (int a=0;a<n;a++){
			b=sc.nextInt();f=sc.nextInt();
			r=sc.nextInt();v=sc.nextInt();
			num[b-1][f-1][r-1] += v;
		}
		for (int a=0;a<4;a++){
			for (int c=0;c<3;c++){
				for (int d=0;d<10;d++){
					System.out.print(" "+num[a][c][d]);
				}
				System.out.println();
			}
			if (a<3){
				System.out.println("####################");
			}
		}
	}

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

import java.text.*;
import java.math.*;
import java.util.*;
public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		Card card = new Card();
		int kazu = scan.nextInt();
		int num[][][] = new int[4][3][10];
		int b,f,r,v;
		
		for(int i = 0; i < kazu; i++) {
			b = scan.nextInt() - 1;
			f = scan.nextInt() - 1;
			r = scan.nextInt() - 1;
			v = scan.nextInt();
			num[b][f][r] += v;
		}
		for(int i0 = 0; i0 < 4; i0++ ) {
			for(int i1 = 0; i1 < 3; i1++) {
				for(int i2 = 0; i2 < 10; i2++) {
					System.out.print(" " + num[i0][i1][i2]);
				}
				System.out.println();
			}
			if(i0 < 3) System.out.println("####################");
		}
	}
}

Compiler output:
Main.java:7: error: cannot find symbol
		Card card = new Card();
		^
  symbol:   class Card
  location: class Main
Main.java:7: error: cannot find symbol
		Card card = new Card();
		                ^
  symbol:   class Card
  location: class Main
2 errors
Language: Java

import java.util.*;
import java.io.*;

public class Main{
public static void main throw IOException (String[] args){
 int[][][] room = new int[4][3][10]; 
 
 for(int a = 0; a < 4; a++){
	for(int b = 0; b < 3; b++){
		for(int c = 0; c < 10; c++){
			room[a][b][c] = 0;
		}
	}
 }

 	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
 	int n = Integer.parseInt(br.readLine());
 
 	for(int i = 0; i < n; i++){
  	 String[] str = br.readLine().split(" ");
	 int b = Integer.parseInt(str[0])-1;
	 int f = Integer.parseInt(str[1])-1;
	 int r = Integer.parseInt(str[2])-1;
	 int v = Integer.parseInt(str[0]);

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

 for(int a = 0; a < 4; a++){
  if ( a != 0){
     System.out.println("####################");
  }	
	for(int b = 0; b < 3; b++){
		for(int c = 0; c < 10; c++){
			System.out.print(" " + room[a][b][c]);
		}
	System.out.println();
	}
 }
}
} 

Compiler output:
Main.java:5: error: '(' expected
public static void main throw IOException (String[] args){
                        ^
Main.java:5: error: invalid method declaration; return type required
public static void main throw IOException (String[] args){
                              ^
2 errors
Language: Java

import java.util.*;
import java.io.*;

public class Main{
public static void main(String[] args) throws IOException{
 int[][][] room = new int[4][3][10]; 
 
 for(int a = 0; a < 4; a++){
	for(int b = 0; b < 3; b++){
		for(int c = 0; c < 10; c++){
			room[a][b][c] = 0;
		}
	}
 }

 	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
 	int n = Integer.parseInt(br.readLine());
 
 	for(int i = 0; i < n; i++){
  	 String[] str = br.readLine().split(" ");
	 int b = Integer.parseInt(str[0])-1;
	 int f = Integer.parseInt(str[1])-1;
	 int r = Integer.parseInt(str[2])-1;
	 int v = Integer.parseInt(str[0]);

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

 for(int a = 0; a < 4; a++){
  if ( a != 0){
     System.out.println("####################");
  }	
	for(int b = 0; b < 3; b++){
		for(int c = 0; c < 10; c++){
			System.out.print(" " + room[a][b][c]);
		}
	System.out.println();
	}
 }
}
} 

Compiler output:
Main.java:30: error: illegal start of type
 for(int a = 0; a < 4; a++){
 ^
Main.java:30: error: illegal start of type
 for(int a = 0; a < 4; a++){
                    ^
Main.java:30: error: <identifier> expected
 for(int a = 0; a < 4; a++){
                        ^
Main.java:42: error: class, interface, enum, or record expected
} 
^
4 errors
Language: Java

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

Compiler output:
Main.java:12: error: ';' expected
            int b = sc.nextInt():
                                ^
1 error
Language: Java

import java.util.Scanner;
class Main{
public static void main(String[] args){
Scanner scan=new Scanner(System.in);
int a=scan.nextInt();
int[][][] c=new int[5][4][11];
for(int x=1;x<5;x++)[
for(int y=1;y<4;y++){
for(int z=1;z<11;z++){
c[x][y][z]=0;
}
}
}
for(int b=0;b<a;b++){
int d=scan.nextInt();
int e=scan.nextInt();
int f=scan.nextInt();
int g=scan.nextInt();
c[d][e][f]=c[d][e][f]+g;
}
for(int x=1;x<5;x++){
for(int y=1;y<4;y++){
for(int z=1;z<11;z++){
System.out.print(c[x][y][z]);
}
System.out.println();
}
if(x!=4)
System.out.println("####################");
}
}
}

Compiler output:
Main.java:7: error: illegal start of expression
for(int x=1;x<5;x++)[
                    ^
Main.java:14: error: illegal start of type
for(int b=0;b<a;b++){
^
Main.java:14: error: > or ',' expected
for(int b=0;b<a;b++){
               ^
Main.java:14: error: <identifier> expected
for(int b=0;b<a;b++){
                 ^
Main.java:21: error: illegal start of type
for(int x=1;x<5;x++){
^
Main.java:21: error: illegal start of type
for(int x=1;x<5;x++){
              ^
Main.java:21: error: <identifier> expected
for(int x=1;x<5;x++){
                 ^
Main.java:32: error: class, interface, enum, or record expected
}
^
8 errors
Language: Java

import java.io.*;

class Main {
    public static void main(String[] args) {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int n = Integer.parseInt(br.readLine());
        
        int[][][] count = 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++) {
                    count[i][j][k] = 0; 
                }
            }
        }
        for (int i = 0; i < n; i++) {
            String str = br.readLine();
            String[] strs = str.split(" ");
            int b = Integer.parseInt(strs[0]) - 1;
            int f = Integer.parseInt(strs[1]) - 1;
            int r = Integer.parseInt(strs[2]) - 1;
            int v = Integer.parseInt(strs[3]);
            count[b][f][r] += v;
        }
        for(int i = 0; i < 4; i++){
            if(i != 0){
                System.out.println("####################");
            }
            for(int l = 0; l < 3; l++){
                for(int k = 0; k < 10; k++){
                    System.out.print(" ");
                    System.out.print(count[i][l][k]);
                }
                System.out.println();
            }
        }
    }
}

Compiler output:
Main.java:8: error: ';' expected
        int[][][] count = new int[4][3][10]
                                           ^
1 error
Language: Java

import java.io.*;

class Main {
    public static void main(String[] args) {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int n = Integer.parseInt(br.readLine());
        
        int[][][] count = 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++) {
                    count[i][j][k] = 0; 
                }
            }
        }
        for (int i = 0; i < n; i++) {
            String str = br.readLine();
            String[] strs = str.split(" ");
            int b = Integer.parseInt(strs[0]) - 1;
            int f = Integer.parseInt(strs[1]) - 1;
            int r = Integer.parseInt(strs[2]) - 1;
            int v = Integer.parseInt(strs[3]);
            count[b][f][r] += v;
        }
        for(int i = 0; i < 4; i++){
            if(i != 0){
                System.out.println("####################");
            }
            for(int l = 0; l < 3; l++){
                for(int k = 0; k < 10; k++){
                    System.out.print(" ");
                    System.out.print(count[i][l][k]);
                }
                System.out.println();
            }
        }
    }
}

Compiler output:
Main.java:6: error: unreported exception IOException; must be caught or declared to be thrown
        int n = Integer.parseInt(br.readLine());
                                            ^
Main.java:17: error: unreported exception IOException; must be caught or declared to be thrown
            String str = br.readLine();
                                    ^
2 errors
Language: Java

import java.util.Scanner;

class Main
{
	public static void main ( String[] args ) {
		Scanner sc = new Scanner ( System.in );
		Scanner sc2 = new Scanner ( System.in );
		int n = 0;
		int b = 0;
		int f = 0;
		int r = 0;
		int v = 0;
		
		n = sc.nextInt ();
		
		int [][][] human = 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++ ) {
					human[ i ][ j ][ k ] = 0;
				}
			}
		}
		
		// ??\?????????
		for ( int i = 0; i < n; i++ ) {
			String inputNum = sc2.nextLine ();
			b = ( Integer.parseInt ( String.valueOf ( inputNum.charAt ( 0 ) ) ) ) - 1;
			f = ( Integer.parseInt ( String.valueOf ( inputNum.charAt ( 2 ) ) ) ) - 1;
			r = ( Integer.parseInt ( String.valueOf ( inputNum.charAt ( 4 ) ) ) ) - 1;
			
			String str = String.valueOf ( inputNum.charAt ( 6 ) );
			String str2 = String.valueOf ( inputNum.cahrAt ( 7 ) );
			if ( str.equals ( "-" ) ) {
				v = Integer.parseInt ( String.valueOf ( inputNum.charAt ( 7 ) ) );
				human[ b ][ f ][ r ] -= v;
				if ( human[ b ][ f ][ r ] < 0 ) {
					human[ b ][ f ][ r ] = 0;
				}
			} else if ( str.equals ( "1" ) && str2.equals ( "0" ) {
				human[ b ][ f ][ r ] = 10;
			} else {
				v = Integer.parseInt ( String.valueOf ( inputNum.charAt ( 6 ) ) );
				human[ b ][ f ][ r ] += v;
				if ( 9 < human[ b ][ f ][ r ] ) {
					human[ b ][ f ][ r ] = 9;
				}
			}
		}
		
		for ( int i = 0; i < 4; i++ ) {
			for ( int j = 0; j < 3; j++ ) {
				for ( int k = 0; k < 10; k++ ) {
					System.out.print ( human[ i ][ j ][ k ] + " " );
				}
				System.out.println ();
			}
			if ( i != 3 ) {
				System.out.println ( "####################" + "\n" );
			}
		}
	}

Compiler output:
Main.java:42: error: ')' expected
			} else if ( str.equals ( "1" ) && str2.equals ( "0" ) {
			                                                     ^
Main.java:64: error: reached end of file while parsing
	}
	 ^
2 errors
Language: Java

import java.util.Scanner;

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

		// ?????±????????¶??\???????????????n??§????????????
		String s1 = sc.next ();
		int n = Integer.parseInt ( s1 );

		// 3?¬????????????§1????????¢10??¨?±?3??????????????????????£?????????????????????\?±???¶??????????´???????
		int A[][][] = new int[ 10 ][ 3 ][ 4 ];

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

		// ??\?????????????????±?????????????????\?±???¶????????´??°??????
		for ( int i = 0; i < n; i++ ) {
			String s3 = sc.next ();
			int b = Integer.parseInt ( s2 );
			String s3 = sc.next ();
			int f = Integer.parseInt ( s3 );
			String s4 = sc.next ();
			int r = Integer.parseInt ( s4 );
			String s5 = sc.next ();
			int v = Integer.parseInt ( s5 );
			A[r - 1][f - 1][b - 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 ( " " + A[ k ][ j ][ i ] );
				}
				System.out.println ( "" );
			}
			if ( i != 3 ) {
				System.out.println ( "####################" );
			}
		}
	}
}

Compiler output:
Main.java:26: error: cannot find symbol
			int b = Integer.parseInt ( s2 );
			                           ^
  symbol:   variable s2
  location: class Main
Main.java:27: error: variable s3 is already defined in method main(String[])
			String s3 = sc.next ();
			       ^
2 errors