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:2: error: package java.Math does not exist
import java.Math.BigDecimal;
                ^
Main.java:17: error: cannot find symbol
        for(i = ipv; i < n; i++) {
            ^
  symbol:   variable i
  location: class Main
Main.java:17: error: cannot find symbol
        for(i = ipv; i < n; i++) {
                     ^
  symbol:   variable i
  location: class Main
Main.java:17: error: cannot find symbol
        for(i = ipv; i < n; i++) {
                            ^
  symbol:   variable i
  location: class Main
Main.java:18: error: cannot find symbol
          if(Math.abs(a[i][ipv] > max)) {
                        ^
  symbol:   variable i
  location: class Main
Main.java:18: error: no suitable method found for abs(boolean)
          if(Math.abs(a[i][ipv] > max)) {
                 ^
    method Math.abs(int) is not applicable
      (argument mismatch; boolean cannot be converted to int)
    method Math.abs(long) is not applicable
      (argument mismatch; boolean cannot be converted to long)
    method Math.abs(float) is not applicable
      (argument mismatch; boolean cannot be converted to float)
    method Math.abs(double) is not applicable
      (argument mismatch; boolean cannot be converted to double)
Main.java:19: error: cannot find symbol
            max = a[i][ipv];
                    ^
  symbol:   variable i
  location: class Main
Main.java:20: error: cannot find symbol
            row = 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: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:38: error: cannot find symbol
            temp = a[i][ipv];
            ^
  symbol:   variable temp
  location: class Main
Main.java:40: error: cannot find symbol
              a[i][j] -= temp*a[ipv][j];
                         ^
  symbol:   variable temp
  location: class Main
Main.java:45: error: cannot find symbol
      BigDecimal x[] = new BigDecimal[n];
      ^
  symbol:   class BigDecimal
  location: class Main
Main.java:45: error: cannot find symbol
      BigDecimal x[] = new BigDecimal[n];
                           ^
  symbol:   class BigDecimal
  location: class Main
Main.java:47: error: cannot find symbol
        x[i] = BigDecimal(a[i][m]).setscale(3, BigDecimal.ROUND_HALF_UP);
                                               ^
  symbol:   variable BigDecimal
  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
21 errors