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

public class Main {

	public static void main(String[] args) {
		Scanner input = new Scanner(System.in);
		int length = input.nextInt();
		input.nextLine();
		String list = input.nextLine();
		int[] intList = new int[length];
		int k = 0;
		for(int i = 0; i < list.length(); i++) {
			if(!list.substring(i, i+1).equals(" ")){
				intList[k] = Integer.parseInt(list.substring(i, i + 1));
				k++;
			}
		}
		for(int i = 1; i < intList.length; i++) {
			for(int m = 0; m < intList.length; m++) {
				System.out.print(intList[m] + " ");
			}
			System.out.println("");
			int key = intList[i];
			int j = i - 1;
			while(j >= 0 && intList[j] > key) {
				intList[j+1] = intList[j];
				j--;
			}
			intList[j+1] = key;
		}
	}
}


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

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.StringJoiner;

public class Main {
	private static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	
	public static void main(String[] args) throws Exception {
		int n = Integer.parseInt(br.readLine());
		int[] array = Arrays.stream(br.readLine().split(" ")).mapToInt(Integer::parseInt).toArray();
		
		trace(array);
		
		for(int i = 1; i < n; i++){
			int v = array[i];
			int j = i - 1;
			
			while(j >= 0 && array[j] > v){
				array[j+1] = array[j];
				j--;
			}
			array[j+1] = v;javascript:void(0)
			
			trace(array);
		}
		
		System.out.println();
	}
	
	public static void trace(int[] array){
		StringJoiner sj = new StringJoiner(" ");
		Arrays.stream(array).forEach(iv -> sj.add(String.valueOf(iv)));
		System.out.println(sj.toString());
	}
}



Compiler output:
Main.java:23: error: illegal start of expression
			array[j+1] = v;javascript:void(0)
			                          ^
Main.java:23: error: ';' expected
			array[j+1] = v;javascript:void(0)
			                              ^
2 errors
Language: Java

package alds1.alds1_1_a;

import java.util.Scanner;

public class InsertionSort {

	//--- 単価挿入ソートsort
	static void insertionSort(int[]a, int n){
		for (int i = 1; i < n; i++) {
			int j;
			int tmp = a[i];
			for(j = i;j > 0 && a[j - 1] > tmp; j--)
				a[j] = a[j-1];
			a[j] = tmp;
		}
	}

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

		System.out.println("単純挿入ソート");
		System.out.print("要素数:");
		int nx = stdIn.nextInt();
        int [] x = new int[nx];

        for(int i = 0; i < nx; i++){
        	System.out.print("x[" + i + "]:");
        	x[i] = stdIn.nextInt();
        }

        insertionSort(x, nx);
    	System.out.println("昇順にソートしました。");

    	for(int i = 0; i < nx; i++){
        	System.out.println("x[" + i + "]=" + x[i]);
    	}

	}
}



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

import java.util.Scanner;

public class InsertionSort {

	//--- 単価挿入ソートsort
	static void insertionSort(int[]a, int n){
		for (int i = 1; i < n; i++) {
			int j;
			int tmp = a[i];
			for(j = i;j > 0 && a[j - 1] > tmp; j--)
				a[j] = a[j-1];
			a[j] = tmp;
		}
	}

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

		System.out.println("単純挿入ソート");
		System.out.print("要素数:");
		int nx = stdIn.nextInt();
        int [] x = new int[nx];

        for(int i = 0; i < nx; i++){
        	System.out.print("x[" + i + "]:");
        	x[i] = stdIn.nextInt();
        }

        insertionSort(x, nx);
    	System.out.println("昇順にソートしました。");

    	for(int i = 0; i < nx; i++){
        	System.out.println("x[" + i + "]=" + x[i]);
    	}

	}
}




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

import java.util.Scanner;

public class InsertionSort {
	public static void Main(String[] args) {
		Scanner scanner = new Scanner(System.in);
	    int length = scanner.nextInt();
		int A[] = new int[length];
        for(int i = 0; i < length; i++)
        	A[i] = scanner.nextInt();
   
        out_put(A);
		int key=1000;
		for (int j = 1; j < length; j++) {
			key = A[j];
			int l = j - 1;
			while (l >= 0 && A[l] > key) {
				A[l + 1] = A[l];
				l--;
			}
			A[l + 1] = key;
			out_put(A);
		}
		
	}
	private static void out_put(int A[]){
		 
        System.out.printf("%d", A[0]);
 
        for(int i = 1; i < A.length; i++){
            System.out.printf(" %d", A[i]);
        }
        System.out.printf("\n");
    }

}



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

import java.util.*;

public class A{
    final static public int N = 1000;
    static void trace(int []A, int n){
	    for (int i = 1; i <= n; i++ ){
		if ( i > 1 ) System.out.print(" ");
		System.out.print(A[i]);
	    }
	    System.out.println();
	}
    public static void main(String[] args){
	int j,key;
	int []A = new int[N+1];
	Scanner s = new Scanner(System.in);

	int n = s.nextInt();
	for (int i = 1; i <= n; i++ ) A[i] = s.nextInt();
	for(int i=1 ; i < n+1 ; i++)
	    {
		key = A[i];
		j = i - 1;
		while( j >= 0 && A[j] > key )
		    {
			A[j+1] = A[j];
			j--;
			A[j+1] = key;
		    }
		trace(A,n);
	    }
    }
}

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

import java.util.*;

public class A{
    final static public int N = 1000;
    static void trace(int []A, int n){
	    for (int i = 1; i <= n; i++ ){
		if ( i > 1 ) System.out.print(" ");
		System.out.print(A[i]);
	    }
	    System.out.println();
	}
    public static void main(String[] args){
	int i, j, key;
	int []A = new int[N+1];
	Scanner s = new Scanner(System.in);

	int n = s.nextInt();
	for (i = 1; i <= n; i++ ) A[i] = s.nextInt();
	for(i=1 ; i < n+1 ; i++)
	    {
		key = A[i];
		j = i - 1;
		while( j >= 0 && A[j] > key )
		    {
			A[j+1] = A[j];
			j--;
			A[j+1] = key;
		    }
		trace(A,n);
	    }
    }
}

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

import java.util.*;

public class A{
    final static public int N = 1000;

    public static void trace(int []A, int n){
	for (int i = 1; i <= n; i++ ){
	    if ( i > 1 ) System.out.print(" ");
	    System.out.print(A[i]);
	}
	System.out.println();
    }
    public static void main(String[] args) throws IOException{
	int i, j, key;
	int []A = new int[N+1];
	Scanner s = new Scanner(System.in);
	
	int n = s.nextInt();
	for (i = 1; i <= n; i++ ) A[i] = s.nextInt();
	for(i=1 ; i < n+1 ; i++){
	    key = A[i];
	    j = i - 1;
	    while( j >= 0 && A[j] > key){
		A[j+1] = A[j];
		j--;
		A[j+1] = key;
	    }
	    trace(A,n);
	}
    }
}

Compiler output:
Main.java:3: error: class A is public, should be declared in a file named A.java
public class A{
       ^
Main.java:13: error: cannot find symbol
    public static void main(String[] args) throws IOException{
                                                  ^
  symbol:   class IOException
  location: class A
2 errors
Language: Java

import java.util.*;

class A{
    final static public int N = 1000;

    public static void trace(int []A, int n){
	for (int i = 1; i <= n; i++ ){
	    if ( i > 1 ) System.out.print(" ");
	    System.out.print(A[i]);
	}
	System.out.println();
    }
    public static void main(String[] args) throws IOException{
	int i, j, key;
	int []A = new int[N+1];
	Scanner s = new Scanner(System.in);
	
	int n = s.nextInt();
	for (i = 1; i <= n; i++ ) A[i] = s.nextInt();
	for(i=1 ; i < n+1 ; i++){
	    key = A[i];
	    j = i - 1;
	    while( j >= 0 && A[j] > key){
		A[j+1] = A[j];
		j--;
		A[j+1] = key;
	    }
	    trace(A,n);
	}
    }
}

Compiler output:
Main.java:13: error: cannot find symbol
    public static void main(String[] args) throws IOException{
                                                  ^
  symbol:   class IOException
  location: class A
1 error
Language: Java

import java.util.*;

class A{
    final static public int N = 1000;

    public static void trace(int []A, int n){
	for (int i = 1; i <= n; i++ ){
	    if ( i > 1 ) System.out.print(" ");
	    System.out.print(A[i]);
	}
	System.out.println();
    }
    static void main(String[] args) throws IOException{
	int i, j, key;
	int []A = new int[N+1];
	Scanner s = new Scanner(System.in);
	
	int n = s.nextInt();
	for (i = 1; i <= n; i++ ) A[i] = s.nextInt();
	for(i=1 ; i < n+1 ; i++){
	    key = A[i];
	    j = i - 1;
	    while( j >= 0 && A[j] > key){
		A[j+1] = A[j];
		j--;
		A[j+1] = key;
	    }
	    trace(A,n);
	}
    }
}

Compiler output:
Main.java:13: error: cannot find symbol
    static void main(String[] args) throws IOException{
                                           ^
  symbol:   class IOException
  location: class A
1 error
Language: Java

import java.util.*;

class A{
    final static public int N = 1000;

    public static void trace(int []A, int n){
	for (int i = 1; i <= n; i++ ){
	    if ( i > 1 ) System.out.print(" ");
	    System.out.print(A[i]);
	}
	System.out.println();
    }
    public static void main(String[] args) throws IOException {
	int i, j, key;
	int []A = new int[N+1];
	Scanner s = new Scanner(System.in);
	
	int n = s.nextInt();
	for (i = 1; i <= n; i++ ) A[i] = s.nextInt();
	for(i=1 ; i < n+1 ; i++){
	    key = A[i];
	    j = i - 1;
	    while( j >= 0 && A[j] > key){
		A[j+1] = A[j];
		j--;
		A[j+1] = key;
	    }
	    trace(A,n);
	}
    }
}

Compiler output:
Main.java:13: error: cannot find symbol
    public static void main(String[] args) throws IOException {
                                                  ^
  symbol:   class IOException
  location: class A
1 error
Language: Java

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

public class InsertionSort {
	public static void main(String[] args) {
		try {
			BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
			int n = Integer.parseInt(in.readLine());
			String[] line = in.readLine().split(" ");
			in.close();
			
			StringBuilder out = new StringBuilder();
			String lb = System.getProperty("line.separator");
			
			int[] seq = new int[n];
			for (int i = 0; i < n; i++) {
				seq[i] = Integer.parseInt(line[i]);
				out.append(String.valueOf(seq[i])).append(i < n-1 ? " " : lb);
			}
			
			for (int i = 1; i < seq.length; i++) {
				final int key = seq[i];
				int j = i-1;
				while (0 <= j && key < seq[j]) {
					seq[j+1] = seq[j];
					j--;
				}
				seq[j+1] = key;
				
				for (int k = 0; k < n; k++) {
					out.append(String.valueOf(seq[k])).append(k < n-1 ? " " : lb);
				}
			}
			System.out.print(out.toString());
		} catch (Exception e) {
			e.printStackTrace();
		}
		
	}
}

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

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

public class InsertionSort {
	public static void main(String[] args) {
		try {
			StringBuilder out = new StringBuilder();
			String lb = System.getProperty("line.separator");
			
			BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
			int n = Integer.parseInt(in.readLine());
			String[] line = in.readLine().split("[\\s]+");
			in.close();
			
			int[] seq = new int[n];
			for (int i = 0; i < seq.length; i++) {
				seq[i] = Integer.parseInt(line[i]);
				out.append(String.valueOf(seq[i])).append(i < n-1 ? " " : lb);
			}
			
			for (int i = 1; i < seq.length; i++) {
				final int key = seq[i];
				int j = i-1;
				while (0 <= j && key < seq[j]) {
					seq[j+1] = seq[j];
					j--;
				}
				seq[j+1] = key;
				
				for (int k = 0; k < n; k++) {
					out.append(String.valueOf(seq[k])).append(k < n-1 ? " " : lb);
				}
			}
			System.out.print(out.toString());
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}

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

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

public class Main101a {
	public static void main(String[] args) throws IOException {
		 BufferedReader br = new BufferedReader(new
		 InputStreamReader(System.in));
		//BufferedReader br = new BufferedReader(new FileReader("sample.txt"));

		int n = Integer.parseInt(br.readLine());
		String str = br.readLine();
		String[] st = str.split(" ");
		int[] in = new int[st.length];
		for (int i = 0; i < st.length; i++)
			in[i] = Integer.parseInt(st[i]);
		for (int i = 0; i < n; i++) {
			for (int j = 0; j < i; j++) {
				if (in[i] < in[j]) {
					int tmp = in[i];
					for (int l=i; l > j; l--)
						in[l] = in[l - 1];
					in[j] = tmp;break;
					}

			}System.out.print(in[0]);
					for (int l = 1; l < n; l++)
						System.out.print(" " + in[l]);
					System.out.println();
		}

	}

}

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

class Main {

	public static void main(String[] a) {
		// 入力
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int result[] = new int[n];
		for (int i = 0; i < result.length; i++) {
			result[i] = sc.nextInt();
		}
		sc.close();

		// 出力
		for (int j2 = 0; j2 < result.length; j2++) {
			System.out.print(result[j2]);
			if (j2 < result.length - 1) {
				System.out.print(" ");
			} else {
				System.out.println();
			}
		}
		for (int i = 1; i < result.length; i++) {
			int keep = result[i];
			int j = i - 1;
			while (j >= 0 && keep < result[j]) {
				result[j + 1] = result[j];
				j--;
				result[j + 1] = keep;
			}
			for (int j2 = 0; j2 < result.length; j2++) {
				System.out.print(result[j2]);
				if (j2 < result.length - 1) {
					System.out.print(" ");
				} else {
					System.out.println();
				}
			}
		}
	}
}

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

import java.util.Scanner;


public class InsertionSort {

	public static void main(String[] args) {

		Scanner s = new Scanner(System.in);
		int a = s.nextInt();
		int[] values = new int[a];
		String sr[] = new String[a];
		String str = "";

		for(int i=0 ; i<sr.length ; i++) {
			values[i] = s.nextInt();
		}
		for(int j=0 ; j<values.length ; j++) {
			System.out.print(values[j]);
			if(j+1<values.length)
				System.out.print(" ");
		}
		System.out.println();
		solve(values);
	}

	public static void solve(int[] values) {
		for(int i=1 ; i<values.length ; i++) {
			int targetV = values[i];
			int movableIndex = i - 1;
			while(movableIndex >= 0 && values[movableIndex] > targetV) {
				values[movableIndex + 1] = values[movableIndex];
				movableIndex--;
			}
			values[movableIndex + 1] = targetV;
			for(int j=0 ; j<values.length ; j++) {
				System.out.print(values[j]);
				if(j+1<values.length)
					System.out.print(" ");
			}
			if(i+1<values.length)
			System.out.println();
		}
	}
}

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

import java.util.Scanner;


public class Main {

	public static void main(String[] args) {

		Scanner s = new Scanner(System.in);
		int a = s.nextInt();
		int[] values = new int[a];
		String sr[] = new String[a];
		String str = "";

		for(int i=0 ; i<sr.length ; i++) {
			values[i] = s.nextInt();
		}
		for(int j=0 ; j<values.length ; j++) {
			System.out.print(values[j]);
			if(j+1<values.length)
				System.out.print(" ");
		}
//		System.out.println();
		solve(values);
	}

	public static void solve(int[] values) {
		for(int i=1 ; i<values.length ; i++) {
			int targetV = values[i];
			int movableIndex = i - 1;
			while(movableIndex >= 0 && values[movableIndex] > targetV) {
				values[movableIndex + 1] = values[movableIndex];
				movableIndex--;
			}
			values[movableIndex + 1] = targetV;
			for(int j=0 ; j<values.length ; j++) {
				System.out.print(values[j]);
				if(j+1<values.length)
					System.out.print(" ");
			}
			if(i+1<values.length)
//			System.out.println();
		}
	}
}

Compiler output:
Main.java:42: error: illegal start of statement
		}
		^
1 error
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
 
class a {
    static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    static StringBuilder out = new StringBuilder();
 
    public static void main(String[] args) throws IOException {
        int n = Integer.parseInt(br.readLine());
        int[] A = new int[n];
        
        String[] in = br.readLine().split(" ");
        for (int i=0; i<n; i++) A[i] = Integer.parseInt(in[i]);
        trace(A, n);
        int i,j,t,minv;
        
        for(i=0; i<n; i++) {
            
            for (j = i; j <n ; j++) {
				if (A[i]>A[j]) {
					minv=j;
				}
				t=A[i];
				A[i]=A[minv];
				A[minv]=t;
			}
            trace(A, n);
        }
        System.out.print(out);
    }
     
    static void trace(int A[], int n){
        for (int i=0; i<n; i++){
            if(i>0) out.append(' ');
            out.append(A[i]);
        }
        out.append('\n');
    }
}

Compiler output:
Main.java:25: error: variable minv might not have been initialized
				A[i]=A[minv];
				       ^
1 error
Language: Java

package aoj;

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

/**
 * Insertion Sort
 * 
 * @author martin-d28jp-love
 *
 */
public class ALDS1_1_A {
    
    public static void main(String[] args) {
        // input data
//        List<String> input = inputLines();
        List<String> input = mocups();
        
        // get input
        int length = Integer.valueOf(input.get(0));
        String[] numbersString = input.get(1).split(" ");
        int[] numbers = new int[length];
        for (int i = 0; i < length; i++) {
            numbers[i] = Integer.valueOf(numbersString[i]);
        }
        int[] A = numbers;

        // main logic
        for (int i = 1; i <= A.length-1; i++) {
            int key = A[i];
            /* insert A[i] into the sorted sequence A[0,...,j-1] */
            int j = i - 1;
            while (j >= 0 && A[j] > key) {
                A[j+1] = A[j];
                j--;
            }
            A[j+1] = key;
            output(A);
        }

        // output
        output(numbers);

    }

    private static List<String> mocups() {
        List<String> input = Arrays.asList(
                "6",
                "5 2 4 6 1 3"
                );
        return input;
    }

    /** output data */
    private static void output(Object o) {
        System.out.println(o);
    }
    private static void output(String[] o) {
        System.out.println(Arrays.toString(o));
    }
    private static void output(int[] o) {
        System.out.println(Arrays.toString(o));
    }
    private static void output(Object[] o) {
        System.out.println(Arrays.toString(o));
    }

    /** input data */
    private static List<String> inputLines() {
        Scanner in = new Scanner(System.in);
        List<String> input = new ArrayList<String>();
        while(in.hasNext()) {
            String buf = in.nextLine();
            input.add(buf);
        }
        in.close();
        return input;
    }

}

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

import java.util.Scanner;
public class Main{
        public static void main(String[] args){
             int n;
             int[] A;
        
        Scanner sc = new Scanner(System.in);
        n = sc.nextInt();
        A = new int[n];
        
        for ( int i = 0; i < n; i++ ) A[i] = sc.nextInt();
        
        trace(n,A);
        
        
         //insertion sort
                
        for ( int i = 1; i < n; i++ ) {
                int key = A[i];
                int j = i - 1;
            while ( j >= 0 && A[j] > key ){
                A[j+1] = A[j];
                j--;
            }
                A[j+1] = key;
            trace(n,A);
    public static void trace(int n,int []A){
       for ( int i = 0; i < n; i++ ){
            if ( i > 0 ) System.out.print(" ");
            System.out.print(A[i]);
       }
            System.out.println("\n");
    }

         }
        }
}

Compiler output:
Main.java:27: error: illegal start of expression
    public static void trace(int n,int []A){
    ^
Main.java:36: error: class, interface, enum, or record expected
        }
        ^
2 errors
Language: Java

import java.util.Scanner;
public class Main{
        public static void main(String[] args){
             int n;
             int[] A;
        
        Scanner sc = new Scanner(System.in);
        n = sc.nextInt();
        A = new int[n];
        
        for ( int i = 0; i < n; i++ ) A[i] = sc.nextInt();
        
        trace(n,A);
        
        
         //insertion sort
                
        for ( int i = 1; i < n; i++ ) {
                int key = A[i];
                int j = i - 1;
            while ( j >= 0 && A[j] > key ){
                A[j+1] = A[j];
                j--;
            }
                A[j+1] = key;
            trace(n,A);
    public static void trace(int n,int []A){
       for ( int i = 0; i < n; i++ ){
            if ( i > 0 ) System.out.print(" ");
            System.out.print(A[i]);
       }
            System.out.print("\n");
    }

         }
        }
}

Compiler output:
Main.java:27: error: illegal start of expression
    public static void trace(int n,int []A){
    ^
Main.java:36: error: class, interface, enum, or record expected
        }
        ^
2 errors
Language: Java

import java.util.*;
import java.io.*;
import static java.util.Arrays.*;
import static java.util.Collections.*;
import static java.lang.Math.*;



public class Aoj1 {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
        int n,i,j,v;
        Scanner scan=new Scanner(System.in);
        n=scan.nextInt();
        int m[]=new int[n];
        int k[]=new int[n];
        for(i=0;i<m.length;i++)
        {
        	m[i]=scan.nextInt();
        }
        
        for(i=0;i<m.length-1;i++)
        {
        	System.out.print(m[i]+" ");
        }
        System.out.println(m[n-1]);
        for(i=1;i<=m.length-1;i++)
        {
        	v=m[i];
        	j=i-1;
        	while(j>=0&&m[j]>v)
        	{
        		m[j+1]=m[j];
        		j--;
        	}
        	m[j+1]=v;
        	for(j=0;j<m.length-1;j++)
        	{
        		System.out.print(m[j]+" ");
        	}
        	System.out.println(m[n-1]);
        }
	}
}

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

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

class Main{

static final PrintWriter out=new PrintWriter(System.out);

public static void main(String[] args) throws IOException{
BufferedReader br=new BufferedReader(new InputSreamReader(System.in));
String line="";
while((line=br.readLine())!=null&&!line.isEmpty()){
int n=Integer.parseInt(line);
int[] a=new int[n];
StringTokenizer st=new StringTokenizer(br.readLine());
for(int i=0;i<n;i++) a[i]=Integer.parseInt(st.nextToken());
InsertionSort(a);
out.flush();
}
}

static void InsertionSort(int[] a){
getValue(a);
for(int i=1;i<n;i++){
j=i-1;
int tmp=a[i];
while(j>=0&&a[j]>temp){
a[j+1]=a[j];
a[j]=tmp;
j--;
}
getValue(a);
}
}

private static void getValue(int[] a){
for(int i=0;i<n-1;i++) out.print(a[i]+" ");
out.println(a[n-1]);
}
}

Compiler output:
Main.java:9: error: cannot find symbol
BufferedReader br=new BufferedReader(new InputSreamReader(System.in));
                                         ^
  symbol:   class InputSreamReader
  location: class Main
Main.java:23: error: cannot find symbol
for(int i=1;i<n;i++){
              ^
  symbol:   variable n
  location: class Main
Main.java:24: error: cannot find symbol
j=i-1;
^
  symbol:   variable j
  location: class Main
Main.java:26: error: cannot find symbol
while(j>=0&&a[j]>temp){
      ^
  symbol:   variable j
  location: class Main
Main.java:26: error: cannot find symbol
while(j>=0&&a[j]>temp){
              ^
  symbol:   variable j
  location: class Main
Main.java:26: error: cannot find symbol
while(j>=0&&a[j]>temp){
                 ^
  symbol:   variable temp
  location: class Main
Main.java:27: error: cannot find symbol
a[j+1]=a[j];
  ^
  symbol:   variable j
  location: class Main
Main.java:27: error: cannot find symbol
a[j+1]=a[j];
         ^
  symbol:   variable j
  location: class Main
Main.java:28: error: cannot find symbol
a[j]=tmp;
  ^
  symbol:   variable j
  location: class Main
Main.java:29: error: cannot find symbol
j--;
^
  symbol:   variable j
  location: class Main
Main.java:36: error: cannot find symbol
for(int i=0;i<n-1;i++) out.print(a[i]+" ");
              ^
  symbol:   variable n
  location: class Main
Main.java:37: error: cannot find symbol
out.println(a[n-1]);
              ^
  symbol:   variable n
  location: class Main
12 errors
Language: Java

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

class Main{

static final PrintWriter out=new PrintWriter(System.out);

public static void main(String[] args) throws IOException{
BufferedReader br=new BufferedReader(new InputSreamReader(System.in));
String line="";
while((line=br.readLine())!=null&&!line.isEmpty()){
int n=Integer.parseInt(line);
int[] a=new int[n];
StringTokenizer st=new StringTokenizer(br.readLine());
for(int i=0;i<n;i++) a[i]=Integer.parseInt(st.nextToken());
InsertionSort(a);
out.flush();
}
}

static void InsertionSort(int[] a){
getValue(a);
for(int i=1;i<a.length;i++){
int j=i-1;
int tmp=a[i];
while(j>=0&&a[j]>temp){
a[j+1]=a[j];
a[j]=tmp;
j--;
}
getValue(a);
}
}

private static void getValue(int[] a){
for(int i=0;i<a.length-1;i++) out.print(a[i]+" ");
out.println(a[a.length-1]);
}
}

Compiler output:
Main.java:9: error: cannot find symbol
BufferedReader br=new BufferedReader(new InputSreamReader(System.in));
                                         ^
  symbol:   class InputSreamReader
  location: class Main
Main.java:26: error: cannot find symbol
while(j>=0&&a[j]>temp){
                 ^
  symbol:   variable temp
  location: class Main
2 errors
Language: Java

import java.util.Scanner;

public class ALDS1_1_A
{
	public static void main(String args[])
	{
		Scanner input = new Scanner(System.in);
		int[] A = new int[1001];
		int n, i, j, key;
		n = input.nextInt();
		for(i = 0; i < n; i++)
		{
			A[i]=input.nextInt();
		}
		for(i = 1; i <= n; i++){
  			key = A[i];
  			j = i - 1;
  			while( j >= 0 && A[j] > key){
  				A[j+1] = A[j];
  				j--;
  			}
  			A[j+1] = key;
  			trace(A, n);
  		}
	}

	public static void trace(int A[], int n)
	{
		for(int i=1;i<=n;i++){
			if(i>1)System.out.print(" ");
			System.out.print(A[i]);
		}
		System.out.println();
	}
}

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

import java.io.*;

public class InsertionSort {
  public static void main(String[] args) {
    BufferedReader in = new BufferedReader( new InputStreamReader(System.in));
    String count = new String(in.readLine());
    int nCount = Integer.parseInt(count);
    String s = new String(in.readLine());
    System.out.println(s);
    String[] arr = s.split(" ");
    for( int i = 1; i < nCount; i++ ) {
      char v = arr[i];
      int j = i - 1;
      while(j >= 0 && Integer.parseInt(arr[j]) > Integer.parseInt(v)) {
        arr[j+1] = arr[j];
        j--;
        arr[j+1] = v;
      }
      StringBuilder sb = new StringBuilder();
      for( String s : arr ) {
        sb.append(s).append(" ");
      }
      System.out.println(sb.toString());
    }
  }
}

Compiler output:
Main.java:3: error: class InsertionSort is public, should be declared in a file named InsertionSort.java
public class InsertionSort {
       ^
Main.java:12: error: incompatible types: String cannot be converted to char
      char v = arr[i];
                  ^
Main.java:14: error: incompatible types: char cannot be converted to String
      while(j >= 0 && Integer.parseInt(arr[j]) > Integer.parseInt(v)) {
                                                                  ^
Main.java:17: error: incompatible types: char cannot be converted to String
        arr[j+1] = v;
                   ^
Main.java:20: error: variable s is already defined in method main(String[])
      for( String s : arr ) {
                  ^
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
5 errors
Language: Java

import java.io.*;

public class Main {
  public static void main(String[] args) {
    BufferedReader in = new BufferedReader( new InputStreamReader(System.in));
    String count = new String(in.readLine());
    int nCount = Integer.parseInt(count);
    String s = new String(in.readLine());
    System.out.println(s);
    String[] arr = s.split(" ");
    for( int i = 1; i < nCount; i++ ) {
      char v = arr[i];
      int j = i - 1;
      while(j >= 0 && Integer.parseInt(arr[j]) > Integer.parseInt(v)) {
        arr[j+1] = arr[j];
        j--;
        arr[j+1] = v;
      }
      StringBuilder sb = new StringBuilder();
      for( String s : arr ) {
        sb.append(s).append(" ");
      }
      System.out.println(sb.toString());
    }
  }
}

Compiler output:
Main.java:12: error: incompatible types: String cannot be converted to char
      char v = arr[i];
                  ^
Main.java:14: error: incompatible types: char cannot be converted to String
      while(j >= 0 && Integer.parseInt(arr[j]) > Integer.parseInt(v)) {
                                                                  ^
Main.java:17: error: incompatible types: char cannot be converted to String
        arr[j+1] = v;
                   ^
Main.java:20: error: variable s is already defined in method main(String[])
      for( String s : arr ) {
                  ^
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
4 errors
Language: Java

import java.io.*;

public class Main {
  public static void main(String[] args) {
    BufferedReader in = new BufferedReader( new InputStreamReader(System.in));
    String count = new String(in.readLine());
    int nCount = Integer.parseInt(count);
    String s = new String(in.readLine());
    System.out.println(s);
    String[] arr = s.split(" ");
    for( int i = 1; i < nCount; i++ ) {
      String v = arr[i];
      int j = i - 1;
      while(j >= 0 && Integer.parseInt(arr[j]) > Integer.parseInt(v)) {
        arr[j+1] = arr[j];
        j--;
        arr[j+1] = v;
      }
      StringBuilder sb = new StringBuilder();
      for( String s : arr ) {
        sb.append(s).append(" ");
      }
      System.out.println(sb.toString());
    }
  }
}

Compiler output:
Main.java:20: error: variable s is already defined in method main(String[])
      for( String s : arr ) {
                  ^
1 error
Language: Java

import java.io.*;

public class Main {
  public static void main(String[] args) {
    BufferedReader in = new BufferedReader( new InputStreamReader(System.in));
    String count = new String(in.readLine());
    int nCount = Integer.parseInt(count);
    String s = new String(in.readLine());
    System.out.println(s);
    String[] arr = s.split(" ");
    for( int i = 1; i < nCount; i++ ) {
      String v = arr[i];
      int j = i - 1;
      while(j >= 0 && Integer.parseInt(arr[j]) > Integer.parseInt(v)) {
        arr[j+1] = arr[j];
        j--;
        arr[j+1] = v;
      }
      StringBuilder sb = new StringBuilder();
      for( String w : arr ) {
        sb.append(w).append(" ");
      }
      System.out.println(sb.toString());
    }
  }
}

Compiler output:
Main.java:6: error: unreported exception IOException; must be caught or declared to be thrown
    String count = new String(in.readLine());
                                         ^
Main.java:8: error: unreported exception IOException; must be caught or declared to be thrown
    String s = new String(in.readLine());
                                     ^
2 errors
Language: Java

import java.io.*;

public class Main {
  public static void main(String[] args) {
    try {
      BufferedReader in = new BufferedReader( new InputStreamReader(System.in));
      String count = new String(in.readLine());
      int nCount = Integer.parseInt(count);
      String s = new String(in.readLine());
      System.out.println(s);
      String[] arr = s.split(" ");
      for( int i = 1; i < nCount; i++ ) {
        String v = arr[i];
        int j = i - 1;
        while(j >= 0 && Integer.parseInt(arr[j]) > Integer.parseInt(v)) {
          arr[j+1] = arr[j];
          j--;
          arr[j+1] = v;
        }
        StringBuilder sb = new StringBuilder();
        for( String w : arr ) {
          sb.append(w).append(" ");
        }
        System.out.println(sb.toString());
      } catch (IOException e) {
        System.out.println(e.getMessage());
      }
    }
  }
}

Compiler output:
Main.java:25: error: 'catch' without 'try'
      } catch (IOException e) {
        ^
Main.java:5: error: 'try' without 'catch', 'finally' or resource declarations
    try {
    ^
2 errors
Language: Java

import java.util.Scanner;
class Main{
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int []A = new int[n];
		for(int i = 0; i < n; i++){
			A[i] = sc.nextInt();
			
		}
		
		for(int i = 0; i < n; i++){
			int v = A[i];
			int j = i - 1;
			while((j >= 0) && (A[j] > v)){
				A[j+1] = A[j];
				j--;
			}
			A[j+1] = v;
			
			for(int k = 0; k < n; k++){
				if(k > 0)System.out.print(" ");
				System.out.print(A[k]);
			}
			System.out.println();
		}
	}
}a

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

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.Scanner;
import java.util.StringTokenizer;
import java.math.BigDecimal;

public class Main {
  static InputReader in;
  static PrintWriter out;

  static class Solution {
    void solve() throws IOException {
      int N = in.nextInt();
      int[] A = new int[N];
      
      insertionSort(A, N);
     
//      End solve()
    }
    
    void insertionSort(int[] A, int N) {
      for (int i = 1; i < N; i++) {
        int v = A[i];
        int j = i - 1; 
        while (j >= 0 && A[j] > v) {
          A[j+1] = A[j];
          j--;
        }
        A[j+1] =v;
        
        for (int k = 0; k < N; k++) {
          out.print(A[k]);
          if (k != N - 1) {
            out.print(" ");
          } else {
            out.print("\n");
          }
      }
    }
    
    
//    End Solution
}


  public static void main(String[] args) throws IOException {
    in = new InputReader(System.in);
    out = new PrintWriter(System.out);
    Solution solver = new Solution();
    solver.solve();
    out.close();
}


  static class InputReader {
    public BufferedReader br;
    public StringTokenizer st;

    public InputReader(InputStream stream) {
      br = new BufferedReader(new InputStreamReader(stream));
    }

    public int nextInt() throws IOException {
      while (st == null || !st.hasMoreTokens()) {
        st = new StringTokenizer(br.readLine());
      }
      return Integer.parseInt(st.nextToken());
    }

    public long nextLong() throws IOException {
      while (st == null || !st.hasMoreTokens()) {
        st = new StringTokenizer(br.readLine());
      }
      return Long.parseLong(st.nextToken());
    }

    public String next() throws IOException {
      while (st == null || !st.hasMoreTokens()) {
        st = new StringTokenizer(br.readLine());
      }
      return st.nextToken();
    }

    public double nextDouble() throws IOException {
      while (st == null || !st.hasMoreTokens()) {
        st = new StringTokenizer(br.readLine());
      }
      return Double.parseDouble(st.nextToken());
    }

  }

}

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

public class Main {
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int N = in.nextInt();
		int[] A = new int[N];
		for(int i = 0;i<N;i++){
			A[i] = in.nextInt();
		}	
		insertSort(A,N);
	}
	public static void insertSort(int[] A,int N){
		for(int i = 1;i<N;i++){
			int j = i-1;
			int temp = A[i];
			while(j>=0 && temp<A[j]){
				A[j+1] = A[j];
				j--;
				A[j+1] = temp;
			}
			for(int l= 0;l<N;l++){
				if(l>0)System.out.print(" ");
				System.out.print(A[l]);
			}
			if(i<N-1)
			System.out.println("");
		}
	}

}

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

import java.util.Scanner;

public class Main2 {
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int N = in.nextInt();
		int[] A = new int[N];
		for(int i = 0;i<N;i++){
			A[i] = in.nextInt();
		}	
		insertSort(A,N);
	}
	public static void insertSort(int[] A,int N){
		for(int i = 1;i<N;i++){
			int j = i-1;
			int temp = A[i];
			while(j>=0 && temp<A[j]){
				A[j+1] = A[j];
				j--;
				A[j+1] = temp;
			}
			for(int l= 0;l<N;l++){
				if(l>0)System.out.print(" ");
				System.out.print(A[l]);
			}
			if(i<N-1)
			System.out.println("");
		}
	}

}

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

public class Main {
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int N = in.nextInt();
		int[] A = new int[N];
		for(int i = 0;i<N;i++){
			A[i] = in.nextInt();
		}
		for(int i = 0;i<N;i++){
			if(i>0)System.out.print(" ");
			System.out.print(A[i]);
		}	
		System.out.println("");
		insertSort(A,N);
	}
	public static void insertSort(int[] A,int N){
		for(int i = 1;i<N;i++){
			int j = i-1;
			int temp = A[i];
			while(j>=0 && temp<A[j]){
				A[j+1] = A[j];
				j--;
				A[j+1] = temp;
			}
			for(int l= 0;l<N;l++){
				if(l>0)System.out.print(" ");
				System.out.print(A[l]);
			}
			if(i<N-1)
			System.out.println("");
		}
	}

}

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

import java.util.Scanner;

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

	int N = In.nextInt();
	int []A = new int[n];

	int i,j;

	for(i = 0; i < n; i++)
	    {
		A[i] = In.nextInt();
	    }

	for(i = 1; i < n; i++)
	    {
		int v = A[i];
		j = i - 1;
		
		while(j >= 0 && A[j] > v)
		    {
			A[j + 1] = A[j];
			j--;
			
		    }
		A[j + 1] = v;
		
		for(int m = 0; m < n; m++)
		    System.out.print(A[m] + " ");
		System.out.println();
	    }	
    }
}

Compiler output:
Main.java:10: error: cannot find symbol
	int []A = new int[n];
	                  ^
  symbol:   variable n
  location: class ALDS1_1_A
Main.java:14: error: cannot find symbol
	for(i = 0; i < n; i++)
	               ^
  symbol:   variable n
  location: class ALDS1_1_A
Main.java:19: error: cannot find symbol
	for(i = 1; i < n; i++)
	               ^
  symbol:   variable n
  location: class ALDS1_1_A
Main.java:32: error: cannot find symbol
		for(int m = 0; m < n; m++)
		                   ^
  symbol:   variable n
  location: class ALDS1_1_A
4 errors
Language: Java

import java.util.Scanner;

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

	int N = In.next Int();
	int []A = new int[n];

	int i,j;

	for(i = 0; i < n; i++)
	    {
		A[i] = In.next Int();
	    }

	for(i = 1; i < n; i++)
	    {
		int v = A[i];
		j = i - 1;
		
		while(j >= 0 && A[j] > v)
		    {
			A[j + 1] = A[j];
			j--;
			
		    }
		A[j + 1] = v;
		
		for(int m = 0; m < n; m++)
		    System.out.print(A[m] + " ");
		System.out.print(\n);
	    }	
    }
}

Compiler output:
Main.java:9: error: ';' expected
	int N = In.next Int();
	               ^
Main.java:16: error: ';' expected
		A[i] = In.next Int();
		              ^
Main.java:34: error: illegal character: '\'
		System.out.print(\n);
		                 ^
Main.java:34: error: not a statement
		System.out.print(\n);
		                  ^
Main.java:34: error: ';' expected
		System.out.print(\n);
		                   ^
5 errors
Language: Java

import java.util.Scanner;

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

	int N = In.nextInt();
	int []A = new int[n];

	int i,j;

	for(i = 0; i < n; i++)
	    {
		A[i] = In.nextInt();
	    }

	for(i = 1; i < n; i++)
	    {
		int v = A[i];
		j = i - 1;
		
		while(j >= 0 && A[j] > v)
		    {
			A[j + 1] = A[j];
			j--;
			
		    }
		A[j + 1] = v;
		
		for(int m = 0; m < n; m++)
		    System.out.print(A[m] + " ");
		System.out.println();
	    }	
    }
}

Compiler output:
Main.java:10: error: cannot find symbol
	int []A = new int[n];
	                  ^
  symbol:   variable n
  location: class a
Main.java:14: error: cannot find symbol
	for(i = 0; i < n; i++)
	               ^
  symbol:   variable n
  location: class a
Main.java:19: error: cannot find symbol
	for(i = 1; i < n; i++)
	               ^
  symbol:   variable n
  location: class a
Main.java:32: error: cannot find symbol
		for(int m = 0; m < n; m++)
		                   ^
  symbol:   variable n
  location: class a
4 errors
Language: Java

import java.util.Scanner;

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

	int N = In.nextInt();
	int []A = new int[n];

	int i,j;

	for(i = 0; i < N; i++)
	    {
		A[i] = In.nextInt();
	    }

	for(i = 1; i < N; i++)
	    {
		int v = A[i];
		j = i - 1;
		
		while(j >= 0 && A[j] > v)
		    {
			A[j + 1] = A[j];
			j--;
			
		    }
		A[j + 1] = v;
		
		for(int m = 0; m < N; m++)
		    System.out.print(A[m] + " ");
		System.out.println();
	    }	
    }
}

Compiler output:
Main.java:10: error: cannot find symbol
	int []A = new int[n];
	                  ^
  symbol:   variable n
  location: class a
1 error
Language: Java

import java.util.Scanner;

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

	int N = In.nextInt();
	int A[] = new int[n];

	int i,j;

	for(i = 0; i < N; i++)
	    {
		A[i] = In.nextInt();
	    }

	for(i = 1; i < N; i++)
	    {
		int v = A[i];
		j = i - 1;
		
		while(j >= 0 && A[j] > v)
		    {
			A[j + 1] = A[j];
			j--;
			
		    }
		A[j + 1] = v;
		
		for(int m = 0; m < N; m++)
		    System.out.print(A[m] + " ");
		System.out.println();
	    }	
    }
}

Compiler output:
Main.java:10: error: cannot find symbol
	int A[] = new int[n];
	                  ^
  symbol:   variable n
  location: class ALDS1_1_A
1 error
Language: Java

import java.util.Scanner;

    public static void main(String[] args)
    {
	Scanner In = new Scanner(System.in);
	int N;
	do
	    {
		 N = In.nextInt();
	    }while(1 >= N && N >= 100);
	int i,j;
	int []A = new int[N];
		for(i = 0; i < N; i++)
		    {
			do
			    {
				A[i] = In.nextInt();
			    }while(0 >= A[i] && A[i] >= 1000);
		    }
	for(i = 1; i <= N - 1; i++)
	    {
		int v = A[i];
		j = i - 1;
		for(int m = 0; m < N - 1; m++)
		    System.out.print(A[m] + " ");
		System.out.print(A[N - 1]);
		System.out.println();
		while(j >= 0 && A[j] > v)
		    {
			A[j + 1] = A[j];
			j--;
		    }
		A[j + 1] = v;
	    }
	for(int l = 0; l < N - 1; l++)
		    System.out.print(A[l] + " ");
		System.out.print(A[N - 1]);
		System.out.println();
    }

Compiler output:
Main.java:3: 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)
1 error
Language: Java

import java.util.Scanner;

public class Main {
    static Scanner sc = new Scanner(System.in);
    static int n;
    static int a[];

    public static void main(String[] args) {
        read();
        output();
        solve();
    }

    public static void read() {
        n = sc.nextInt();
        a = new int[n];
        for (int i = 0; i < n; i++) {
            a[i] = sc.nextInt();
        }
    }

    public static void solve() {
        for (int i = 1; i < n; i++) {
            int v = i;
            while (v > 0) {
                if (a[v - 1] > a[v]) {
                    int tmp = a[v];
                    a[v] = a[v - 1];
                    a[v - 1] = tmp;
                }
                v--;
            }
            output();
        }
    }

    public static void output() {
        System.out.println(String.join(" ",a));
    }
}

Compiler output:
Main.java:38: error: no suitable method found for join(String,int[])
        System.out.println(String.join(" ",a));
                                 ^
    method String.join(CharSequence,CharSequence...) is not applicable
      (varargs mismatch; int[] cannot be converted to CharSequence)
    method String.join(CharSequence,Iterable<? extends CharSequence>) is not applicable
      (argument mismatch; int[] cannot be converted to Iterable<? extends CharSequence>)
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
1 error
Language: Java

public class Main {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
        String[] str = new String[2];
        int count = 0;
        while(in.hasNext()) {
            String buf = in.nextLine();
            str[count] = buf;
            count++;
        }
        Integer number = Integer.parseInt(str[0]);
        String[] split = str[1].split(" ");
        int[] facter; 
        facter = new int[split.length];
        
        for (int i = 0; i < split.length; i++) {
        	if (t != 0) {
        		System.out.print(" ");
        	}
        	facter[i] = Integer.parseInt(split[i]);
        	System.out.print(facter[i]);
        }
        System.out.println("");

        
        for (int i = 1; i <= (number -1); i++) {
        	int v = facter[i];
        	int j = i - 1;
        	
        	while ((j >= 0) && (facter[j] > v)) {
        		facter[j + 1] = facter[j];
        		j--;
        	}
        	facter[j + 1] = v;
        	
        	for ( int t = 0; t < split.length; t++) {
        		if (t != 0) {
        			System.out.print(" ");
        		}
        		System.out.print(facter[t]);
        	}
        	System.out.println("");

        	
        }
	}

}

Compiler output:
Main.java:4: error: cannot find symbol
		Scanner in = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:4: error: cannot find symbol
		Scanner in = new Scanner(System.in);
		                 ^
  symbol:   class Scanner
  location: class Main
Main.java:18: error: cannot find symbol
        	if (t != 0) {
        	    ^
  symbol:   variable t
  location: class Main
3 errors