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

import java.util.Scanner;

public class DeptHell {

	// ????????????10??????
	public static int LOAN = 100000;

	public static void main(String[] args) {

		// ???????????????
		@SuppressWarnings("resource")
		Scanner sc = new Scanner(System.in);
		int input = sc.nextInt();

		// ??????????????????
		double result = LOAN + (LOAN * 0.05) * input;

		// ????????\?????????????????????
		// ????????\???????°???°?????????
		result = result / 10000;
		// ?°???°???????????????
		result = Math.ceil(result);
		// ?????????????????????
		result = result * 10000;

		System.out.print((int) result);

	}
}

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

import java.util.Scanner;

public class DeptHell {

	// ????????????10??????
	public static int LOAN = 100000;

	public static void main(String[] args) {

		// ???????????????
		@SuppressWarnings("resource")
		Scanner sc = new Scanner(System.in);
		int input = sc.nextInt();
		double result = LOAN;

		// ?????±??????????¨????
		for (int i = 0; input > i; i++) {

			// ??????????????????
			result = result * 1.05;

			// ????????\?????????????????????
			// ????????\???????°???°?????????
			result = result / 1000;
			// ?°???°???????????????
			result = Math.ceil(result);
			// ?????????????????????
			result = result * 1000;
		}

		System.out.print((int) result);

	}
}

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

class Main {
	public void main(int week) {

		BigDecimal shakkin = new BigDecimal(100000);
		BigDecimal taxper = new BigDecimal(0.05);
		BigDecimal rishi;
		int a = 0;

		for (int i = 0; i <= week; i++) {
			// 5%の利子を計算する
			rishi = shakkin.multiply(taxper);
			// 5%の利子を元金に足す
			shakkin = shakkin.add(rishi);
			// 1000円未満を切り上げる
			a = shakkin.setScale(-3, BigDecimal.ROUND_UP).intValue();
		}
		System.out.println(a);
	}
}

Compiler output:
Main.java:4: error: cannot find symbol
		BigDecimal shakkin = new BigDecimal(100000);
		^
  symbol:   class BigDecimal
  location: class Main
Main.java:4: error: cannot find symbol
		BigDecimal shakkin = new BigDecimal(100000);
		                         ^
  symbol:   class BigDecimal
  location: class Main
Main.java:5: error: cannot find symbol
		BigDecimal taxper = new BigDecimal(0.05);
		^
  symbol:   class BigDecimal
  location: class Main
Main.java:5: error: cannot find symbol
		BigDecimal taxper = new BigDecimal(0.05);
		                        ^
  symbol:   class BigDecimal
  location: class Main
Main.java:6: error: cannot find symbol
		BigDecimal rishi;
		^
  symbol:   class BigDecimal
  location: class Main
Main.java:15: error: cannot find symbol
			a = shakkin.setScale(-3, BigDecimal.ROUND_UP).intValue();
			                         ^
  symbol:   variable BigDecimal
  location: class Main
6 errors
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.math.BigDecimal;
 
public class Main {
 
 
    public static void main(String[] args) throws IOException {
        // 宣言
        BigDecimal shakkin = new BigDecimal(100000);
        BigDecimal taxper = new BigDecimal(0.05);
        BigDecimal rishi;
        int output = 0;
 
        // 文字列の入力
        BufferedReader input = new BufferedReader(new InputStreamReader(System.in), 1);
        int week = Integer.parseInt(input.readLine()); 
        //金額計算
        for (int i = 0; i <= week; i++) {
            // 5%の利子を計算する
            rishi = shakkin.multiply(taxper);
            // 5%の利子を元金に足す
            shakkin = shakkin.add(rishi);
        }
        // 1000円未満を切り上げる
        output = shakkin.setScale(-3, BigDecimal.ROUND_UP).intValue();
        System.out.println(output);
    }

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

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

/**
 * @author Yuki
 */
public class V0007 {

	/*** 利子 */
	private final static double INTEREST = 1.05;
	/*** 切り上げ額 */
	private final static double REVALUATION = 1000;
	/*** 借金 */
	private static int debt = 100000;
	/*** 文字型入力ストリーム（標準入力） */
	private static BufferedReader br;
	/*** 週 */
	private static int weekNum;

	/*** 初期化 */
	static {
		br = new BufferedReader(new InputStreamReader(System.in));
	}

	/**
	 * メインメソッド<br>
	 * 借金の残高を出力する
	 *
	 */
	public static void main(String[] args) throws IOException {

		weekNum = Integer.parseInt(br.readLine());	// 週を取得

		System.out.println(getTotalDept());	// 借金の残高の出力

	}

	/**
	 * 借金の残高を取得する 利子をかけた週の合計の借金を計算して返す
	 *
	 * @return 借金の残高
	 */
	private static int getTotalDept() {
		double debtTemp = debt / REVALUATION;
		for (; weekNum > 0; weekNum--) {
			debtTemp = Math.ceil(debtTemp * INTEREST); // 切り上げ
		}
		return (int) (debtTemp * REVALUATION);
	}

}

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

import java.util.Scanner;


public class main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scn = new Scanner(System.in);
		int n = scn.nextInt();
		int debt = 100;
		for (int i = 0; i < n; i++) {
			debt = (int)Math.ceil(debt * 1.05);
		}
		System.out.println(debt * 1000);
	}

}

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

import java.util.Scanner;


public class DebtHell {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scn = new Scanner(System.in);
		int n = scn.nextInt();
		int debt = 100;
		for (int i = 0; i < n; i++) {
			debt = (int)Math.ceil(debt * 1.05);
		}
		System.out.println(debt * 1000);
	}

}

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

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

public class Main01 {

    /** 週利 */
    private static final double INTEREST_WEEK = 0.05;

    /** 繰り上げ単位 */
    private static final int ROUND_UP_UNIT = 1000;

    /** 元金 */
    private static final int PRINCIPAL = 100000;

    public static void main(String[] args) throws IOException {
        BufferedReader bufferedReader = new BufferedReader(
                new InputStreamReader(System.in));
        int intInputWeek = Integer.parseInt(bufferedReader.readLine());

        // 借金計算
        double totalDebt = calcDebt(PRINCIPAL, intInputWeek);
        System.out.println((int) totalDebt);
    }

    /**
     * 借金計算メソッド（週利0.05%）
     * @param debt 現在の借金
     * @param week 現在の残り週
     * @return 借金額
     */
    private static double calcDebt(double debt, int week) {
        if (week == 0) {
            return debt;
        }
        debt *= 1 + INTEREST_WEEK;

        // 1000円未満は切り上げる
        double debtPlus = debt / ROUND_UP_UNIT - (int) (debt / ROUND_UP_UNIT);
        if (debtPlus > 0)
            debt = debt + ROUND_UP_UNIT - debtPlus * ROUND_UP_UNIT;

        return calcDebt(debt, --week);
    }

}

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

class Main{

    public static final int DEPT = 100000;

    public static final BigDecimal INTEREST = new BigDecimal(0.05);

    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        int week = Integer.parseInt(s.next());

        BigDecimal repay = new BigDecimal(DEPT);

        for (int i = 0; i < week; ++i) {
            repay = repay.add(repay.multiply(INTEREST));

        }
        s.close();
        System.out.println(repay.setScale(0, BigDecimal.ROUND_HALF_UP));

    }
}

Compiler output:
Main.java:5: error: cannot find symbol
    public static final BigDecimal INTEREST = new BigDecimal(0.05);
                        ^
  symbol:   class BigDecimal
  location: class Main
Main.java:5: error: cannot find symbol
    public static final BigDecimal INTEREST = new BigDecimal(0.05);
                                                  ^
  symbol:   class BigDecimal
  location: class Main
Main.java:8: error: cannot find symbol
        Scanner s = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Main
Main.java:8: error: cannot find symbol
        Scanner s = new Scanner(System.in);
                        ^
  symbol:   class Scanner
  location: class Main
Main.java:11: error: cannot find symbol
        BigDecimal repay = new BigDecimal(DEPT);
        ^
  symbol:   class BigDecimal
  location: class Main
Main.java:11: error: cannot find symbol
        BigDecimal repay = new BigDecimal(DEPT);
                               ^
  symbol:   class BigDecimal
  location: class Main
Main.java:18: error: cannot find symbol
        System.out.println(repay.setScale(0, BigDecimal.ROUND_HALF_UP));
                                             ^
  symbol:   variable BigDecimal
  location: class Main
7 errors
Language: Java

class Main{
    public static final int DEPT = 100000;
    public static final BigDecimal INTEREST = new BigDecimal(0.05);
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        int week = Integer.parseInt(s.next());
        BigDecimal repay = new BigDecimal(DEPT);
        for (int i = 0; i < week; ++i) {
            repay = repay.add(repay.multiply(INTEREST));
        }
        s.close();
        System.out.println(repay.setScale(0, BigDecimal.ROUND_HALF_UP));
    }
}

Compiler output:
Main.java:3: error: cannot find symbol
    public static final BigDecimal INTEREST = new BigDecimal(0.05);
                        ^
  symbol:   class BigDecimal
  location: class Main
Main.java:3: error: cannot find symbol
    public static final BigDecimal INTEREST = new BigDecimal(0.05);
                                                  ^
  symbol:   class BigDecimal
  location: class Main
Main.java:5: error: cannot find symbol
        Scanner s = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Main
Main.java:5: error: cannot find symbol
        Scanner s = new Scanner(System.in);
                        ^
  symbol:   class Scanner
  location: class Main
Main.java:7: error: cannot find symbol
        BigDecimal repay = new BigDecimal(DEPT);
        ^
  symbol:   class BigDecimal
  location: class Main
Main.java:7: error: cannot find symbol
        BigDecimal repay = new BigDecimal(DEPT);
                               ^
  symbol:   class BigDecimal
  location: class Main
Main.java:12: error: cannot find symbol
        System.out.println(repay.setScale(0, BigDecimal.ROUND_HALF_UP));
                                             ^
  symbol:   variable BigDecimal
  location: class Main
7 errors
Language: Java

class Main {

    public static final int DEPT = 100000;

    public static final BigDecimal INTEREST = new BigDecimal(0.05);

    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        int week = Integer.parseInt(s.next());

        BigDecimal repay = new BigDecimal(DEPT);

        for (int i = 0; i < week; ++i) {
            repay = repay.add(repay.multiply(INTEREST));

        }

        s.close();
        System.out.println(repay.divide(new BigDecimal(10000), 0,
                BigDecimal.ROUND_CEILING).multiply(new BigDecimal(10000)));

    }
}

Compiler output:
Main.java:5: error: cannot find symbol
    public static final BigDecimal INTEREST = new BigDecimal(0.05);
                        ^
  symbol:   class BigDecimal
  location: class Main
Main.java:5: error: cannot find symbol
    public static final BigDecimal INTEREST = new BigDecimal(0.05);
                                                  ^
  symbol:   class BigDecimal
  location: class Main
Main.java:8: error: cannot find symbol
        Scanner s = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Main
Main.java:8: error: cannot find symbol
        Scanner s = new Scanner(System.in);
                        ^
  symbol:   class Scanner
  location: class Main
Main.java:11: error: cannot find symbol
        BigDecimal repay = new BigDecimal(DEPT);
        ^
  symbol:   class BigDecimal
  location: class Main
Main.java:11: error: cannot find symbol
        BigDecimal repay = new BigDecimal(DEPT);
                               ^
  symbol:   class BigDecimal
  location: class Main
Main.java:20: error: cannot find symbol
                BigDecimal.ROUND_CEILING).multiply(new BigDecimal(10000)));
                                                       ^
  symbol:   class BigDecimal
  location: class Main
Main.java:19: error: cannot find symbol
        System.out.println(repay.divide(new BigDecimal(10000), 0,
                                            ^
  symbol:   class BigDecimal
  location: class Main
Main.java:20: error: cannot find symbol
                BigDecimal.ROUND_CEILING).multiply(new BigDecimal(10000)));
                ^
  symbol:   variable BigDecimal
  location: class Main
9 errors
Language: Java

import java.math.BigDecimal;
import java.util.Scanner;

public class test1 {

    public static final int DEPT = 100000;

    public static final BigDecimal INTEREST = new BigDecimal(0.05);

    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        int week = Integer.parseInt(s.next());

        BigDecimal repay = new BigDecimal(DEPT);

        for (int i = 0; i < week; ++i) {
            repay = repay.add(repay.multiply(INTEREST));

        }

        s.close();
        System.out.println(repay.divide(new BigDecimal(10000), 0,
                BigDecimal.ROUND_CEILING).multiply(new BigDecimal(10000)));

    }
}

Compiler output:
Main.java:4: error: class test1 is public, should be declared in a file named test1.java
public class test1 {
       ^
Note: Main.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
1 error
Language: Java

import java.math.BigDecimal;
import java.util.Scanner;
public class test1 {
    public static final int DEPT = 100000;
    public static final BigDecimal INTEREST = new BigDecimal(0.05);
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        int week = Integer.parseInt(s.next());
        BigDecimal repay = new BigDecimal(DEPT);
        for (int i = 1; i < week; ++i) {
            repay = repay.add(repay.multiply(INTEREST));
        }
        s.close();
        System.out.println(repay.setScale(-4, BigDecimal.ROUND_CEILING)
                .toPlainString());
    }
}

Compiler output:
Main.java:3: error: class test1 is public, should be declared in a file named test1.java
public class test1 {
       ^
Note: Main.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
1 error
Language: Java

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


public class money {

    public static void main(String[] args) throws IOException {
        System.out.println("??´??°?????\????????????????????????");
        //Input ??´??°?????\?????????
        BufferedReader br =
                new BufferedReader(new InputStreamReader(System.in));
        String str = br.readLine();
        int n = Integer.parseInt(str);
        //??????
        double loan = 100000;

        //??\???????????´??°?????????????????????????±???????
        //1??±?????¨???????????????????????????????????????????????\??????
        for(int i=1; i<=n; i++){
           //?????????5%?????????????????????
           loan = loan * 1.05;
           //?????????1000???????????????????????????
           BigDecimal bd = new BigDecimal(String.valueOf(loan));
           //?¬¬1?????°???0?????´???????°???°?¬¬?????????????????????(??????)
           //1000??????????????????????????????????¬¬1?????°???-3??¨????????????????????????????????????
           loan = bd.setScale(-3, BigDecimal.ROUND_UP).doubleValue();
        }
        //??¨???????????????????°???°??????????????¢??§????????????????????????????????????int??????result???????´???????
        int result = (int) loan;
        System.out.println(result);
    }
}

Compiler output:
Main.java:10: error: illegal escape character
        System.out.println("???????????\????????????????????????");
                                        ^
1 error
Language: Java

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


public class money {

    public static void main(String[] args) throws IOException {
        //Input ??´??°?????\?????????
        BufferedReader br =
                new BufferedReader(new InputStreamReader(System.in));
        String str = br.readLine();
        int n = Integer.parseInt(str);
        //??????
        double loan = 100000;

        //??\???????????´??°?????????????????????????±???????
        //1??±?????¨???????????????????????????????????????????????\??????
        for(int i=1; i<=n; i++){
           //?????????5%?????????????????????
           loan = loan * 1.05;
           //?????????1000???????????????????????????
           BigDecimal bd = new BigDecimal(String.valueOf(loan));
           //?¬¬1?????°???0?????´???????°???°?¬¬?????????????????????(??????)
           //1000??????????????????????????????????¬¬1?????°???-3??¨????????????????????????????????????
           loan = bd.setScale(-3, BigDecimal.ROUND_UP).doubleValue();
        }
        //??¨???????????????????°???°??????????????¢??§????????????????????????????????????int??????result???????´???????
        int result = (int) loan;
        System.out.println(result);
    }
}

Compiler output:
Main.java:7: error: class money is public, should be declared in a file named money.java
public class money {
       ^
Note: Main.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
1 error
Language: Java

public class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		//外部入力取り込んだ借金をしている期間（週単位）
		int week = Integer.parseInt(in.readLine());
		//借金
		double debt = 100000;
		//利子
		double interest = 1.05;

		//借金の計算
		for (int i = 0; i < week; i++) {
			//一週間ごとに 借金に5% の利子を借金に加える
			debt = debt * interest;
			//借金の 1,000 円未満を切り上げ
			debt = Math.ceil(debt/1000);
			debt = debt * 1000;
		}
		//計算後の借金を整数として外部出力
		System.out.println((int)debt);
	}
}

Compiler output:
Main.java:2: error: cannot find symbol
	public static void main(String[] args) throws IOException {
	                                              ^
  symbol:   class IOException
  location: class Main
Main.java:3: error: cannot find symbol
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		^
  symbol:   class BufferedReader
  location: class Main
Main.java:3: error: cannot find symbol
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		                        ^
  symbol:   class BufferedReader
  location: class Main
Main.java:3: error: cannot find symbol
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		                                           ^
  symbol:   class InputStreamReader
  location: class Main
4 errors
Language: Java

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

public class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		//外部入力取り込んだ借金をしている期間（週単位）
		int week = Integer.parseInt(in.readLine());
		//借金
		double debt = 100000;
		//利子
		double interest = 1.05;

		//借金の計算
		for (int i = 0; i < week; i++) {
			//一週間ごとに 借金に5% の利子を借金に加える
			debt = debt * interest;
			//借金の 1,000 円未満を切り上げ
			debt = Math.ceil(debt/1000);
			debt = debt * 1000;
		}
		//計算後の借金を整数として外部出力
		System.out.println((int)debt);
	}
}

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

class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		//外部入力取り込んだ借金をしている期間（週単位）
		int week = Integer.parseInt(in.readLine());
		//借金
		double debt = 100000;
		//利子
		double interest = 1.05;

		//借金の計算
		for (int i = 0; i < week; i++) {
			//一週間ごとに 借金に5% の利子を借金に加える
			debt = debt * interest;
			//借金の 1,000 円未満を切り上げ
			debt = Math.ceil(debt/1000);
			debt = debt * 1000;
		}
		//計算後の借金を整数として外部出力
		System.out.println((int)debt);
	}
}

Compiler output:
Main.java:2: error: cannot find symbol
	public static void main(String[] args) throws IOException {
	                                              ^
  symbol:   class IOException
  location: class Main
Main.java:3: error: cannot find symbol
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		^
  symbol:   class BufferedReader
  location: class Main
Main.java:3: error: cannot find symbol
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		                        ^
  symbol:   class BufferedReader
  location: class Main
Main.java:3: error: cannot find symbol
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		                                           ^
  symbol:   class InputStreamReader
  location: class Main
4 errors
Language: Java

import java.util.Scanner;

public class Mein {

	// 借金額：10万円
	public static int LOAN = 100000;

	public static void main(String[] args) {

		// インプット
		@SuppressWarnings("resource")
		Scanner sc = new Scanner(System.in);
		int input = sc.nextInt();
		double result = LOAN;

		// 一週間ずつ計算
		for (int i = 0; input > i; i++) {

			// 利子を加える
			result = result * 1.05;

			// 1000で割り、千円以下を切り上げ
			result = Math.ceil(result / 1000);
			// 金額を元に戻す
			result = result * 1000;
		}
		System.out.println((int) result);
	}
}

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

public class Main03 {

    public static void main(String[] args) {

    }

    /**
     * index番目のグループの到着時刻を返却する（正午からの経過時間）
     * 単位：分
     * @param index
     * @return 到着時刻
     */
    private static int getArriveTime(int index) {
        return index * 5;
    }

    /**
     * index番目のグループの人数を返却する
     * 単位：人
     * @param index
     * @return 人数
     */
    private static int getNums(int index) {
        return((index % 5 == 1) ? 5 : 2);
    }

    /**
     * index番目のグループの所要時間を返却する
     * 単位：分
     * @param index
     * @return 所要時間
     */
    private static int getEatingTime(int index) {
        return 17 * (index % 2) + 3 * (index % 3) + 19;
    }

    private static boolean checkSheet(int[] sheets, int index, int custmors) {

        boolean canSit = true;
        for (int i = 0; i < sheets.length; i++) {
            for (int j = i; j < custmors; j++) {
                if (j + custmors <= sheets.length) {
                    if (sheets[j] != 100) {
                        canSit = false;
                    }
                }
            }
            if (canSit) {
                for (int j = i; j < custmors; j++) {
                    sheets[j] = index;
                }
            }
        }


    }
}

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

public class Main {

    public static void main(String[] args) {

    }

    /**
     * index番目のグループの到着時刻を返却する（正午からの経過時間）
     * 単位：分
     * @param index
     * @return 到着時刻
     */
    private static int getArriveTime(int index) {
        return index * 5;
    }

    /**
     * index番目のグループの人数を返却する
     * 単位：人
     * @param index
     * @return 人数
     */
    private static int getNums(int index) {
        return((index % 5 == 1) ? 5 : 2);
    }

    /**
     * index番目のグループの所要時間を返却する
     * 単位：分
     * @param index
     * @return 所要時間
     */
    private static int getEatingTime(int index) {
        return 17 * (index % 2) + 3 * (index % 3) + 19;
    }

    private static boolean checkSheet(int[] sheets, int index, int custmors) {

        boolean canSit = true;
        for (int i = 0; i < sheets.length; i++) {
            for (int j = i; j < custmors; j++) {
                if (j + custmors <= sheets.length) {
                    if (sheets[j] != 100) {
                        canSit = false;
                    }
                }
            }
            if (canSit) {
                for (int j = i; j < custmors; j++) {
                    sheets[j] = index;
                }
            }
        }


    }
}

Compiler output:
Main.java:56: error: missing return statement
    }
    ^
1 error
Language: Java

import java.util.Scanner;
import java.math.BigDecimal;
import java.math.RoundingMode;

class Main{
public static void main(String[] args){
Scanner sc=new Scanner(System.in);
int w=sc.nextInt();
double a=100000;
for(int i=0;i<w;i++){
a=a*1.05;
BigDecimal x=new BigDecimal(a);
x=x/1000;
x=x.setScale(0,RoundingMode.CEILING);
a=x.doubleValue()*1000;
}
System.out.println(a);
}
}

Compiler output:
Main.java:13: error: bad operand types for binary operator '/'
x=x/1000;
   ^
  first type:  BigDecimal
  second type: int
1 error
Language: Java

import java.util.Scanner;
import java.math.BigDecimal;
import java.math.RoundingMode;

class Main{
public static void main(String[] args){
Scanner sc=new Scanner(System.in);
int w=sc.nextInt();
int a=100000;
for(int i=0;i<w;i++){
a=a*1.05;
double b=a/1000;
BigDecimal x=new BigDecimal(b);
x=x.setScale(0,RoundingMode.CEILING);
a=x.intValue()*1000;
}
System.out.println(a);
}
}

Compiler output:
Main.java:11: error: incompatible types: possible lossy conversion from double to int
a=a*1.05;
   ^
1 error
Language: Java

import java.util.Scanner;
import java.math.BigDecimal;
import java.math.RoundingMode;

class Main{
public static void main(String[] args){
Scanner sc=new Scanner(System.in);
int w=sc.nextInt();
int a=100000;
for(int i=0;i<w;i++){
a+=a/20;
BigDecimal x=new BigDecimal(a);
a=x.setScale(-3,RoundingMode.CEILING);
}
System.out.println(a);
}
}

Compiler output:
Main.java:13: error: incompatible types: BigDecimal cannot be converted to int
a=x.setScale(-3,RoundingMode.CEILING);
            ^
1 error
Language: Java

import java.util.Scanner;
import java.math.BigDecimal;

class Main{
public static void main(String[] args){
Scanner sc=new Scanner(System.in);
int w=sc.nextInt();
int a=100000;
for(int i=0;i<w;i++){
a+=a/20;
BigDecimal x=new BigDecimal(a);
x=x.setScale(-3,Round_UP);
}
System.out.println(a);
}
}

Compiler output:
Main.java:12: error: cannot find symbol
x=x.setScale(-3,Round_UP);
                ^
  symbol:   variable Round_UP
  location: class Main
1 error
Language: Java

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


//n??±?????????????????????????±??????????
public class AizuONLINEDbethell {
	public static void main(String[] args){
		
		double syakkin = 100000;//?????????????????????10???
		
		System.out.println("?????±????????£??????");
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		
		try{
			String line = in.readLine();
			
			//??°?????????
			int w = Integer.parseInt(line);
			
			for(int i = 1; i <= w; i++){
				syakkin = Math.ceil((syakkin * 1.05)/10000)*10000;
			}			
		}catch(IOException e){
			System.out.println(e);
		}catch(NumberFormatException e){
			System.out.println("??°????????\????????????????????????");
		}
		
		System.out.println(syakkin);
	}
}

Compiler output:
Main.java:27: error: illegal escape character
			System.out.println("???????????\????????????????????????");
			                                ^
1 error
Language: Java

public class Main {
	

	public static void main(String args[]) throws NumberFormatException, IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			int result = 100000;
			int rishi   = 5;
			int n  = Integer.parseInt(br.readLine());
			
			for(int i = 0; i < n; i++){
				result = result + (result*rishi/100);
			}
			while(result % 10000 != 0){
				result++;
			}
			System.out.println(result);
	}
	
}

Compiler output:
Main.java:4: error: cannot find symbol
	public static void main(String args[]) throws NumberFormatException, IOException {
	                                                                     ^
  symbol:   class IOException
  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 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
4 errors
Language: Java

 import java.util.Scanner; 
2 
 
3 public class Main { 
4 	public static void main(String[] args) { 
5 		Scanner scn = new Scanner(System.in); 
6 		int n = scn.nextInt(); 
7 		int debt = 100; 
8 		for (int i = 0; i < n; i++) { 
9 			debt = (int)Math.ceil(debt * 1.05); 
10 		} 
11 		System.out.println(debt * 1000); 
12 	} 
13 } 

Compiler output:
Main.java:2: error: class, interface, enum, or record expected
2 
^
Main.java:5: error: illegal start of type
4 	public static void main(String[] args) { 
^
Main.java:6: error: not a statement
5 		Scanner scn = new Scanner(System.in); 
^
Main.java:6: error: ';' expected
5 		Scanner scn = new Scanner(System.in); 
 ^
Main.java:7: error: not a statement
6 		int n = scn.nextInt(); 
^
Main.java:7: error: ';' expected
6 		int n = scn.nextInt(); 
 ^
Main.java:8: error: not a statement
7 		int debt = 100; 
^
Main.java:8: error: ';' expected
7 		int debt = 100; 
 ^
Main.java:9: error: not a statement
8 		for (int i = 0; i < n; i++) { 
^
Main.java:9: error: ';' expected
8 		for (int i = 0; i < n; i++) { 
 ^
Main.java:10: error: not a statement
9 			debt = (int)Math.ceil(debt * 1.05); 
^
Main.java:10: error: ';' expected
9 			debt = (int)Math.ceil(debt * 1.05); 
 ^
Main.java:11: error: not a statement
10 		} 
^
Main.java:11: error: ';' expected
10 		} 
  ^
Main.java:12: error: not a statement
11 		System.out.println(debt * 1000); 
^
Main.java:12: error: ';' expected
11 		System.out.println(debt * 1000); 
  ^
Main.java:13: error: not a statement
12 	} 
^
Main.java:13: error: ';' expected
12 	} 
  ^
Main.java:14: error: illegal start of type
13 } 
^
19 errors
Language: Java

import java.util.Scanner;

public class Main {

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

		int inputNum = in.nextDouble();

		System.out.println(getNowShakkin(inputNum));
	}

	public static int getKiriage1000(double shakkin) {
		double result = shakkin;

		result = (int) (Math.ceil((double) result / 1000) * 1000);
		return result;
	}

	public static double getNowShakkin(int weekInterval) {
		double result = 100000;
		double rishi = 0.05;

		for (int i = 0; i < weekInterval; i++) {
			result = result + (result * rishi);
		}

		result = getKiriage1000(result);

		return result;
	}
}

Compiler output:
Main.java:8: error: incompatible types: possible lossy conversion from double to int
		int inputNum = in.nextDouble();
		                            ^
Main.java:17: error: incompatible types: possible lossy conversion from double to int
		return result;
		       ^
2 errors
Language: Java

import java.util.Scanner;

public class Main {

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

		int inputNum = in.nextInt();

		System.out.println(getNowShakkin(inputNum));
	}

	public static int getKiriage1000(double shakkin) {
		double result = shakkin;

		result = (int) (Math.ceil((double) result / 1000) * 1000);
		return result;
	}

	public static int getNowShakkin(int weekInterval) {
		double result = 100000;
		double rishi = 0.05;

		for (int i = 0; i < weekInterval; i++) {
			result = result + (result * rishi);
		}

		result = getKiriage1000(result);

		return result;
	}
}

Compiler output:
Main.java:17: error: incompatible types: possible lossy conversion from double to int
		return result;
		       ^
Main.java:30: error: incompatible types: possible lossy conversion from double to int
		return result;
		       ^
2 errors
Language: Java

		public static void main(String args[]) {
			Scanner in = new Scanner(System.in);
			int inputNum = in.nextInt();
			System.out.println(getNowShakkin(inputNum));
		}

		public static int getNowShakkin(int weekInterval) {
			double result = 100;

			for (int i = 0; i < weekInterval; i++) {
				result = result + (result * 0.05);
				result = (Math.ceil((double) result));
			}

			return (int)result * 1000;
		}
	}

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
		public static void main(String args[]) {
		              ^
  (use --enable-preview to enable unnamed classes)
Main.java:17: error: class, interface, enum, or record expected
	}
	^
2 errors
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));
		String input = br.readLine();
		int week = Integer.parseInt(input);
		int loan = 100000;
		for(int i = 1;i <= week;i++){
			loan = (loan * 1.05);
			if(loan % 1000 != 0){
				loan += 1000 - loan % 1000;
			}
		}
		System.out.println(loan);
	}
}

Compiler output:
Main.java:12: error: incompatible types: possible lossy conversion from double to int
			loan = (loan * 1.05);
			             ^
1 error
Language: Java

import java.util.*;

public class Main{
	private static final Scanner scan = new Scanner(System.in);

	public static void main(String[] args){
		int n = scan.nextInt();
		long mon = 100_000;
		while(n != 0){
			mon = Math.ceil(m * 1.05);
			n--;
		}
		System.out.printf("%d\n", mon);
	}
}

Compiler output:
Main.java:10: error: cannot find symbol
			mon = Math.ceil(m * 1.05);
			                ^
  symbol:   variable m
  location: class Main
1 error
Language: Java

import java.util.*;

public class Main{
	private static final Scanner scan = new Scanner(System.in);

	public static void main(String[] args){
		int n = scan.nextInt();
		long mon = 100_000;
		while(n != 0){
			mon = Math.ceil(mon * 1.05);
			n--;
		}
		System.out.printf("%d\n", mon);
	}
}

Compiler output:
Main.java:10: error: incompatible types: possible lossy conversion from double to long
			mon = Math.ceil(mon * 1.05);
			               ^
1 error
Language: Java

import java.util.*;

public class Main{
	private static final Scanner scan = new Scanner(System.in);

	public static void main(String[] args){
		int n = scan.nextInt();
		long mon = 100_000;
		for(int i = 0; i < n; i++){
			mon = Math.ceil(mon * 1.05 / 1000) * 1000;
		}
		System.out.printf("%d\n", mon);
	}
}

Compiler output:
Main.java:10: error: incompatible types: possible lossy conversion from double to long
			mon = Math.ceil(mon * 1.05 / 1000) * 1000;
			                                   ^
1 error
Language: Java

public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int week = scan.nextInt();
		double debt = 100000;
		
		for(int i = 0; i < week; i++){
			debt = debt * 1.05 / 1000;
			debt = Math.ceil(debt);
			debt = debt * 1000;
		}
		
		int ans = (int)debt;
		System.out.println(ans);

	}

}

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

import java.io.BufferedReader;
import java.io.InputStreamReader
class Main{

	public static void main(String[] a) {
	      String line = "";
	      try {
	        BufferedReader stdReader =
	          new BufferedReader(new InputStreamReader(System.in));
	        line = stdReader.readLine();
	        stdReader.close();
	      } catch (Exception e) {
	        e.getStackTrace();
	        System.exit(-1); // ????????°???????????????
	      }
		// TODO ?????????????????????????????????????????????
		int debt = 100000;
		int n = 0;
		n = Integer.parseInt(line);
		for(int i=0;i<n;i++){
			debt = interest(debt);
		}
		System.out.println(debt);
	}

	public static int interest(int n){
		double added;
		added = n * 1.05;
		added = 1000*Math.ceil(added/1000);
		return (int)added;
	}

}

Compiler output:
Main.java:2: error: ';' expected
import java.io.InputStreamReader
                                ^
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));

		double sum = 100000;   //????????????10??????
		int ??? = 0;			//?????????????????±???

		??? = Integer.parseInt(br.readLine());

		for(int i = 0; i < ???; i++){
			sum = sum * 1.05;
			sum = sum / 1000;
			sum = Math.ceil(sum) * 1000;
		}

		System.out.println(sum);
	}
}

Compiler output:
Main.java:10: error: not a statement
		int ??? = 0;			//?????????????????????
		^
Main.java:10: error: ';' expected
		int ??? = 0;			//?????????????????????
		   ^
Main.java:12: error: illegal start of expression
		??? = Integer.parseInt(br.readLine());
		^
Main.java:12: error: illegal start of expression
		??? = Integer.parseInt(br.readLine());
		 ^
Main.java:12: error: illegal start of expression
		??? = Integer.parseInt(br.readLine());
		  ^
Main.java:12: error: illegal start of expression
		??? = Integer.parseInt(br.readLine());
		    ^
Main.java:12: error: : expected
		??? = Integer.parseInt(br.readLine());
		                                     ^
Main.java:14: error: illegal start of expression
		for(int i = 0; i < ???; i++){
		                   ^
Main.java:14: error: illegal start of expression
		for(int i = 0; i < ???; i++){
		                    ^
Main.java:14: error: illegal start of expression
		for(int i = 0; i < ???; i++){
		                     ^
Main.java:14: error: illegal start of expression
		for(int i = 0; i < ???; i++){
		                      ^
11 errors
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 sum = 100000;   //????????????10??????
		int ??? = 0;			//?????????????????±???

		??? = Integer.parseInt(br.readLine());

		for(int i = 0; i < ???; i++){
			sum *= 1.05;
			if(sum % 1000 != 0){
				sum += 1000 - sum % 1000;
			}
		}

		System.out.println(sum);
	}
}

Compiler output:
Main.java:10: error: not a statement
		int ??? = 0;			//?????????????????????
		^
Main.java:10: error: ';' expected
		int ??? = 0;			//?????????????????????
		   ^
Main.java:12: error: illegal start of expression
		??? = Integer.parseInt(br.readLine());
		^
Main.java:12: error: illegal start of expression
		??? = Integer.parseInt(br.readLine());
		 ^
Main.java:12: error: illegal start of expression
		??? = Integer.parseInt(br.readLine());
		  ^
Main.java:12: error: illegal start of expression
		??? = Integer.parseInt(br.readLine());
		    ^
Main.java:12: error: : expected
		??? = Integer.parseInt(br.readLine());
		                                     ^
Main.java:14: error: illegal start of expression
		for(int i = 0; i < ???; i++){
		                   ^
Main.java:14: error: illegal start of expression
		for(int i = 0; i < ???; i++){
		                    ^
Main.java:14: error: illegal start of expression
		for(int i = 0; i < ???; i++){
		                     ^
Main.java:14: error: illegal start of expression
		for(int i = 0; i < ???; i++){
		                      ^
11 errors
Language: Java

import java.math.BigDecimal;
import java.util.Scanner;

public class DebtHell {

	public static void Main(String[] args) {

		@SuppressWarnings("resource")
		Scanner sc = new Scanner(System.in);

		double money = 100000;
		int num = sc.nextInt();

		for(int i = 0; i < num; i++)
			money *= 1.05;

		BigDecimal bd = new BigDecimal(money);
		BigDecimal thousand = new BigDecimal(1000);
		bd = bd.divide(thousand);
		BigDecimal result = bd.setScale(0, BigDecimal.ROUND_UP);
		result = result.multiply(thousand);
		System.out.println(result);
	}

}

Compiler output:
Main.java:4: error: class DebtHell is public, should be declared in a file named DebtHell.java
public class DebtHell {
       ^
Note: Main.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
1 error
Language: Java

package java_rensyu;

import java.math.BigDecimal;
import java.util.Scanner;

public class Chika {

	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);

		int week = scanner.nextInt();

		BigDecimal debt = new BigDecimal(100000);
		BigDecimal rate = new BigDecimal(1.05);

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

			debt = debt.multiply(rate);
			BigDecimal amari = debt.remainder(new BigDecimal(1000));

			if(amari !=new BigDecimal(0)){

				debt = debt.add(new BigDecimal(1000)).subtract(amari);
			}
		}

		System.out.println(debt);

		scanner.close();
	}

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

import java.math.BigDecimal;
import java.util.Scanner;

public class Chika {

	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);

		int week = scanner.nextInt();

		BigDecimal debt = new BigDecimal(100000);
		BigDecimal rate = new BigDecimal(1.05);

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

			debt = debt.multiply(rate);
			BigDecimal amari = debt.remainder(new BigDecimal(1000));

			if(amari !=new BigDecimal(0)){

				debt = debt.add(new BigDecimal(1000)).subtract(amari);
			}
		}

		System.out.println(debt);

		scanner.close();
	}

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

import java.math.BigDecimal;
import java.util.Scanner;

public class Chika {

	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);

		int week = scanner.nextInt();

		BigDecimal debt = new BigDecimal(100000);
		BigDecimal rate = new BigDecimal(1.05);

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

			debt = debt.multiply(rate);
			BigDecimal amari = debt.remainder(new BigDecimal(1000));

			if(amari !=new BigDecimal(0)){

				debt = debt.add(new BigDecimal(1000)).subtract(amari);
			}
		}

		System.out.println(debt);

		scanner.close();
	}
}

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

class Main{
  public static void main(String[] args){

    double debt = 100000;
    double mo = 0.05;
    int turm = new Scanner(System.in).nextInt();
    while(turm>0){
      debt = debt*1.05;
      debt = Math.ceil(debt/1000)*1000;
      turm--;
    }
    System.out.println((int)debt);

  }
}

Compiler output:
Main.java:6: error: cannot find symbol
    int turm = new Scanner(System.in).nextInt();
                   ^
  symbol:   class Scanner
  location: class Main
1 error
Language: Java

import java.io.*;

class Main {
    public static void main(String[] args) {
        try {
            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));// ??\????????????????????????
            String line = br.readLine();
            int deptWeek = Integer.parseInt(line);
            int dept = 100000;
            for(int i = 1; i < deptWeek; i++ ){
            	int checkDept = (int)Math.ceil(dept * 0.05);
            	String strCheckDept = String.valueOf(checkDept);
            	String num = strCheckDept.substring(strCheckDept.length() - 4, strCheckDept.length() - 3);
            	if(!num.equals("0")){
            		int numnum = Integer.parseInt(num);
            		checkDept = checkDept + 10000 - numnum;
            	}
            	dept = dept + checkDept;
            }
            System.out.println(dept); 
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

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

public class Main{
   public static void main(String[] args){
      Scanner sc = new Scanner(System.in);
      int n = Integer.parseInt(sc.nextLine());
      double debt = 100000;
      
      while(n > 0){
         debt *= 1.05;
         debt = 1000.0*Math.ceil(debt/1000.0);
         n--;
      }
      
      System.out.println(String.format("%.0f",debt));
      
   }//main
}//class

Compiler output:
Main.java:3: error: cannot find symbol
      Scanner sc = new Scanner(System.in);
      ^
  symbol:   class Scanner
  location: class Main
Main.java:3: error: cannot find symbol
      Scanner sc = new Scanner(System.in);
                       ^
  symbol:   class Scanner
  location: class Main
2 errors
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 debt = 100000;
		while(n-- != 0) {
			debt += debt*0.05;
			int a = debt%1000;
			if(a != 0) debt += 1000-a;
		}
		System.out.println(debt);
	}
}
5


Compiler output:
Main.java:16: error: class, interface, enum, or record expected
5
^
1 error
Language: Java

import java.util.*;class Main{public static void main(String[]a){System.out.println(f(new Scanner(System.in).nextInt())*'&#1000;');}static int f(int n){return n<1?100:(int)Math.ceil(f(n-1)*1.05);}}

Compiler output:
Main.java:1: error: unclosed character literal
import java.util.*;class Main{public static void main(String[]a){System.out.println(f(new Scanner(System.in).nextInt())*'&#1000;');}static int f(int n){return n<1?100:(int)Math.ceil(f(n-1)*1.05);}}
                                                                                                                        ^
Main.java:1: error: illegal character: '#'
import java.util.*;class Main{public static void main(String[]a){System.out.println(f(new Scanner(System.in).nextInt())*'&#1000;');}static int f(int n){return n<1?100:(int)Math.ceil(f(n-1)*1.05);}}
                                                                                                                          ^
Main.java:1: error: unclosed character literal
import java.util.*;class Main{public static void main(String[]a){System.out.println(f(new Scanner(System.in).nextInt())*'&#1000;');}static int f(int n){return n<1?100:(int)Math.ceil(f(n-1)*1.05);}}
                                                                                                                                ^
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
import java.util.*;class Main{public static void main(String[]a){System.out.println(f(new Scanner(System.in).nextInt())*'&#1000;');}static int f(int n){return n<1?100:(int)Math.ceil(f(n-1)*1.05);}}
                                                                                                                                           ^
  (use --enable-preview to enable unnamed classes)
Main.java:1: error: class, interface, enum, or record expected
import java.util.*;class Main{public static void main(String[]a){System.out.println(f(new Scanner(System.in).nextInt())*'&#1000;');}static int f(int n){return n<1?100:(int)Math.ceil(f(n-1)*1.05);}}
                                                                                                                                                                                                    ^
5 errors