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

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        List<Integer> list = new ArrayList<Integer>();
        while (scanner.hasNext()) {
            for (int i = 0; i < 6; i++) {
                list.add(Integer.parseInt(scanner.next()));
            }
            String result = getResultOfRenritsu(list.get(0),
                    list.get(1),
                    list.get(2),
                    list.get(3),
                    list.get(4),
                    list.get(5));
            System.out.println(result);
            list.clear();
        }
    }
    
    private static String getResultOfRenritsu(int a, int b, int c, int d, int e, int f) {
        int xLCM = getLCM(a, d);
        int aKake = xLCM / a;
        a = a * aKake;
        b = b * aKake;
        c = c * aKake;

        int dKake = xLCM / d;
        d = d * dKake;
        e = e * dKake;
        f = f * dKake;

        int g, h, x, y;

        if (a > 0 && d > 0 || a < 0 && d < 0) {
            g = b - e;
            h = c - f;
            y = h / g;
            x = (-b * y + c) / a;
        } else {
            g = b + e;
            h = c + f;
            y = h / g;
            x = (-b * y + c) / a;
        }
        return x + " " + y;
    }

    private static int getGCD(int a, int b) {
        return b == 0 ? a : getGCD(b, a % b);
    }

    private static int getLCM(int a, int b) {
        return a * b / getGCD(a, b);
    }
}

Compiler output:
Main.java:3: error: cannot find symbol
        Scanner scanner = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Main
Main.java:3: error: cannot find symbol
        Scanner scanner = new Scanner(System.in);
                              ^
  symbol:   class Scanner
  location: class Main
Main.java:4: error: cannot find symbol
        List<Integer> list = new ArrayList<Integer>();
        ^
  symbol:   class List
  location: class Main
Main.java:4: error: cannot find symbol
        List<Integer> list = new ArrayList<Integer>();
                                 ^
  symbol:   class ArrayList
  location: class Main
4 errors
Language: Java

import java.text.DecimalFormat;
import java.util.Scanner;


public class Volume0_0004 {

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

		DecimalFormat df = new DecimalFormat("0.000");
		while (in.hasNext()) {
			double[][] A = new double[2][2];
			double[] b = new double[2];
			
			A[0][0] = in.nextInt();
			A[0][1] = in.nextInt();
			b[0] = in.nextInt();
			A[1][0] = in.nextInt();
			A[1][1] = in.nextInt();
			b[1] = in.nextInt();
			
			double[] x = gaussJordan(A, b);
			System.out.println(df.format(x[0])+" "+df.format(x[1]));
		}
	}

	// solve Ax=b
	static double[] gaussJordan(double[][] A, double[] b) {
		int n = A.length;
		double[][] B = new double[n][n+1];
		for (int i=0;i<n;i++) {
			for (int j=0;j<n;j++) {
				B[i][j] = A[i][j];
			}
			B[i][n] = b[i];
		}
		
		for (int v=0;v<n;v++) { // for each variable(column)
			// search for variable whose abs(coefficient) is max
			int pivot = v;
			for (int r=pivot;r<n;r++) {
				if (Math.abs(B[r][v])>Math.abs(B[pivot][v])) {
					pivot = r;
				}
			}
			
			swapRowD(B, v, pivot);
			for (int c=v+1;c<n+1;c++) {
				B[v][c] /= B[v][v];
			}
			for (int r=0;r<n;r++) {
				if (r==v) continue;
				for (int c=v+1;c<n+1;c++) {
					B[r][c] -= B[v][c]*B[r][v];
				}
			}
		}
		
		double[] res = new double[n];
		for (int i=0;i<n;i++) {
			res[i] = B[i][n];
		}
		return res;
	}
	
	static void swapRowD(double[][] A, int m, int n) {
		double[] tmp = A[m];
		A[m] = A[n];
		A[n] = tmp;
	}
}

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

mport java.util.Scanner;

//Simultaneous Equation
public class AOJ0004 {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		while(sc.hasNext()){
			double a[] = new double[6];
			for(int i=0;i<6;i++)a[i]=sc.nextDouble();
			double d = a[0]*a[4]-a[1]*a[3];
			double x = (a[4]*a[2]-a[1]*a[5])/d;
			double y = (a[0]*a[5]-a[2]*a[3])/d;
			if(x==0)x=0;
			if(y==0)y=0;
			System.out.printf("%.3f %.3f\n", x, y);
		}
	}
}

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

import java.util.Scanner;

//Simultaneous Equation
public class AOJ0004 {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		while(sc.hasNext()){
			double a[] = new double[6];
			for(int i=0;i<6;i++)a[i]=sc.nextDouble();
			double d = a[0]*a[4]-a[1]*a[3];
			double x = (a[4]*a[2]-a[1]*a[5])/d;
			double y = (a[0]*a[5]-a[2]*a[3])/d;
			if(x==0)x=0;
			if(y==0)y=0;
			System.out.printf("%.3f %.3f\n", x, y);
		}
	}
}

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

package aizu_online_judge;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.math.BigDecimal;
 
public class Ex0004 {
 
    public static void main(String[] args) {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = null;
         
        try {
            while((line = br.readLine()) != null) {
                line = line.trim();
                String[] values = line.split("\\s");
                if(values.length != 6) System.exit(-1);
                double[] value = new double[6];
                int i = 0;
                for(String s : values) {
                    value[i] = Integer.parseInt(s);
                    if(value[i] < -1000 || value[i] > 1000) System.exit(-1);
                    i++;
                }
                 
                double a = value[0];
                double b = value[1];
                double c = value[2];
                double d = value[3];
                double e = value[4];
                double f = value[5];
                 
                double x = (c*e - f*b) / (a*e - b*d);
                double y = (c*d - f*a) / (b*d - a*e);
                 
                BigDecimal bdX = new BigDecimal(x);
                BigDecimal bdY = new BigDecimal(y);
                bdX = bdX.setScale(3, BigDecimal.ROUND_HALF_UP);
                bdY = bdY.setScale(3, BigDecimal.ROUND_HALF_UP);
 
                System.out.println(bdX + " " + bdY);
            }
        } catch (IOException e) {
            e.printStackTrace();
        }
         
    }
 
}

Compiler output:
Main.java:8: error: class Ex0004 is public, should be declared in a file named Ex0004.java
public class Ex0004 {
       ^
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;


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

		String line = br.readLine();
		while (line != null) {

			String numArray[] = line.split(" ");

			double a = Double.valueOf(numArray[0]);
			double b = Double.valueOf(numArray[1]);
			double c = Double.valueOf(numArray[2]);
			double d = Double.valueOf(numArray[3]);
			double e = Double.valueOf(numArray[4]);
			double f = Double.valueOf(numArray[5]);

			double x = (b * f - c * e) / (d * b - a * e);
			double y = (c - a * x) / b;

			BigDecimal xBD = new BigDecimal(x);
			BigDecimal yBD = new BigDecimal(y);

			BigDecimal xROUND = xBD.setScale(3, BigDecimal.ROUND_HALF_UP);
			BigDecimal yROUND = yBD.setScale(3, BigDecimal.ROUND_HALF_UP);

			System.out.print(xROUND);
			System.out.print(" ");
			System.out.println(yROUND);

			line = br.readLine();
		}

    }
}

Compiler output:
Main.java:7: error: '{' expected
class Main throws IOException {
          ^
1 error
Language: Java

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


class Main throws IOException {
    public static void main(String[] a){
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = br.readLine();
		while (line != null) {
			String numArray[] = line.split(" ");
			double a = Double.valueOf(numArray[0]);
			double b = Double.valueOf(numArray[1]);
			double c = Double.valueOf(numArray[2]);
			double d = Double.valueOf(numArray[3]);
			double e = Double.valueOf(numArray[4]);
			double f = Double.valueOf(numArray[5]);
			double x = (b * f - c * e) / (d * b - a * e);
			double y = (c - a * x) / b;
			BigDecimal xBD = new BigDecimal(x);
			BigDecimal yBD = new BigDecimal(y);
			BigDecimal xROUND = xBD.setScale(3, BigDecimal.ROUND_HALF_UP);
			BigDecimal yROUND = yBD.setScale(3, BigDecimal.ROUND_HALF_UP);
			System.out.print(xROUND);
			System.out.print(" ");
			System.out.println(yROUND);
			line = br.readLine();
		}
    }
}

Compiler output:
Main.java:7: error: '{' expected
class Main throws IOException {
          ^
1 error
Language: Java

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


class Main{
    public static void main(String[] a) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = br.readLine();
		while (line != null) {
			String numArray[] = line.split(" ");
			double a = Double.valueOf(numArray[0]);
			double b = Double.valueOf(numArray[1]);
			double c = Double.valueOf(numArray[2]);
			double d = Double.valueOf(numArray[3]);
			double e = Double.valueOf(numArray[4]);
			double f = Double.valueOf(numArray[5]);
			double x = (b * f - c * e) / (d * b - a * e);
			double y = (c - a * x) / b;
			BigDecimal xBD = new BigDecimal(x);
			BigDecimal yBD = new BigDecimal(y);
			BigDecimal xROUND = xBD.setScale(3, BigDecimal.ROUND_HALF_UP);
			BigDecimal yROUND = yBD.setScale(3, BigDecimal.ROUND_HALF_UP);
			System.out.print(xROUND);
			System.out.print(" ");
			System.out.println(yROUND);
			line = br.readLine();
		}
    }
}

Compiler output:
Main.java:13: error: variable a is already defined in method main(String[])
			double a = Double.valueOf(numArray[0]);
			       ^
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;
class Main{
    public static void main(String[] a) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = br.readLine();
		while (line != null) {
			String numArray[] = line.split(" ");
			double a = Double.valueOf(numArray[0]);
			double b = Double.valueOf(numArray[1]);
			double c = Double.valueOf(numArray[2]);
			double d = Double.valueOf(numArray[3]);
			double e = Double.valueOf(numArray[4]);
			double f = Double.valueOf(numArray[5]);
			double x = (b * f - c * e) / (d * b - a * e);
			double y = (c - a * x) / b;
			BigDecimal xBD = new BigDecimal(x);
			BigDecimal yBD = new BigDecimal(y);
			BigDecimal xROUND = xBD.setScale(3, BigDecimal.ROUND_HALF_UP);
			BigDecimal yROUND = yBD.setScale(3, BigDecimal.ROUND_HALF_UP);
			System.out.print(xROUND);
			System.out.print(" ");
			System.out.println(yROUND);
			line = br.readLine();
		}
    }
}

Compiler output:
Main.java:11: error: variable a is already defined in method main(String[])
			double a = Double.valueOf(numArray[0]);
			       ^
Note: Main.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
1 error
Language: Java


import java.util.Scanner;

class Main{

	public static void main(String[] args) {
		Scanner input=new Scanner(System.in);
		while(input.hasNext())
		{
			double a1=input.nextDouble(),b1=input.nextDouble(),c1=input.nextDouble()
					,a2=input.nextDouble(),b2=input.nextDouble(),c2=input.nextDouble();
			double a=(c1*b2-b1*c2)/(a1*b2-b1*a2);
			double b=(c2*a1-a2*c1)/(a1*b2-b1*a2);
			if(a==-0)
			{
				a=0;
			}
			else if(b==-0)
			{
				b=0;
			}
			System.out.format("%.3f %.3f\n",a,b);
		}
	}

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

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

public class SimultaneousEquation {

    public static void main(String args[]) {
    	
    	InputStreamReader isr = new InputStreamReader(System.in);
    	BufferedReader br = new BufferedReader(isr);
    	String buf;
    	int a,b,c,d,e,f;
    	double x,y;
    	
    	try{
    		while((buf = br.readLine())!=null)
    		{
    			StringTokenizer st = new StringTokenizer(buf);
    			a = Integer.parseInt(st.nextToken());
    			b = Integer.parseInt(st.nextToken());
    			c = Integer.parseInt(st.nextToken());
    			d = Integer.parseInt(st.nextToken());
    			e = Integer.parseInt(st.nextToken());
    			f = Integer.parseInt(st.nextToken());
    			x = (e*c-b*f)/(a*e-b*d);
    			y = (-d*c+f*a)/(a*e-b*d);
    			System.out.println(String.format("%.3f", x)+" "+String.format("%.3f", y));
    			
    		}
    	} catch (Exception err){
    		System.out.println("Exception");
    	}
    	
    }
}

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

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

public class Main{
      public static void main(String a[]) {
           InputStreamReader isr = new InputStreamReader(System.in);
    	   BufferedReader br = new BufferedReader(sir);
           String buf;
           int a,b,c,d,e,f;
           double x,y;
           try{
    		while((buf = br.readLine())!=null)
    		{
    			StringTokenizer st = new StringTokenizer(buf);
    			a = Integer.parseInt(st.nextToken());
    			b = Integer.parseInt(st.nextToken());
    			c = Integer.parseInt(st.nextToken());
    			d = Integer.parseInt(st.nextToken());
    			e = Integer.parseInt(st.nextToken());
    			f = Integer.parseInt(st.nextToken());
    			x = (e*c-b*f)/(a*e-b*d);
    			y = (-d*c+f*a)/(a*e-b*d);
    			if(x == -0.0) x = 0.0;
                        if(y == -0.0) y = 0.0;
                       System.out.printf("%4.3f %4.3f\n", x, y);	
    		}
    	  } catch (Exception err){
    		System.out.println("Exception");
    	  }
      }
}

Compiler output:
Main.java:8: error: cannot find symbol
    	   BufferedReader br = new BufferedReader(sir);
    	                                          ^
  symbol:   variable sir
  location: class Main
Main.java:10: error: variable a is already defined in method main(String[])
           int a,b,c,d,e,f;
               ^
2 errors
Language: Java

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

public class Main {
	public static void main(String[] a) throws IOException {

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		ArrayList<String> al = new ArrayList<String>();
		String str;

		// 1???????????\?????????????????????????????????
		while ((str = br.readLine()) != null) {
			if (str.length() == 0) {
				break;
			}
			al.add(str);
		}

		BigDecimal[][] ans = new BigDecimal[al.size()][2];

		// ??£???????¨????
		int len = al.size();
		for (int i = 0; i < len; i++) {
			String[] buf = al.get(0).split(" ");

			// ???????????????1??????????????????????????°??????????????????
			double a = Double.parseDouble(buf[0]);
			double b = Double.parseDouble(buf[1]);
			double c = Double.parseDouble(buf[2]);
			double d = Double.parseDouble(buf[3]);
			double e = Double.parseDouble(buf[4]);
			double f = Double.parseDouble(buf[5]);

			// y????±?????????????
			double y = yOperation(a, b, c, d, e, f);

			// x????±?????????????
			double x = xOperation(a, b, c, y);

			// ?°???°?????\????¬¬??????????????¨?????\
			BigDecimal bdx = new BigDecimal(x);
			bdx = bdx.setScale(3, BigDecimal.ROUND_HALF_UP);
			BigDecimal bdy = new BigDecimal(y);
			bdy = bdy.setScale(3, BigDecimal.ROUND_HALF_UP);

			ans[i][0] = bdx;
			ans[i][1] = bdy;
		}

		// ??????
		for (int i = 0; i < ans.length; i++) {
			System.out.printf("%4.3f" + " " + "%4.3f" + "\n", ans[i][0],
					ans[i][1]);
		}
	}

	private static double yOperation(double a, double b, double c, double d,
			double e, double f) {
		double y;
		try {
			y = (f + -(d * c / a)) / ((d * -b / a) + e);
		} catch (ArithmeticException ae) {
			y = 0;
		}
		return y;
	}

	private static double xOperation(double a, double b, double c, double y) {
		double x;
		try {
			x = (c + -(b * y)) / a;
		} catch (ArithmeticException ae) {
			x=0;
		}
		return x;
	}

}

Compiler output:
Main.java:30: error: variable a is already defined in method main(String[])
			double a = Double.parseDouble(buf[0]);
			       ^
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.InputStreamReader;

public class SimultaneousEquation {
	public class UnknowNumbers{
		float x;
		float y;
	}

	public UnknowNumbers formula(float para_a, float para_b, float para_c, float para_d, float para_e, float para_f){
		UnknowNumbers numbers = new UnknowNumbers();

		if(para_a == 0){
			numbers.y = para_c / para_b;
			numbers.x = ((para_b * para_f) - (para_c * para_e)) / (para_d * para_b);

		} else if((para_a * para_e) - (para_d * para_b) == 0){
			System.out.println("The parallel lines!!!");
			System.exit(0);
		} else{
			numbers.y = ((para_a * para_f) - (para_d * para_c)) / ((para_a * para_e) - (para_d * para_b));
			numbers.x = (para_c - para_b * numbers.y) / para_a;
		}
		return numbers;
	}
	public static void main(String[] args){

		SimultaneousEquation equation = new SimultaneousEquation();
		UnknowNumbers numbers;
		String[] strParameters;

		InputStreamReader isr = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(isr);

		while(true){
			try{
				String buf = br.readLine();
				if(buf == null) break;
				strParameters = buf.split(" ");
			}catch(Exception e){
				System.out.print(e);
				break;
			}

			float[] parameters = new float[strParameters.length];

			for(int iPara = 0; iPara < strParameters.length; iPara++){
				parameters[iPara] = Float.parseFloat(strParameters[iPara]);
			}
			numbers = equation.formula(parameters[0],parameters[1],parameters[2],parameters[3],parameters[4],parameters[5]);
			System.out.printf("%.3f %.3f\n",numbers.x,numbers.y);

		}
	}
}

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

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

public class SimultaneousEquation {
	public class UnknowNumbers{
		float x;
		float y;
	}

	public UnknowNumbers formula(float para_a, float para_b, float para_c, float para_d, float para_e, float para_f){
		UnknowNumbers numbers = new UnknowNumbers();

		if(para_a == 0){
			if(para_b == 0){
				System.out.println("a and b should not equals 0 at the same time!!!");
				System.exit(0);
			}
			numbers.y = para_c / para_b;
			if(para_d == 0){
				System.out.println("The parallel lines or the same line!!!");
				System.exit(0);
			}
			numbers.x = ((para_b * para_f) - (para_c * para_e)) / (para_d * para_b);

		} else if((para_a * para_e) - (para_d * para_b) == 0){
			System.out.println("The parallel lines or the same line!!!");
			System.exit(0);
		} else{
			numbers.y = ((para_a * para_f) - (para_d * para_c)) / ((para_a * para_e) - (para_d * para_b));
			numbers.x = (para_c - para_b * numbers.y) / para_a;
		}
		return numbers;
	}
	public static void main(String[] args){

		SimultaneousEquation equation = new SimultaneousEquation();
		UnknowNumbers numbers;
		String[] strParameters;

		InputStreamReader isr = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(isr);

		while(true){
			try{
				String buf = br.readLine();
				if(buf == null) break;
				strParameters = buf.split(" ");
			}catch(Exception e){
				System.out.print(e);
				break;
			}

			float[] parameters = new float[strParameters.length];

			for(int iPara = 0; iPara < strParameters.length; iPara++){
				parameters[iPara] = Float.parseFloat(strParameters[iPara]);
				if(parameters[iPara] < -1000 || parameters[iPara] > 1000){
					System.out.println("Some parameters out of limit!");
					System.exit(0);
				}
			}
			numbers = equation.formula(parameters[0],parameters[1],parameters[2],parameters[3],parameters[4],parameters[5]);
			if(numbers.x == -0f)	numbers.x = 0.0f;
			if(numbers.y == -0f)	numbers.y = 0.0f;
			System.out.printf("%.3f %.3f\n",numbers.x,numbers.y);
		}
	}
}

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

package aoj;
import java.util.Scanner;
public class Renritsuhouteisiki {
	
	static int a,b,c,d,e,f;
	static double x,y;

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		Scanner s = new Scanner(System.in);
		while(true){
		a = s.nextInt();
		b = s.nextInt();
		c = s.nextInt();
		d = s.nextInt();
		e = s.nextInt();
		f = s.nextInt();
		x = (e*c-b*f)/(a+e-b*d);
		y = (a*f-d*c)/(a*e-b*d);
		System.out.printf("%4.3f",x);
		System.out.print(" ");
		System.out.printf("%4.3f",y);
		}
	}

}

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


import java.util.Scanner;
public class Renritsuhouteisiki {
	
	static int a,b,c,d,e,f;
	static double x,y;

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		Scanner s = new Scanner(System.in);
		while(true){
		a = s.nextInt();
		b = s.nextInt();
		c = s.nextInt();
		d = s.nextInt();
		e = s.nextInt();
		f = s.nextInt();
		x = (e*c-b*f)/(a+e-b*d);
		y = (a*f-d*c)/(a*e-b*d);
		System.out.printf("%4.3f",x);
		System.out.print(" ");
		System.out.printf("%4.3f",y);
		}
	}

}

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

import java.util.Scanner;
public class main {
	
	static int a,b,c,d,e,f;
	static double x,y;
	private static Scanner s;

	public static void main(String[] args) {
		s = new Scanner(System.in);
		while(true){
		a = s.nextInt();
		b = s.nextInt();
		c = s.nextInt();
		d = s.nextInt();
		e = s.nextInt();
		f = s.nextInt();
		x = (e*c-b*f)/(a+e-b*d);
		y = (a*f-d*c)/(a*e-b*d);
		System.out.printf("%4.3f",x);
		System.out.print(" ");
		System.out.printf("%4.3f",y);
		}
	}

}

Compiler output:
Main.java:2: 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 SE{
	public static void Main(String[] args){
		Scanner sc = new Scanner(System.in);
		while(sc.hasNext()){
			double a = sc.nextDouble();double b = sc.nextDouble();double c = sc.nextDouble();
			double d = sc.nextDouble();double e = sc.nextDouble();double f = sc.nextDouble();
			double sum1 = 0.0;double sum2 = 0.0;
			double x = 0.0;double y = 0.0;
			if(a>d && 0>d){
				sum1 = (b*(-d) + e*a);
				sum2 = (c*(-d) + f*a);
				y = sum2 / sum1;
				x = (c - b*y)/a;
			}else if(a>d && d>0){
				sum1 = (b*d + e*(-a));
				sum2 = (c*d + f*(-a));
				y = sum2 / sum1;
				x = (c - b*y)/a;
			}else if(a<d && 0>a){
				sum1 = (b*d + e*a);
				sum2 = (c*d + f*a);
				y = sum2 / sum1;
				x = (c - b*y)/a;
			}else if(a<d && 0<a){
				sum1 = (b*d + e*(-a));
				sum2 = (c*d + f*(-a));
				y = sum2 / sum1;
				x = (c - b*y)/a;
			}else if(a == d){
				sum1 = b - e;
				sum2 = c - f;
				y = sum2 / sum1;
				x = (c - b*y)/a;
			}else if(a == -d || -a == d){
				sum1 = b + e;
				sum2 = c + f;
				y = sum2 / sum1;
				x = (c - b*y)/a;
			}
			System.out.printf("%.3f %.3f",x,y);
		}
	}
}

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

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

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

        while((str= br.readLine()) != null){
            String[] str2 = str.split(" ");
            double a = Double.parseDouble(str2[0]);
            double b = Double.parseDouble(str2[1]);
            double c = Double.parseDouble(str2[2]);
            double d = Double.parseDouble(str2[3]);
            double e = Double.parseDouble(str2[4]);
            double f = Double.parseDouble(str2[5]);


            double x = (c*e - b*f) / (a*e - b*d);
            double y = (c*d - a*f) / (b*d - a*e);

            BigDecimal bdY = new BigDecimal(y);
            BigDecimal bdX = new BigDecimal(x);

            bdY = bdY.setScale(3, BigDecimal.ROUND_HALF_UP);
            bdX = bdX.setScale(3, BigDecimal.ROUND_HALF_UP);

            if(bdX == -0.000){
                bdX = 0.000;
            }
            if(bdY == -0.000){
                bdY = 0.000;
            }

            System.out.printf("%.3f %.3f",bdX,bdY);
        }
    }
}

Compiler output:
Main.java:30: error: bad operand types for binary operator '=='
            if(bdX == -0.000){
                   ^
  first type:  BigDecimal
  second type: double
Main.java:31: error: incompatible types: double cannot be converted to BigDecimal
                bdX = 0.000;
                      ^
Main.java:33: error: bad operand types for binary operator '=='
            if(bdY == -0.000){
                   ^
  first type:  BigDecimal
  second type: double
Main.java:34: error: incompatible types: double cannot be converted to BigDecimal
                bdY = 0.000;
                      ^
Note: Main.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
4 errors
Language: Java

import java.util.*;

class Main{
    public static void main(String[] args){
        ArrayList<Value> list = new ArrayList<>();
        Scanner sc = new Scanner(System.in);
        while(sc.hasNext()){
            list.add(equation(sc.nextInt(),sc.nextInt(),sc.nextInt(),sc.nextInt(),sc.nextInt(),sc.nextInt()));
        }
        for(int i = 0,size = list.size();i < size;i++){
            Value e = list.get(i);
            System.out.println(String.format("%.3f %.3f",e.x,e.y));
        }
    }

    static Value equation(int a,int b,int c,int d,int e,int f){
        Value value = new Value(0,0);
        int _a = a,_b = b,_c = c;
        if(b < 0){
            a *= -1;
            b *= -1;
            c *= -1;
        }
        if(e < 0){
            d *= -1;
            e *= -1;
            f *= -1;
        }
        int lcm = getLcm(b,e);
        {
        int pow = lcm / b;
        a *= pow;
        c *= pow;
        }
        {
        int pow = lcm / e;
        d *= -pow;
        f *= -pow;
        }
        int x = a + d;
        int dust = c + f;
        value.x = dust / (double)x;
        value.y = (_a * value.x + _c) / (double)b;
        return value;
    }

    static double getX(

    static int getGed(int a,int b){
        while(a != b){
            if(a > b) a -= b;
            else b -= a;
        }
        return a;
    }

    static int getLcm(int a,int b){
        return a * b / getGed(a,b);
    }

    static class Value{
        double x,y;
        Value(double x,double y){
            this.x = x;
            this.y = y;
        }
    }

}

Compiler output:
Main.java:49: error: modifier static not allowed here
    static int getGed(int a,int b){
           ^
Main.java:49: error: ',', ')', or '[' expected
    static int getGed(int a,int b){
                     ^
Main.java:49: error: <identifier> expected
    static int getGed(int a,int b){
                            ^
Main.java:49: error: ';' expected
    static int getGed(int a,int b){
                                 ^
4 errors
Language: Java

import java.util.*;

class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        ArrayList<String> ans = new ArrayList<>();
        while(sc.hasNext()){
            double a = {sc.nextDouble(),sc.nextDouble(),sc.nextDouble(),sc.nextDouble(),sc.nextDouble(),sc.nextDouble()};
            ans.add(String.format("%.3f %.3f",getX(a),getY(a)));
        }
        for(int i = 0,size = ans.size();i < size;i++){
            System.out.println(ans.get(i));
        }
    }
    static double getX(double[] v){
        double x1 = v[0] * Math.abs(v[4]);
        double c1 = v[2] * Math.abs(v[4]);
        double x2 = v[3] * Math.abs(v[1]);
        double c2 = v[5] * Math.abs(v[1]);
        if((v[1] >= 0) == (v[4] >= 0)){
            x2 *= -1;
            c2 *= -1;
        }
        return (c1 + c2) / (x1 + x2);
    }
    static double getY(double[] v){
        double y1 = v[1] * Math.abs(v[3]);
        double c1 = v[2] * Math.abs(v[3]);
        double y2 = v[4] * Math.abs(v[0]);
        double c2 = v[5] * Math.abs(v[0]);
        if((v[1] >= 0) == (v[4] >= 0)){
            y2 *= -1;
            c2 *= -1;
        }
        return (c1 + c2) / (y1 + y2);
    }
}

Compiler output:
Main.java:8: error: illegal initializer for double
            double a = {sc.nextDouble(),sc.nextDouble(),sc.nextDouble(),sc.nextDouble(),sc.nextDouble(),sc.nextDouble()};
                       ^
Main.java:9: error: incompatible types: double cannot be converted to double[]
            ans.add(String.format("%.3f %.3f",getX(a),getY(a)));
                                                   ^
Main.java:9: error: incompatible types: double cannot be converted to double[]
            ans.add(String.format("%.3f %.3f",getX(a),getY(a)));
                                                           ^
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
3 errors
Language: Java

import java.util.*;

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

	public static void main(String[] args){
		List<Double> listX = new ArrayList<Double>();
		List<Double> listY = new ArrayList<Double>();
		while(scan.hasNext()){
			double a = scan.nextDouble();
			double b = scan.nextDouble();
			double c = scan.nextDouble();
			double d = scan.nextDouble();
			double e = scan.nextDouble();
			double f = scan.nextDouble();
			double y = (f * a - d * c)/(-d * b + e * a);
			double x = (f * b - e * c)/(b * d - e * a);
			listX.add(x);
			listY.add(y);
		}
		Iterator<Double> itX = listX.iterator();
		Iterator<Double> itY = listY.iterator();
		while(itX.hasNext()){
			x = itX.next();
			y = itY.next();
			System.out.printf("%.3f %.3f\n", x, y);
		}
	}
}

Compiler output:
Main.java:24: error: cannot find symbol
			x = itX.next();
			^
  symbol:   variable x
  location: class Main
Main.java:25: error: cannot find symbol
			y = itY.next();
			^
  symbol:   variable y
  location: class Main
Main.java:26: error: cannot find symbol
			System.out.printf("%.3f %.3f\n", x, y);
			                                 ^
  symbol:   variable x
  location: class Main
Main.java:26: error: cannot find symbol
			System.out.printf("%.3f %.3f\n", x, y);
			                                    ^
  symbol:   variable y
  location: class Main
4 errors
Language: Java

import java.util.*;

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

	public static void main(String[] args){
		List<Double> listX = new ArrayList<Double>();
		List<Double> listY = new ArrayList<Double>();
		while(scan.hasNext()){
			double a = scan.nextDouble();
			double b = scan.nextDouble();
			double c = scan.nextDouble();
			double d = scan.nextDouble();
			double e = scan.nextDouble();
			double f = scan.nextDouble();
			double y = (f * a - d * c)/(-d * b + e * a);
			double x = (f * b - e * c)/(b * d - e * a);
			if(x == 0)x = 0.; // 0????°???°?????\?????¨???????????????
			if(y == 0)y = 0.;
			listX.add(x);
			listY.add(y);
		}
		Iterator<Double> itX = listX.iterator();
		Iterator<Double> itY = listY.iterator();
		while(itX.hasNext()){
			double x = itX.next();
			double y = itY.next();
			System.out.printf("%.3f %.3f\n", x, y);
		}
	}

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

import java.util.Scanner;

public class vol0_0004 {
	public static void main(String[] a) {
		Scanner scn = new Scanner(System.in);
		try {
			while (true) {
				float sim_eq[] = new float[6];
				float x, y;
				for (int i = 0; i < 6; i++) {
					sim_eq[i] = scn.nextFloat();
				}
				float div = sim_eq[3] / sim_eq[0];
				sim_eq[0] *= div;
				sim_eq[1] *= div;
				sim_eq[2] *= div;
				y = (sim_eq[5] - sim_eq[2]) / (sim_eq[4] - sim_eq[1]);
				x = (sim_eq[5] - sim_eq[4] * y) / sim_eq[3];
				String x_str = String.format("%.3f", x);
				String y_str = String.format("%.3f", y);
				System.out.println(x_str + " " + y_str);
			}
		} catch (Exception e) {
		}
	}
}

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

import java.util.Scanner;

public class Q4 {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		while (scan.hasNext()) {
			String[] data = scan.nextLine().split(" ", 0);
			double[] num = new double[6];
			for (int i = 0; i < 6; i++) {
				num[i] = Double.parseDouble(data[i]);
			}
			double x = (num[2]*num[4]-num[1]*num[5])/(num[0]*num[4]-num[1]*num[3]);
			if (x < 10E-9) x = 0;
			double y = -(num[2]*num[3]-num[0]*num[5])/(num[0]*num[4]-num[1]*num[3]);
			if (y < 10E-9) y = 0;
			System.out.println(x + " " + y);
		}
	}
}

Compiler output:
Main.java:3: error: class Q4 is public, should be declared in a file named Q4.java
public class Q4 {
       ^
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));
        String inData = br.readLine();
        do {
            String[] abcdef = inData.split(" ");
            double x = (getDouble(abcdef[1]) * getDouble(abcdef[5])
                    - getDouble(abcdef[2]) * getDouble(abcdef[4]))
                    / (getDouble(abcdef[1]) * getDouble(abcdef[3])
                            - getDouble(abcdef[0]) * getDouble(abcdef[4]));
            double y = (getDouble(abcdef[2]) - getDouble(abcdef[0]) * x) / getDouble(abcdef[1]);
            System.out.printf("%.3f ", x);
            System.out.printf("%.3f\n", y);
        } while (!"".equals(inData = br.readLine()) || inDate == null);
    }

    private static double getDouble(String d) {
        return Double.parseDouble(d);
    }
}

Compiler output:
Main.java:19: error: cannot find symbol
        } while (!"".equals(inData = br.readLine()) || inDate == null);
                                                       ^
  symbol:   variable inDate
  location: class Main
1 error
Language: Java

import java.util.*;
import java.util.stream.*;
import java.io.*;
class Main {
  public static void main(String[] args) {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    br.lines()
      .map(line -> Stream.of(line.split(" "))
                      .mapToInt(Integer::parseInt)
                      .toArray())
      .map(ar -> Stream.of(
                    (double)(ar[1] * ar[5] - ar[4] * ar[2])/(ar[1] * ar[3] - ar[4] * ar[0]),
                    (double)(ar[5] * ar[0] - ar[2] * ar[3])/(ar[0] * ar[4] - ar[1] * ar[3])
      ).toArray())
      .forEach(xy -> System.out.printf("%.3f %.3f\n", Math.round(xy[0], 3), Math.round(xy[1], 3)));
  }
}

Compiler output:
Main.java:15: error: no suitable method found for round(Object,int)
      .forEach(xy -> System.out.printf("%.3f %.3f\n", Math.round(xy[0], 3), Math.round(xy[1], 3)));
                                                          ^
    method Math.round(float) is not applicable
      (actual and formal argument lists differ in length)
    method Math.round(double) is not applicable
      (actual and formal argument lists differ in length)
Main.java:15: error: no suitable method found for round(Object,int)
      .forEach(xy -> System.out.printf("%.3f %.3f\n", Math.round(xy[0], 3), Math.round(xy[1], 3)));
                                                                                ^
    method Math.round(float) is not applicable
      (actual and formal argument lists differ in length)
    method Math.round(double) is not applicable
      (actual and formal argument lists differ in length)
2 errors
Language: Java

import java.util.*;
import java.util.stream.*;
import java.io.*;
class Main {
  public static void main(String[] args) {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    br.lines()
      .map(line -> Stream.of(line.split(" "))
                      .mapToInt(Integer::parseInt)
                      .toArray())
      .map(ar -> Stream.of(
                    new BigDecimal((double)(ar[1] * ar[5] - ar[4] * ar[2])/(ar[1] * ar[3] - ar[4] * ar[0])).setScale(3, RoundingMode.HALF_UP),
                    new BigDecimal((double)(ar[5] * ar[0] - ar[2] * ar[3])/(ar[0] * ar[4] - ar[1] * ar[3])).setScale(3, RoundingMode.HALF_UP)
      ).toArray())
      .forEach(xy -> System.out.println(xy[0].toString() + " " + xy[1].toString()));
  }
}

Compiler output:
Main.java:12: error: cannot find symbol
                    new BigDecimal((double)(ar[1] * ar[5] - ar[4] * ar[2])/(ar[1] * ar[3] - ar[4] * ar[0])).setScale(3, RoundingMode.HALF_UP),
                                                                                                                        ^
  symbol:   variable RoundingMode
  location: class Main
Main.java:12: error: cannot find symbol
                    new BigDecimal((double)(ar[1] * ar[5] - ar[4] * ar[2])/(ar[1] * ar[3] - ar[4] * ar[0])).setScale(3, RoundingMode.HALF_UP),
                        ^
  symbol:   class BigDecimal
  location: class Main
Main.java:13: error: cannot find symbol
                    new BigDecimal((double)(ar[5] * ar[0] - ar[2] * ar[3])/(ar[0] * ar[4] - ar[1] * ar[3])).setScale(3, RoundingMode.HALF_UP)
                                                                                                                        ^
  symbol:   variable RoundingMode
  location: class Main
Main.java:13: error: cannot find symbol
                    new BigDecimal((double)(ar[5] * ar[0] - ar[2] * ar[3])/(ar[0] * ar[4] - ar[1] * ar[3])).setScale(3, RoundingMode.HALF_UP)
                        ^
  symbol:   class BigDecimal
  location: class Main
Main.java:15: error: array required, but Object found
      .forEach(xy -> System.out.println(xy[0].toString() + " " + xy[1].toString()));
                                          ^
Main.java:15: error: array required, but Object found
      .forEach(xy -> System.out.println(xy[0].toString() + " " + xy[1].toString()));
                                                                   ^
6 errors
Language: Java

import java.util.*;
public class aoj0004 {
	static final Scanner stdin = new Scanner(System.in);
	public static void main(String[] args) {
		while(stdin.hasNext()){
			double a = stdin.nextDouble();
			double b = stdin.nextDouble();
			double c = stdin.nextDouble();
			double d = stdin.nextDouble();
			double e = stdin.nextDouble();
			double f = stdin.nextDouble();
			double x[] = solve(a,b,c,d,e,f);
			System.out.printf("%.3f %.3f\n", x[0], x[1]);
		}
	}
	static final double[] solve(double a, double b, double c, double d, double e, double f){
		double[] ans = new double[2];
		ans[0] = (c*e - b*f) / (a*e - b*d) + 0.0; //+0.0 ???????????¨??´???????????£??????
		ans[1] = (a*f - c*d) / (a*e - b*d) + 0.0; //printf????????¨??? -0.000??¨??????wrong answer????????£????????????
		return ans;
	}
}

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

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

public class SimultaneousEquation {
	static Scanner sc =  new java.util.Scanner(System.in);

	public static void main(String[] args) {
		
		
		while ( sc.hasNext() ){
		
		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();
		int d = sc.nextInt();
		int e = sc.nextInt();
		int f = sc.nextInt();
		
		double x = ( c*e - b*f ) / ( a*e - b*d );
		double y = ( a*f - c*d ) / ( a*e - b*d );
		
		BigDecimal bix = new BigDecimal (String.valueOf(x));
		BigDecimal biy = new BigDecimal (String.valueOf(y));
		x =bix.setScale(3, BigDecimal.ROUND_HALF_UP).doubleValue();
		y =biy.setScale(3, BigDecimal.ROUND_HALF_UP).doubleValue();
		String xx = String.format("%.3f",x);
		String yy = String.format("%.3f",y);
		
		System.out.println( xx +  " " + yy );
		
		}

	}

}

Compiler output:
Main.java:4: error: class SimultaneousEquation is public, should be declared in a file named SimultaneousEquation.java
public class SimultaneousEquation {
       ^
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 Main1 {

	public static void main(String[] args) {

		int a = 0;
		int b = 0;
		int c = 0;
		int d = 0;
		int e = 0;
		int f = 0;

		Scanner stdin = new Scanner(System.in);

		a = stdin.nextInt();
		b = stdin.nextInt();
		c = stdin.nextInt();
	    d = stdin.nextInt();
		e = stdin.nextInt();
		f = stdin.nextInt();



		BigDecimal biX = new BigDecimal(String.valueOf((e * c - b * f)/(a * e - b * d)));
		BigDecimal biY = new BigDecimal(String.valueOf((d * c - a * f)/(b * d - a * e)));

		double x = biX.setScale(3, BigDecimal.ROUND_HALF_UP).doubleValue();
		double y = biY.setScale(3, BigDecimal.ROUND_HALF_UP).doubleValue();
		System.out.println(x + "," + y);


	}
}

Compiler output:
Main.java:3: error: class Main1 is public, should be declared in a file named Main1.java
public class Main1 {
       ^
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 Main1 {

	public static void main(String[] args) {

		Scanner stdin = new Scanner(System.in);

		int a = stdin.nextInt();
		int b = stdin.nextInt();
		int c = stdin.nextInt();
	    int d = stdin.nextInt();
		int e = stdin.nextInt();
		int f = stdin.nextInt();		
		int h = stdin.nextInt();
		int i = stdin.nextInt();
		int j = stdin.nextInt();
	    int k = stdin.nextInt();
		int l = stdin.nextInt();
		int m = stdin.nextInt();

		System.out.println(a + ", " + b + ", " + c + ", " + d + ", " + e + ", " + f);
		System.out.println(h + ", " + i + ", " + j + ", " + k + ", " + l + ", " + m);
		BigDecimal biX = new BigDecimal(String.valueOf((e * c - b * f)/(a * e - b * d)));
		BigDecimal biY = new BigDecimal(String.valueOf((d * c - a * f)/(b * d - a * e)));
		BigDecimal biZ = new BigDecimal(String.valueOf((l * j - i * m)/(h * l - i * k)));
		BigDecimal biW = new BigDecimal(String.valueOf((k * j - h * m)/(i * k - h * l)));
		double x = biX.setScale(3, BigDecimal.ROUND_HALF_UP).doubleValue();
		double y = biY.setScale(3, BigDecimal.ROUND_HALF_UP).doubleValue();
		double z = biZ.setScale(3, BigDecimal.ROUND_HALF_UP).doubleValue();
		double w = biW.setScale(3, BigDecimal.ROUND_HALF_UP).doubleValue();
		System.out.println(x + "," + y);
		System.out.println(z + "," + w);


	}
}

Compiler output:
Main.java:3: error: class Main1 is public, should be declared in a file named Main1.java
public class Main1 {
       ^
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.InputStreamReader;
  
public class Main {
  
    public static void main(String[] args) throws Exception {
        BufferedReader br = 
                new BufferedReader(new InputStreamReader(System.in));
        
        String str = br.readLine();
        while(str != null){
            String lns[] = str.split(" ");
            int a = lns[0];
            int b = lns[1];
            int c = lns[2];
            int d = lns[3];
            int e = lns[4];
            int f = lns[5];

            System.out.println(a + " " + b + " " + c +  " " + d +  " " + e + " " + f );
        }
        // System.out.println(String.format("%d:%d:%d", hour, min, sec));
    }
}

Compiler output:
Main.java:13: error: incompatible types: String cannot be converted to int
            int a = lns[0];
                       ^
Main.java:14: error: incompatible types: String cannot be converted to int
            int b = lns[1];
                       ^
Main.java:15: error: incompatible types: String cannot be converted to int
            int c = lns[2];
                       ^
Main.java:16: error: incompatible types: String cannot be converted to int
            int d = lns[3];
                       ^
Main.java:17: error: incompatible types: String cannot be converted to int
            int e = lns[4];
                       ^
Main.java:18: error: incompatible types: String cannot be converted to int
            int f = lns[5];
                       ^
6 errors
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;
  
public class Main {
  
    public static void main(String[] args) throws Exception {
        BufferedReader br = 
                new BufferedReader(new InputStreamReader(System.in));
        
        String str = br.readLine();
        while(str != null){
            String lns[] = str.split(" ");
            int a = (int) lns[0];
            int b = lns[1];
            int c = lns[2];
            int d = lns[3];
            int e = lns[4];
            int f = lns[5];

            System.out.println(a + " " + b + " " + c +  " " + d +  " " + e + " " + f );
        }
        // System.out.println(String.format("%d:%d:%d", hour, min, sec));
    }
}

Compiler output:
Main.java:13: error: incompatible types: String cannot be converted to int
            int a = (int) lns[0];
                             ^
Main.java:14: error: incompatible types: String cannot be converted to int
            int b = lns[1];
                       ^
Main.java:15: error: incompatible types: String cannot be converted to int
            int c = lns[2];
                       ^
Main.java:16: error: incompatible types: String cannot be converted to int
            int d = lns[3];
                       ^
Main.java:17: error: incompatible types: String cannot be converted to int
            int e = lns[4];
                       ^
Main.java:18: error: incompatible types: String cannot be converted to int
            int f = lns[5];
                       ^
6 errors