criyle/codenet-compile-errors huggingface dataset:
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 line;

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

            String[] splited =  line.split(" ", 6);
            int a = Integer.parseInt(splited[0]);
            int b = Integer.parseInt(splited[0]);
            int c = Integer.parseInt(splited[0]);
            int d = Integer.parseInt(splited[0]);
            int e = Integer.parseInt(splited[0]);
            int f = Integer.parseInt(splited[0]);

            double y = (af / d -c ) / (ae -b);
            double x = x = (c - by) / a;

            String output = String.format("%.3f %.3f", x, y);
            System.out.println(output);
        }
    }
}

/*


ax+by=c
dx+ey=f

ax = c - by
x = (c - by) / a

d((c - by) / a) + ey = f
(c -by) / a + ey = f /d
c - by + aey = af / d
- by + aey = af/d - c
(ae - b) y = af/d - c
y = (af /d -c )/(ae -b)

*/

Compiler output:
Main.java:21: error: cannot find symbol
            double y = (af / d -c ) / (ae -b);
                        ^
  symbol:   variable af
  location: class Main
Main.java:21: error: cannot find symbol
            double y = (af / d -c ) / (ae -b);
                                       ^
  symbol:   variable ae
  location: class Main
Main.java:22: error: cannot find symbol
            double x = x = (c - by) / a;
                                ^
  symbol:   variable by
  location: class Main
3 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(" ");
            double a = Double.parseDouble(lns[0]);
            double b = Double.parseDouble(lns[1]);
            double c = Double.parseDouble(lns[2]);
            double d = Double.parseDouble(lns[3]);
            double e = Double.parseDouble(lns[4]);
            double f = Double.parseDouble(lns[5]);

            for(int y = -1000 ; y < 1000; y++){
                x = c + f / (b * y + e * y) / ( a + d);
                if(x>-1000 && x<1000){
                    System.out.prdoubleln(x + "," + y);           
                    break;     
                }
            }

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

Compiler output:
Main.java:21: error: cannot find symbol
                x = c + f / (b * y + e * y) / ( a + d);
                ^
  symbol:   variable x
  location: class Main
Main.java:22: error: cannot find symbol
                if(x>-1000 && x<1000){
                   ^
  symbol:   variable x
  location: class Main
Main.java:22: error: cannot find symbol
                if(x>-1000 && x<1000){
                              ^
  symbol:   variable x
  location: class Main
Main.java:23: error: cannot find symbol
                    System.out.prdoubleln(x + "," + y);           
                                          ^
  symbol:   variable x
  location: class Main
4 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(" ");
            double a = Double.parseDouble(lns[0]);
            double b = Double.parseDouble(lns[1]);
            double c = Double.parseDouble(lns[2]);
            double d = Double.parseDouble(lns[3]);
            double e = Double.parseDouble(lns[4]);
            double f = Double.parseDouble(lns[5]);

            for(int y = -1000 ; y < 1000; y++){
                double x = c + f / (b * y + e * y) / ( a + d);
                if(x>-1000 && x<1000){
                    System.out.prdoubleln(x + "," + y);           
                    break;     
                }
            }

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

Compiler output:
Main.java:23: error: cannot find symbol
                    System.out.prdoubleln(x + "," + y);           
                              ^
  symbol:   method prdoubleln(String)
  location: variable out of type PrintStream
1 error
Language: Java

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

public class Main {

    public static void main(String[] args) throws Exception {
        BufferedReader br = 
                new BufferedReader(new InputStreamReader(System.in));
        String line;
        List outputs = new ArrayList();
        while ((line = br.readLine())!=null) {

            String[] splited = line.split(" ", 6);
            int a = Integer.parseInt(splited[0]);
            int b = Integer.parseInt(splited[1]);
            int c = Integer.parseInt(splited[2]);
            int d = Integer.parseInt(splited[3]);
            int e = Integer.parseInt(splited[4]);
            int f = Integer.parseInt(splited[5]);

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

            outputs.add(String.format("%.3f %.3f", x, y));
        }
        for (String output : outputs) {
            System.out.println(output);
        }
    }
}

/*


ax+by=c
dx+ey=f

ax = c - by
x = (c - by) / a

d((c - by) / a) + ey = f
(c -by) / a + ey = f /d
c - by + aey = af / d
- by + aey = af/d - c
(ae - b) y = af/d - c
y = (af /d -c )/(ae -b)

*/

Compiler output:
Main.java:28: error: incompatible types: Object cannot be converted to String
        for (String output : outputs) {
                             ^
Note: Main.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
Language: Java

import java.io.*;

public class Main{
	public static void main(String[] args){
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			String str[] = new String[200];
			str[0] = br.readLine();
			int i = 0;
			while(str[i] != null){
				i++;
				str[i] = br.readLine();
			}

			double a[] = new double[6];

			for(int j=0;j<i+1;j++){
				String str2[] = str[j].split(" ",0);
				for(int k=0;k<6;k++){
					a[k] = Double.parseDouble(str2[k]);
				}

				double x,y;

				if(a[0]==0 && a[4]==0){
					y=a[2]/a[1];
					x=a[5]/a[3];
				}else if(a[1]==0 && a[3]==0){
					x=a[2]/a[0];
					y=a[5]/a[4];
				}else if(a[4]==0){
					x=a[5]/a[3];
					y=(a[2]-a[0]*x)/a[1];	
				}else if(a[3]==0){
					y=a[5]/a[4];
					x=(a[2]-a[1]*y)/a[0];
				}else{
					x = (a[2]-a[1]*a[5]/a[4])/(a[0]-a[1]*a[3]/a[4]);
					y = (a[2]-a[0]*a[5]/a[3])/(a[1]-a[0]*a[4]/a[3]);
				}
				System.out.println(String.format("%.3f",x)+" "+String.format("%.3f",y));
			}

		
	}
}


Compiler output:
Main.java:7: error: unreported exception IOException; must be caught or declared to be thrown
			str[0] = br.readLine();
			                    ^
Main.java:11: error: unreported exception IOException; must be caught or declared to be thrown
				str[i] = br.readLine();
				                    ^
2 errors
Language: Java


import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Main	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		int i;
		double x, y, tmp0,tmp3;
		List<Double> list = new ArrayList<Double>();
		Scanner scanner = new Scanner(System.in);
		//list.add(Integer.parseInt(scanner.next()));
		for(i=0; i<6; i++) {
			list.add(scanner.nextDouble());
		}
		tmp0 = list.get(0);
		tmp3 = list.get(3);
		for(i=0; i<3; i++) {
			list.set(i, list.get(i)*tmp3);
			list.set(i+3, list.get(i+3)*tmp0);
		}
		list.add(list.get(1)-list.get(4));
		list.add(list.get(2)-list.get(5));
		if(list.get(6) == 0){
			x=0;
			y=list.get(2)/list.get(1);
		}else {
			y = list.get(7)/list.get(6);
			x = (list.get(2)-list.get(1)*y)/list.get(0);
		}

		//System.out.println(list);
		//System.out.println(x + " " + y);
		System.out.println(String.format("%.3f", x) + " " + String.format("%.3f", y) );
		scanner.close();
	}
}



Compiler output:
Main.java:6: error: '{' expected
public class Main	public static void main(String[] args) {
                 ^
Main.java:6: error: unnamed classes are a preview feature and are disabled by default.
public class Main	public static void main(String[] args) {
                 	              ^
  (use --enable-preview to enable unnamed classes)
Main.java:37: error: class, interface, enum, or record expected
}
^
3 errors
Language: Java


import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Main public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		int i;
		double x, y, tmp0,tmp3;
		List<Double> list = new ArrayList<Double>();
		Scanner scanner = new Scanner(System.in);
		//list.add(Integer.parseInt(scanner.next()));
		for(i=0; i<6; i++) {
			list.add(scanner.nextDouble());
		}
		tmp0 = list.get(0);
		tmp3 = list.get(3);
		for(i=0; i<3; i++) {
			list.set(i, list.get(i)*tmp3);
			list.set(i+3, list.get(i+3)*tmp0);
		}
		list.add(list.get(1)-list.get(4));
		list.add(list.get(2)-list.get(5));
		if(list.get(6) == 0){
			x=0;
			y=list.get(2)/list.get(1);
		}else {
			y = list.get(7)/list.get(6);
			x = (list.get(2)-list.get(1)*y)/list.get(0);
		}

		//System.out.println(list);
		//System.out.println(x + " " + y);
		System.out.println(String.format("%.3f", x) + " " + String.format("%.3f", y) );
		scanner.close();
	}
}



Compiler output:
Main.java:6: error: '{' expected
public class Main public static void main(String[] args) {
                 ^
Main.java:6: error: unnamed classes are a preview feature and are disabled by default.
public class Main public static void main(String[] args) {
                                ^
  (use --enable-preview to enable unnamed classes)
Main.java:37: error: class, interface, enum, or record expected
}
^
3 errors
Language: Java

import java.io.IOException;
import java.io.InputStream;
import java.util.NoSuchElementException;
 
public class Main {
    private static FastScanner sc = new FastScanner();
 
    public static void main(String[] args) {
         double a = sc.nextDouble();
	double b = sc.nextDouble();
	double c = sc.nextDouble();
	double d = sc.nextDouble();
	double e = sc.nextDouble();
	double f = sc.nextDouble();
	
	if(d != 0) {
		d = d * (a/d);
		e = e * (a/d);
		f = f * (a/d);
		double y = (c-f) / (b-e);
		double x = (e/d) * y - (f/d);
	} else {
		a = a * (d/a);
		b = b * (d/a);
		c = c * (d/a);
		double y = (c-f) / (b-e);
		double x = (b/a) * y - (c/a);	
	}
	
	System.out.println(x + " " + y);

	
	
    }
     
    static class FastScanner {
        private final InputStream in = System.in;
        private final byte[] buffer = new byte[1024];
        private int ptr = 0;
        private int buflen = 0;
        private boolean hasNextByte() {
            if(ptr < buflen) {
                return true;
            } else {
                ptr = 0;
                try {
                    buflen = in.read(buffer);
                } catch(IOException e) {
                    e.printStackTrace();
                }
                if(buflen <= 0) {
                    return false;
                }
            }
            return true;
        }
        private int readByte() { if (hasNextByte()) return buffer[ptr++]; else return -1;}
        private static boolean isPrintableChar(int c) { return 33 <= c && c <= 126;}
        private void skipUnprintable() { while(hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++;}
        public boolean hasNext() { skipUnprintable(); return hasNextByte();}
        public String next() {
            if (!hasNext()) throw new NoSuchElementException();
            StringBuilder sb = new StringBuilder();
            int b = readByte();
            while(isPrintableChar(b)) {
                sb.appendCodePoint(b);
                b = readByte();
            }
            return sb.toString();
        }
        public long nextLong() {
            return Long.parseLong(next());
        }
        public int nextInt(){
            return Integer.parseInt(next());
        }
        public double nextDouble(){
            return Double.parseDouble(next());
        }
    }
}


Compiler output:
Main.java:30: error: cannot find symbol
	System.out.println(x + " " + y);
	                   ^
  symbol:   variable x
  location: class Main
Main.java:30: error: cannot find symbol
	System.out.println(x + " " + y);
	                             ^
  symbol:   variable y
  location: class Main
2 errors
Language: Java

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

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

        while((inputString = br.readLine()) != null) {
            // inputs.length = 6ツづ債陛崢湘伉つウツづェツづつ「ツづゥ
            double[] inputs = stringsToDoubles(inputString.split(" "));
            // ツ係ツ青板行ツ療ア
            double[][] matrix = { {inputs[0], inputs[1]},
                               {inputs[3], inputs[4]} };
            // ツ陛サツ津カツ篠ョツ右ツ陛督づ個ベツクツトツδ仰表ツ記
            double[] vector = {inputs[2], inputs[5]};
            // ツ係ツ青板行ツ療アツづ個行ツ療アツ篠ョ
            double det = matrix[0][0] * matrix[1][1] - matrix[0][1] * matrix[1][0];
            // ツ係ツ青板行ツ療アツづ個逆ツ行ツ療ア
            double[][] inverse = { {matrix[1][1] / det, -1 * matrix[0][1] / det},
                                   {-1 * matrix[1][0] / det, matrix[0][0] / det} };
            // ツ嘉ー
            double[] solution = {inverse[0][0] * vector[0] + inverse[0][1] * vector[1],
                                 inverse[1][0] * vector[0] + inverse[1][1] * vector[1]};

            System.out.printf("%.4g %.4g\n", solution[0], solution[1]);
        }
    }

    private static double[] stringsToDoubles(String[] s) {
        double[] results = new double[s.length];

        for(int i = 0; i < s.length; i++)
            results[i] = Double.parseDouble(s[i]);

        return results;
    }

}

Compiler output:
Main.java:9: error: unreported exception IOException; must be caught or declared to be thrown
        while((inputString = br.readLine()) != null) {
                                        ^
1 error
Language: Java

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

public class Main {
	
void run(){
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String inputString;

        while((inputString = br.readLine()) != null) {
            // inputs.length = 6ツづ債陛崢湘伉つウツづェツづつ「ツづゥ
            double[] inputs = stringsToDoubles(inputString.split(" "));
            // ツ係ツ青板行ツ療ア
            double[][] matrix = { {inputs[0], inputs[1]},
                               {inputs[3], inputs[4]} };
            // ツ陛サツ津カツ篠ョツ右ツ陛督づ個ベツクツトツδ仰表ツ記
            double[] vector = {inputs[2], inputs[5]};
            // ツ係ツ青板行ツ療アツづ個行ツ療アツ篠ョ
            double det = matrix[0][0] * matrix[1][1] - matrix[0][1] * matrix[1][0];
            // ツ係ツ青板行ツ療アツづ個逆ツ行ツ療ア
            double[][] inverse = { {matrix[1][1] / det, -1 * matrix[0][1] / det},
                                   {-1 * matrix[1][0] / det, matrix[0][0] / det} };
            // ツ嘉ー
            double[] solution = {inverse[0][0] * vector[0] + inverse[0][1] * vector[1],
                                 inverse[1][0] * vector[0] + inverse[1][1] * vector[1]};
//            System.out.printf("%.4g %.4g\n", solution[0], solution[1]);
}
	
    public static void main(String args[]) throws Exception {
new Main().run();
        }
    }

    private double[] stringsToDoubles(String[] s) {
        double[] results = new double[6];
//        double[] results = new double[s.length];

        for(int i = 0; i < s.length; i++)
            results[i] = Double.parseDouble(s[i]);

        return results;
    }

}

Compiler output:
Main.java:29: error: illegal start of expression
    public static void main(String args[]) throws Exception {
    ^
Main.java:34: error: unnamed classes are a preview feature and are disabled by default.
    private double[] stringsToDoubles(String[] s) {
            ^
  (use --enable-preview to enable unnamed classes)
Main.java:44: error: class, interface, enum, or record expected
}
^
3 errors
Language: Java

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

public class Main {
	
void run(){
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String inputString;

        while((inputString = br.readLine()) != null) {
            // inputs.length = 6ツづ債陛崢湘伉つウツづェツづつ「ツづゥ
            double[] inputs = stringsToDoubles(inputString.split(" "));
            // ツ係ツ青板行ツ療ア
            double[][] matrix = { {inputs[0], inputs[1]},
                               {inputs[3], inputs[4]} };
            // ツ陛サツ津カツ篠ョツ右ツ陛督づ個ベツクツトツδ仰表ツ記
            double[] vector = {inputs[2], inputs[5]};
            // ツ係ツ青板行ツ療アツづ個行ツ療アツ篠ョ
            double det = matrix[0][0] * matrix[1][1] - matrix[0][1] * matrix[1][0];
            // ツ係ツ青板行ツ療アツづ個逆ツ行ツ療ア
            double[][] inverse = { {matrix[1][1] / det, -1 * matrix[0][1] / det},
                                   {-1 * matrix[1][0] / det, matrix[0][0] / det} };
            // ツ嘉ー
            double[] solution = {inverse[0][0] * vector[0] + inverse[0][1] * vector[1],
                                 inverse[1][0] * vector[0] + inverse[1][1] * vector[1]};
//            System.out.printf("%.4g %.4g\n", solution[0], solution[1]);
}
	
    public static void main(String args[]){
new Main().run();
    }

    private double[] stringsToDoubles(String[] s) {
        double[] results = new double[6];
//        double[] results = new double[s.length];

        for(int i = 0; i < s.length; i++)
            results[i] = Double.parseDouble(s[i]);

        return results;
    }

}

Compiler output:
Main.java:29: error: illegal start of expression
    public static void main(String args[]){
    ^
1 error
Language: Java

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

public class Main {
	
void run() throws Exception{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String inputString;

        while((inputString = br.readLine()) != null) {
            // inputs.length = 6ツづ債陛崢湘伉つウツづェツづつ「ツづゥ
            double[] inputs = stringsToDoubles(inputString.split(" "));
            // ツ係ツ青板行ツ療ア
            double[][] matrix = { {inputs[0], inputs[1]},
                               {inputs[3], inputs[4]} };
            // ツ陛サツ津カツ篠ョツ右ツ陛督づ個ベツクツトツδ仰表ツ記
            double[] vector = {inputs[2], inputs[5]};
            // ツ係ツ青板行ツ療アツづ個行ツ療アツ篠ョ
            double det = matrix[0][0] * matrix[1][1] - matrix[0][1] * matrix[1][0];
            // ツ係ツ青板行ツ療アツづ個逆ツ行ツ療ア
            double[][] inverse = { {matrix[1][1] / det, -1 * matrix[0][1] / det},
                                   {-1 * matrix[1][0] / det, matrix[0][0] / det} };
            // ツ嘉ー
            double[] solution = {inverse[0][0] * vector[0] + inverse[0][1] * vector[1],
                                 inverse[1][0] * vector[0] + inverse[1][1] * vector[1]};
//            System.out.printf("%.4g %.4g\n", solution[0], solution[1]);
}
	
    public static void main(String args[]) throws Exception{
new Main().run();
    }

    private double[] stringsToDoubles(String[] s) {
        double[] results = new double[6];
//        double[] results = new double[s.length];

        for(int i = 0; i < s.length; i++)
            results[i] = Double.parseDouble(s[i]);

        return results;
    }

}

Compiler output:
Main.java:29: error: illegal start of expression
    public static void main(String args[]) throws Exception{
    ^
1 error
Language: Java

import java.io.*;
import java.math.BigDecimal;


public class Main {
	public static void main(String[] args) throws IOException {
		// System.out.println("Hello world");
		InputStreamReader is = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(is);

		while(true){
		double x, y;
		int n = 6;
		String c = br.readLine();
		if(c == 0)
			break;
		int[] arr = new int[n];
		for(int i = 0; i < n; i++){
			if(c.indexOf(" ") !=  -1){
				String str = c.substring(0, c.indexOf(" "));
				arr[i] = Integer.parseInt(str);
				c = c.substring(c.indexOf(" ") + 1);
			}
			else{
				arr[i] = Integer.parseInt(c);
			}
		}
		
		int[] arr2 = arr.clone();
		int k1=1, k2=1;
		if(!(arr2[0] == 0 || arr2[3] == 0)){
			while(arr2[0]%arr2[3] != 0){
				arr2[0] += arr[0]; 
				k1++;
			}
			k2 = arr2[0]/arr2[3];
			for(int i = 1; i < n; i++){
				if(i < 3)
					arr2[i] = arr2[i] * k1;
				else
					arr2[i] = arr2[i] * k2;
			}
		}
		else if(!(arr2[1] == 0 || arr2[4] == 0)){
			while(arr2[1]%arr2[4] != 0){
				arr2[1] += arr[1]; 
				k1++;
			}
			k2 = arr2[1]/arr2[4];
			for(int i = 1; i < n; i++){
				if(i < 3)
					arr2[i] = arr2[i] * k1;
				else
					arr2[i] = arr2[i] * k2;
			}
		}
		else{
			if(arr[0] == 0){
				y = (double)arr[2] / (double)arr[1];
				x = (double)arr[5] / (double)arr[3];
			}
			else{ 
				x = (double)arr[2] / (double)arr[0];
				y = (double)arr[5] / (double)arr[4];
			}
		}

		arr2[1] = arr2[1] - arr2[4];
		arr2[2] = arr2[2] - arr2[5];
		
		y = (double)arr2[2] / (double)arr2[1];
		
		x = (double)arr[2]-(double)arr[1]*y;

		//System.out.println(round(x) +" "+ round(y));
		
		//System.out.println(String.format("%1$.4g", x) + " " + String.format("%1$.4g", y));
		keta(x);
		System.out.print(" ");
		keta(y);
		System.out.println();
	}}

	  private static double round(double d){
		    int newScale = 3; // ツ渉ャツ青板点ツ暗按可コ6ツ個づ慊づ仰づ淞づゥ
		    BigDecimal bd = new BigDecimal(d);
		    BigDecimal bd2 = bd.setScale(newScale, BigDecimal.ROUND_HALF_UP);
		    double d2 = bd2.doubleValue();
		    return d2;
		  }
	  private static void keta(double d){
		  int k = (int)d;
		  System.out.print(k + ".");
		  d = d-k;
		  if(d < 0)
			  d *= -1;
		  d = round(d);
		  d *= 1000;
		  k = (int)d;
		  if(k == 0)
			  System.out.print("000");
		  else
			  System.out.print(String.format("%03", k));
	  }
}

Compiler output:
Main.java:15: error: bad operand types for binary operator '=='
		if(c == 0)
		     ^
  first type:  String
  second type: int
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 Problem0004_SimultaneousEquation {
public class Main {
	public static void main(String[] args) {
		try {
			Problem0004_SimultaneousEquation test = new Problem0004_SimultaneousEquation();
		//	Main test = new Main();
			BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
			
			String line;
			while((line = reader.readLine()) != null) {
				try {
					String[] textArray = line.split(" ");
					double[] numbers = new double[6];
					for(int i = 0; i < textArray.length; i++) {
						numbers[i] = Double.parseDouble(textArray[i]);
					}
					test.showAnswer(numbers);
				} catch(NumberFormatException e) {
					break;
				}
			}
		} catch(Exception e) {
			e.printStackTrace();
		}
	}
	void showAnswer(double[] array) {
		checkLength(array);
		
		double x = getX(array);
		double y = getY(array);
		
		
		System.out.printf("%.3f %.3f%n", x, y);
	}
	double getX(double[] array) {
		checkLength(array);
		
		double x = (array[2]*array[4] - array[1]*array[5]) / (array[0]*array[4] - array[3]*array[1]);
		x = round(x);
		
		return x;
	}
	double getY(double[] array) {
		checkLength(array);
		
		double y = (array[2]*array[3] - array[0]*array[5]) / (array[1]*array[3] - array[0]*array[4]);
		y = round(y);
		
		return y;
	}
	private double round(double number) {
		int large = (int)(number * 10000);
		int small = (int)(number * 1000) * 10;
		double result;
		
		if(large - small < 5) {	//ツ静伉づィツ可コツつー
			result = small;
		} else {	//ツ静伉づィツ湘」ツつー
			result = small + 10;
		}
		result = result/10000;
		return result;
	}
	private void checkLength(double[] array) {
		if(array.length != 6) {
			throw new IllegalArgumentException();
		}
	}
}

Compiler output:
Main.java:8: error: cannot find symbol
			Problem0004_SimultaneousEquation test = new Problem0004_SimultaneousEquation();
			^
  symbol:   class Problem0004_SimultaneousEquation
  location: class Main
Main.java:8: error: cannot find symbol
			Problem0004_SimultaneousEquation test = new Problem0004_SimultaneousEquation();
			                                            ^
  symbol:   class Problem0004_SimultaneousEquation
  location: class Main
2 errors
Language: Java

import java.util.Scanner;

public class M0004 {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		while(true) {
			if(!sc.hasNextInt()) break;
			double a = sc.nextInt();
			double b = sc.nextInt();
			double c = sc.nextInt();
			double d = sc.nextInt();
			double e = sc.nextInt();
			double f = sc.nextInt();
			
			double x = (c*e - b*f) / (a*e - b*d);
			double y = (a*f - c*d) / (a*e - b*d);

			if(Math.abs(x)<0.001) x = 0;
			if(Math.abs(y)<0.001) y = 0;
			System.out.printf("%.3f %.3f\n",x,y);
		}
	}
}

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

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

	public static void main(String[] args) {
		double a, b, c, d, e, f;
		double x, y;

		Scanner scan = new Scanner(System.in);


		while ((scan.hasNext())) {

			a = Double.parseDouble(scan.next());
			b = Double.parseDouble(scan.next());
			c = Double.parseDouble(scan.next());
			d = Double.parseDouble(scan.next());
			e = Double.parseDouble(scan.next());
			f = Double.parseDouble(scan.next());

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

			BigDecimal xb = new BigDecimal(String.valueOf(x));
			BigDecimal yb = new BigDecimal(String.valueOf(y));


			System.out.println(xb.setScale(3,BigDecimal.ROUND_HALF_UP).doubleValue()
					+ " " + yb.setScale(3,BigDecimal.ROUND_HALF_UP).doubleValue());
		}
	}

}

Compiler output:
Main.java:4: 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:32: error: class, interface, enum, or record expected
}
^
2 errors
Language: Java

public class Main {

	public static void main(String[] args) throws IOException {
		// Formatter fm = new Formatter(System.out);
		List<String> ans = new ArrayList<String>();
		for (int[] in = readInts(); in != null; in = readInts()) {
			int a11 = in[0], a12 = in[1], b1 = in[2];
			int a21 = in[3], a22 = in[4], b2 = in[5];
			double D = a11 * a22 - a12 * a21;
			int xx = +a22 * b1 - a12 * b2;
			int yy = +a11 * b2 - a21 * b1;
			double ansX = (xx / D);
			double ansY = (yy / D);
			// fm.format("%1$.3f", ansX);
			// fm.format(" %1$.3f\n", ansY);
			// fm.flush();
			String s = String.format("%.3f", ansX) + " "
					+ String.format("%.3f", ansY);
			ans.add(s);
		}
		for (Iterator<String> iterator = ans.iterator(); iterator.hasNext();) {
			String string = (String) iterator.next();
			System.out.println(string);
		}
		// fm.close();

	}

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

	private static int[] readInts() throws IOException {
		String readLine = br.readLine();
		if (readLine == null || readLine.equals("")) {
			return null;
		}
		String[] s = readLine.split(" ");
		int[] result = new int[s.length];
		for (int i = 0; i < result.length; i++)
			result[i] = Integer.parseInt(s[i], 10);

		return result;
	}
}

Compiler output:
Main.java:3: error: cannot find symbol
	public static void main(String[] args) throws IOException {
	                                              ^
  symbol:   class IOException
  location: class Main
Main.java:29: error: cannot find symbol
	static BufferedReader br = new BufferedReader(new InputStreamReader(
	       ^
  symbol:   class BufferedReader
  location: class Main
Main.java:32: error: cannot find symbol
	private static int[] readInts() throws IOException {
	                                       ^
  symbol:   class IOException
  location: class Main
Main.java:5: error: cannot find symbol
		List<String> ans = new ArrayList<String>();
		^
  symbol:   class List
  location: class Main
Main.java:5: error: cannot find symbol
		List<String> ans = new ArrayList<String>();
		                       ^
  symbol:   class ArrayList
  location: class Main
Main.java:21: error: cannot find symbol
		for (Iterator<String> iterator = ans.iterator(); iterator.hasNext();) {
		     ^
  symbol:   class Iterator
  location: class Main
Main.java:29: error: cannot find symbol
	static BufferedReader br = new BufferedReader(new InputStreamReader(
	                               ^
  symbol:   class BufferedReader
  location: class Main
Main.java:29: error: cannot find symbol
	static BufferedReader br = new BufferedReader(new InputStreamReader(
	                                                  ^
  symbol:   class InputStreamReader
  location: class Main
8 errors
Language: Java

import java.io.IOException;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) throws IOException {
        double[] d = new double[6];
        Scanner sc = new Scanner(System.in);
        while(sc.hasNext()) {
            for(int i=0; i<d.length; i++) {<br />                d[i] = sc.nextDouble();
            }
            double adbc = d[0]*d[4] - d[1]*d[3];
            if(Double.compare(adbc, 0.0f) == 0) {
                continue;
            }
            double[][] m1 = {{ d[4]/adbc, -d[1]/adbc},
                             {-d[3]/adbc,  d[0]/adbc}};
            double[][] m2 = {{d[2]}, {d[5]}};
            double x = m1[0][0] * m2[0][0] + m1[0][1] * m2[1][0];
            double y = m1[1][0] * m2[0][0] + m1[1][1] * m2[1][0];
            System.out.println(String.format("%.3f %.3f", x, y));
        }
    }
}

Compiler output:
Main.java:9: error: > or ',' expected
            for(int i=0; i<d.length; i++) {<br />                d[i] = sc.nextDouble();
                                               ^
Main.java:9: error: illegal start of expression
            for(int i=0; i<d.length; i++) {<br />                d[i] = sc.nextDouble();
                                                ^
2 errors
Language: Java

public class Main {
	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		NumberFormat format = NumberFormat.getInstance();
		format.setMaximumFractionDigits(3);
		format.setMinimumFractionDigits(3);
		while (s.hasNextInt()) {
			int a = s.nextInt();
			int b = s.nextInt();
			int c = s.nextInt();
			int d = s.nextInt();
			int e = s.nextInt();
			int f = s.nextInt();
			int nx = b * f - e * c;
			int dx = b * d - e * a;
			int ny = a * f - d * c;
			int dy = a * e - d * b;
			double x = nx == 0 ? nx : (double) nx / dx;
			double y = ny == 0 ? ny : (double) ny / dy;
			System.out.println(format.format(x) + " " + format.format(y));
		}
	}
}

Compiler output:
Main.java:3: error: cannot find symbol
		Scanner s = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:3: error: cannot find symbol
		Scanner s = new Scanner(System.in);
		                ^
  symbol:   class Scanner
  location: class Main
Main.java:4: error: cannot find symbol
		NumberFormat format = NumberFormat.getInstance();
		^
  symbol:   class NumberFormat
  location: class Main
Main.java:4: error: cannot find symbol
		NumberFormat format = NumberFormat.getInstance();
		                      ^
  symbol:   variable NumberFormat
  location: class Main
4 errors
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 n = 2, m = 3;
    double a[][] = new double[n][m];
    while(sc.hasNext()) {
      for (int i = 0; i < n; i++) {
        for (int j = 0; j < m; j++) {
          a[i][j] = sc.nextDouble();
        }
      }
      for (int ipv = 0; ipv < n; ipv++) {
        double max = 0.0;
        int row;
        for(i = ipv; i < n; i++) {
          if(Math.abs(a[i][ipv] > max) {
            max = a[i][ipv];
            row = i;
          }
        }
        if(ipv != row) {
          for(i = 0; i < n; i++) {
            double temp = a[ipv][i];
            a[ipv][i] = a[row][i];
            a[row][i] = temp;
          }
        }
        
        double inv_pv = 1.0/a[ipv][ipv];
        for (int i = 0; i < n; i++) {
          a[ipv][i] *= inv_pv;
        }
        
        for (int i = 0; i < n; i++) {
          if (i != ipv) {
            temp = a[i][ipv];
            for (int j = 0; j < m; j++) {
              a[i][j] -= temp*a[ipv][j];
            }
          }
        }
      }
      BigDecimal x[] = new BigDecimal[n];
      for (int i = 0; i < n; i++) {
        x[i] = BigDecimal(a[i][m]).setscale(3, BigDecimal.ROUND_HALF_UP);
      }
      System.out.println(x[0]+" "+x[1]);
    }
  }
}

Compiler output:
Main.java:18: error: ')' expected
          if(Math.abs(a[i][ipv] > max) {
                                      ^
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 n = 2, m = 3;
    double a[][] = new double[n][m];
    while(sc.hasNext()) {
      for (int i = 0; i < n; i++) {
        for (int j = 0; j < m; j++) {
          a[i][j] = sc.nextDouble();
        }
      }
      for (int ipv = 0; ipv < n; ipv++) {
        double max = 0.0;
        int row;
        for(int i = ipv; i < n; i++) {
          if(Math.abs(a[i][ipv]) > max) {
            max = a[i][ipv];
            row = i;
          }
        }
        if(ipv != row) {
          for(i = 0; i < n; i++) {
            double temp = a[ipv][i];
            a[ipv][i] = a[row][i];
            a[row][i] = temp;
          }
        }
        
        double inv_pv = 1.0/a[ipv][ipv];
        for (int i = 0; i < n; i++) {
          a[ipv][i] *= inv_pv;
        }
        
        for (int i = 0; i < n; i++) {
          if (i != ipv) {
            double temp = a[i][ipv];
            for (int j = 0; j < m; j++) {
              a[i][j] -= temp*a[ipv][j];
            }
          }
        }
      }
      BigDecimal x[] = new BigDecimal[n];
      for (int i = 0; i < n; i++) {
        x[i] = BigDecimal(a[i][m]).setscale(3, BigDecimal.ROUND_HALF_UP);
      }
      System.out.println(x[0]+" "+x[1]);
    }
  }
}

Compiler output:
Main.java:24: error: cannot find symbol
          for(i = 0; i < n; i++) {
              ^
  symbol:   variable i
  location: class Main
Main.java:24: error: cannot find symbol
          for(i = 0; i < n; i++) {
                     ^
  symbol:   variable i
  location: class Main
Main.java:24: error: cannot find symbol
          for(i = 0; i < n; i++) {
                            ^
  symbol:   variable i
  location: class Main
Main.java:25: error: cannot find symbol
            double temp = a[ipv][i];
                                 ^
  symbol:   variable i
  location: class Main
Main.java:26: error: cannot find symbol
            a[ipv][i] = a[row][i];
                   ^
  symbol:   variable i
  location: class Main
Main.java:26: error: cannot find symbol
            a[ipv][i] = a[row][i];
                               ^
  symbol:   variable i
  location: class Main
Main.java:27: error: cannot find symbol
            a[row][i] = temp;
                   ^
  symbol:   variable i
  location: class Main
Main.java:47: error: cannot find symbol
        x[i] = BigDecimal(a[i][m]).setscale(3, BigDecimal.ROUND_HALF_UP);
               ^
  symbol:   method BigDecimal(double)
  location: class Main
Note: Main.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
8 errors
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 n = 2, m = 3;
    double a[][] = new double[n][m];
    while(sc.hasNext()) {
      for (int i = 0; i < n; i++) {
        for (int j = 0; j < m; j++) {
          a[i][j] = sc.nextDouble();
        }
      }
      for (int ipv = 0; ipv < n; ipv++) {
        double max = 0.0;
        int row;
        for(int i = ipv; i < n; i++) {
          if(Math.abs(a[i][ipv]) > max) {
            max = a[i][ipv];
            row = i;
          }
        }
        if(ipv != row) {
          for(int i = 0; i < n; i++) {
            double temp = a[ipv][i];
            a[ipv][i] = a[row][i];
            a[row][i] = temp;
          }
        }
        
        double inv_pv = 1.0/a[ipv][ipv];
        for (int i = 0; i < n; i++) {
          a[ipv][i] *= inv_pv;
        }
        
        for (int i = 0; i < n; i++) {
          if (i != ipv) {
            double temp = a[i][ipv];
            for (int j = 0; j < m; j++) {
              a[i][j] -= temp*a[ipv][j];
            }
          }
        }
      }
      BigDecimal x[] = new BigDecimal[n];
      for (int i = 0; i < n; i++) {
        x[i] = BigDecimal(a[i][m]).setscale(3, BigDecimal.ROUND_HALF_UP);
      }
      System.out.println(x[0]+" "+x[1]);
    }
  }
}

Compiler output:
Main.java:47: error: cannot find symbol
        x[i] = BigDecimal(a[i][m]).setscale(3, BigDecimal.ROUND_HALF_UP);
               ^
  symbol:   method BigDecimal(double)
  location: class Main
Note: Main.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
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 n = 2, m = 3;
    double a[][] = new double[n][m];
    while(sc.hasNext()) {
      for (int i = 0; i < n; i++) {
        for (int j = 0; j < m; j++) {
          a[i][j] = sc.nextDouble();
        }
      }
      for (int ipv = 0; ipv < n; ipv++) {
        double max = 0.0;
        int row;
        for(int i = ipv; i < n; i++) {
          if(Math.abs(a[i][ipv]) > max) {
            max = a[i][ipv];
            row = i;
          }
        }
        if(ipv != row) {
          for(int i = 0; i < n; i++) {
            double temp = a[ipv][i];
            a[ipv][i] = a[row][i];
            a[row][i] = temp;
          }
        }
        
        double inv_pv = 1.0/a[ipv][ipv];
        for (int i = 0; i < n; i++) {
          a[ipv][i] *= inv_pv;
        }
        
        for (int i = 0; i < n; i++) {
          if (i != ipv) {
            double temp = a[i][ipv];
            for (int j = 0; j < m; j++) {
              a[i][j] -= temp*a[ipv][j];
            }
          }
        }
      }
      BigDecimal x[] = new BigDecimal[n];
      for (int i = 0; i < n; i++) {
        BigDecimal bda = new BigDecimal(a[i][m]);
        x[i] = bda.setscale(3, BigDecimal.ROUND_HALF_UP);
      }
      System.out.println(x[0]+" "+x[1]);
    }
  }
}

Compiler output:
Main.java:48: error: cannot find symbol
        x[i] = bda.setscale(3, BigDecimal.ROUND_HALF_UP);
                  ^
  symbol:   method setscale(int,int)
  location: variable bda of type BigDecimal
Note: Main.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
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 n = 2, m = 3;
    double a[][] = new double[n][m];
    while(sc.hasNext()) {
      for (int i = 0; i < n; i++) {
        for (int j = 0; j < m; j++) {
          a[i][j] = sc.nextDouble();
        }
      }
      for (int ipv = 0; ipv < n; ipv++) {
        double max = 0.0;
        int row;
        for(int i = ipv; i < n; i++) {
          if(Math.abs(a[i][ipv]) > max) {
            max = a[i][ipv];
            row = i;
          }
        }
        if(ipv != row) {
          for(int i = 0; i < n; i++) {
            double temp = a[ipv][i];
            a[ipv][i] = a[row][i];
            a[row][i] = temp;
          }
        }
        
        double inv_pv = 1.0/a[ipv][ipv];
        for (int i = 0; i < n; i++) {
          a[ipv][i] *= inv_pv;
        }
        
        for (int i = 0; i < n; i++) {
          if (i != ipv) {
            double temp = a[i][ipv];
            for (int j = 0; j < m; j++) {
              a[i][j] -= temp*a[ipv][j];
            }
          }
        }
      }
      BigDecimal x[] = new BigDecimal[n];
      for (int i = 0; i < n; i++) {
        BigDecimal bda = new BigDecimal(a[i][m]);
        x[i] = bda.setScale(3, BigDecimal.ROUND_HALF_UP);
      }
      System.out.println(x[0]+" "+x[1]);
    }
  }
}

Compiler output:
Main.java:23: error: variable row might not have been initialized
        if(ipv != row) {
                  ^
Note: Main.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
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 n = 2, m = 3;
    double a[][] = new double[n][m];
    while(sc.hasNext()) {
      for (int i = 0; i < n; i++) {
        for (int j = 0; j < m; j++) {
          a[i][j] = sc.nextDouble();
        }
      }
      for (int ipv = 0; ipv < n; ipv++) {
        double max = 0.0;
        int row;
        for(int i = ipv; i < n; i++) {
          if(Math.abs(a[i][ipv]) > max) {
            max = a[i][ipv];
            row = i;
          }
        }
        if(max == 0.0) {
          break;
        }
        if(ipv != row) {
          for(int i = 0; i < n; i++) {
            double temp = a[ipv][i];
            a[ipv][i] = a[row][i];
            a[row][i] = temp;
          }
        }
        
        double inv_pv = 1.0/a[ipv][ipv];
        for (int i = 0; i < n; i++) {
          a[ipv][i] *= inv_pv;
        }
        
        for (int i = 0; i < n; i++) {
          if (i != ipv) {
            double temp = a[i][ipv];
            for (int j = 0; j < m; j++) {
              a[i][j] -= temp*a[ipv][j];
            }
          }
        }
      }
      BigDecimal x[] = new BigDecimal[n];
      for (int i = 0; i < n; i++) {
        BigDecimal bda = new BigDecimal(a[i][m]);
        x[i] = bda.setScale(3, BigDecimal.ROUND_HALF_UP);
      }
      System.out.println(x[0]+" "+x[1]);
    }
  }
}

Compiler output:
Main.java:26: error: variable row might not have been initialized
        if(ipv != row) {
                  ^
Note: Main.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
1 error
Language: Java

import java.util.Scanner;

public class main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		doIt();
	}
	public static void doIt(){
		Scanner sc = new Scanner(System.in);
		//a0 1b 2c 3d 4e 5f
		double[] v = new double[6];
		double x = 0;
		double y = 0;
		while(sc.hasNext()){
			//System.out.println("ts");
			//Math.round
			for(int i = 0; i < 6; i++){
				v[i] = sc.nextDouble();
				//System.out.println(i + " " + v[i]);
			}
			//sc.nextInt();
//			if(v[0] == 0){
//				y = v[2] / v[1];
//				x = 
//			}
			double tmp1 = v[1] * v[3] - v[0] * v[4];
			double tmp2 = v[3] * v[2] - v[0] * v[5];
			y = tmp2 / tmp1;
			//小数点代4位を四捨五入
			y *= 1000;
			y = Math.round(y) / 1000;
			x = v[2] - v[1]*y;
			x /= v[0];
			x *= 1000;
			x = Math.round(x) / 1000;
			x += 0.000;
			//System.out.println(x + " " + y);
			System.out.printf("%.3f %.3f\n", x,y);
		}
	}

}

Compiler output:
Main.java:3: 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;
import java.math.BigDecimal;

public class Main
{
    public static void main(String[] args)
    {
	Scanner cin = new Scanner(System.in);
	while(cin.hasNext())
	{
		double a = cin.nextInt();
		double b = cin.nextInt();
		double c = cin.nextInt();
		double d = cin.nextInt();
		double e = cin.nextInt();
		double f = cin.nextInt();
		BigDecimal x =  ((double)(c*e-b*f)/(a*e-b*d)).BigDecimal(3, BigDecimal.ROUND_HALF_UP);
		BigDecimal y =  ((double)(a*f-c*d)/(a*e-b*d)).BigDecimal(3, BigDecimal.ROUND_HALF_UP);
		System.out.println(x.doublevalue()+" "+y.doublevalue());
	}
    }
}

Compiler output:
Main.java:17: error: double cannot be dereferenced
		BigDecimal x =  ((double)(c*e-b*f)/(a*e-b*d)).BigDecimal(3, BigDecimal.ROUND_HALF_UP);
		                                             ^
Main.java:18: error: double cannot be dereferenced
		BigDecimal y =  ((double)(a*f-c*d)/(a*e-b*d)).BigDecimal(3, BigDecimal.ROUND_HALF_UP);
		                                             ^
Main.java:19: error: cannot find symbol
		System.out.println(x.doublevalue()+" "+y.doublevalue());
		                    ^
  symbol:   method doublevalue()
  location: variable x of type BigDecimal
Main.java:19: error: cannot find symbol
		System.out.println(x.doublevalue()+" "+y.doublevalue());
		                                        ^
  symbol:   method doublevalue()
  location: variable y of type BigDecimal
Note: Main.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
4 errors
Language: Java

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

public class Main
{
    public static void main(String[] args)
    {
	Scanner cin = new Scanner(System.in);
	while(cin.hasNext())
	{
		double a = cin.nextInt();
		double b = cin.nextInt();
		double c = cin.nextInt();
		double d = cin.nextInt();
		double e = cin.nextInt();
		double f = cin.nextInt();
		BigDecimal x =  ((c*e-b*f)/(a*e-b*d)).BigDecimal(3, BigDecimal.ROUND_HALF_UP);
		BigDecimal y =  ((a*f-c*d)/(a*e-b*d)).BigDecimal(3, BigDecimal.ROUND_HALF_UP);
		System.out.println(x.doublevalue()+" "+y.doublevalue());
	}
    }
}

Compiler output:
Main.java:17: error: double cannot be dereferenced
		BigDecimal x =  ((c*e-b*f)/(a*e-b*d)).BigDecimal(3, BigDecimal.ROUND_HALF_UP);
		                                     ^
Main.java:18: error: double cannot be dereferenced
		BigDecimal y =  ((a*f-c*d)/(a*e-b*d)).BigDecimal(3, BigDecimal.ROUND_HALF_UP);
		                                     ^
Main.java:19: error: cannot find symbol
		System.out.println(x.doublevalue()+" "+y.doublevalue());
		                    ^
  symbol:   method doublevalue()
  location: variable x of type BigDecimal
Main.java:19: error: cannot find symbol
		System.out.println(x.doublevalue()+" "+y.doublevalue());
		                                        ^
  symbol:   method doublevalue()
  location: variable y of type BigDecimal
Note: Main.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
4 errors