Language: Java

class Main{
    static int len;
????static int[] arr;
	public static void main(String[] args){
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
?????????
????????int len = Integer.parseInt(reader.readLine());
????????int[] arr = new int[len];
?????????
????????String arrStr = reader.readLine();
????????StringTokenizer tokenizer = new StringTokenizer(arrStr, " ");
?????????
????????int i = 0;
????????while (tokenizer.hasMoreElements()) {
???????????arr[i++] = Integer.parseInt((String) tokenizer.nextElement());
????????}
??????????
????????reader.close();
?????????


	 //以下algorithm
	 for(int i = 1;i<A.length;i++){
		int j = i-1;
		int key = A[i];
		while(j >= 0 && A[j] > key){
			
			//入れ替え

			A[j] = A[j + 1];
			A[j+1] = A[j];
			j --;
		}
		
		//結果の出力
		for(int i =0;i<A.length-1;i++){
			System.out.print(A[i]+" ");
		}System.out.print(A[A.length-1]);
	 }
}
}

Compiler output:
Main.java:3: error: illegal start of type
????static int[] arr;
^
Main.java:6: error: illegal start of expression
?????????
^
Main.java:6: error: illegal start of expression
?????????
 ^
Main.java:6: error: illegal start of expression
?????????
  ^
Main.java:6: error: illegal start of expression
?????????
   ^
Main.java:6: error: illegal start of expression
?????????
    ^
Main.java:6: error: illegal start of expression
?????????
     ^
Main.java:6: error: illegal start of expression
?????????
      ^
Main.java:6: error: illegal start of expression
?????????
       ^
Main.java:6: error: illegal start of expression
?????????
        ^
Main.java:7: error: illegal start of expression
????????int len = Integer.parseInt(reader.readLine());
^
Main.java:7: error: illegal start of expression
????????int len = Integer.parseInt(reader.readLine());
 ^
Main.java:7: error: illegal start of expression
????????int len = Integer.parseInt(reader.readLine());
  ^
Main.java:7: error: illegal start of expression
????????int len = Integer.parseInt(reader.readLine());
   ^
Main.java:7: error: illegal start of expression
????????int len = Integer.parseInt(reader.readLine());
    ^
Main.java:7: error: illegal start of expression
????????int len = Integer.parseInt(reader.readLine());
     ^
Main.java:7: error: illegal start of expression
????????int len = Integer.parseInt(reader.readLine());
      ^
Main.java:7: error: illegal start of expression
????????int len = Integer.parseInt(reader.readLine());
       ^
Main.java:7: error: '.class' expected
????????int len = Integer.parseInt(reader.readLine());
            ^
Main.java:7: error: : expected
????????int len = Integer.parseInt(reader.readLine());
                                                     ^
Main.java:8: error: illegal start of expression
????????int[] arr = new int[len];
^
Main.java:8: error: illegal start of expression
????????int[] arr = new int[len];
 ^
Main.java:8: error: illegal start of expression
????????int[] arr = new int[len];
  ^
Main.java:8: error: illegal start of expression
????????int[] arr = new int[len];
   ^
Main.java:8: error: illegal start of expression
????????int[] arr = new int[len];
    ^
Main.java:8: error: illegal start of expression
????????int[] arr = new int[len];
     ^
Main.java:8: error: illegal start of expression
????????int[] arr = new int[len];
      ^
Main.java:8: error: illegal start of expression
????????int[] arr = new int[len];
       ^
Main.java:8: error: '.class' expected
????????int[] arr = new int[len];
              ^
Main.java:8: error: : expected
????????int[] arr = new int[len];
                                ^
Main.java:9: error: illegal start of expression
?????????
^
Main.java:9: error: illegal start of expression
?????????
 ^
Main.java:9: error: illegal start of expression
?????????
  ^
Main.java:9: error: illegal start of expression
?????????
   ^
Main.java:9: error: illegal start of expression
?????????
    ^
Main.java:9: error: illegal start of expression
?????????
     ^
Main.java:9: error: illegal start of expression
?????????
      ^
Main.java:9: error: illegal start of expression
?????????
       ^
Main.java:9: error: illegal start of expression
?????????
        ^
Main.java:10: error: illegal start of expression
????????String arrStr = reader.readLine();
^
Main.java:10: error: illegal start of expression
????????String arrStr = reader.readLine();
 ^
Main.java:10: error: illegal start of expression
????????String arrStr = reader.readLine();
  ^
Main.java:10: error: illegal start of expression
????????String arrStr = reader.readLine();
   ^
Main.java:10: error: illegal start of expression
????????String arrStr = reader.readLine();
    ^
Main.java:10: error: illegal start of expression
????????String arrStr = reader.readLine();
     ^
Main.java:10: error: illegal start of expression
????????String arrStr = reader.readLine();
      ^
Main.java:10: error: illegal start of expression
????????String arrStr = reader.readLine();
       ^
Main.java:10: error: : expected
????????String arrStr = reader.readLine();
              ^
Main.java:10: error: : expected
????????String arrStr = reader.readLine();
                                         ^
Main.java:11: error: illegal start of expression
????????StringTokenizer tokenizer = new StringTokenizer(arrStr, " ");
^
Main.java:11: error: illegal start of expression
????????StringTokenizer tokenizer = new StringTokenizer(arrStr, " ");
 ^
Main.java:11: error: illegal start of expression
????????StringTokenizer tokenizer = new StringTokenizer(arrStr, " ");
  ^
Main.java:11: error: illegal start of expression
????????StringTokenizer tokenizer = new StringTokenizer(arrStr, " ");
   ^
Main.java:11: error: illegal start of expression
????????StringTokenizer tokenizer = new StringTokenizer(arrStr, " ");
    ^
Main.java:11: error: illegal start of expression
????????StringTokenizer tokenizer = new StringTokenizer(arrStr, " ");
     ^
Main.java:11: error: illegal start of expression
????????StringTokenizer tokenizer = new StringTokenizer(arrStr, " ");
      ^
Main.java:11: error: illegal start of expression
????????StringTokenizer tokenizer = new StringTokenizer(arrStr, " ");
       ^
Main.java:11: error: : expected
????????StringTokenizer tokenizer = new StringTokenizer(arrStr, " ");
                       ^
Main.java:11: error: : expected
????????StringTokenizer tokenizer = new StringTokenizer(arrStr, " ");
                                                                    ^
Main.java:12: error: illegal start of expression
?????????
^
Main.java:12: error: illegal start of expression
?????????
 ^
Main.java:12: error: illegal start of expression
?????????
  ^
Main.java:12: error: illegal start of expression
?????????
   ^
Main.java:12: error: illegal start of expression
?????????
    ^
Main.java:12: error: illegal start of expression
?????????
     ^
Main.java:12: error: illegal start of expression
?????????
      ^
Main.java:12: error: illegal start of expression
?????????
       ^
Main.java:12: error: illegal start of expression
?????????
        ^
Main.java:13: error: illegal start of expression
????????int i = 0;
^
Main.java:13: error: illegal start of expression
????????int i = 0;
 ^
Main.java:13: error: illegal start of expression
????????int i = 0;
  ^
Main.java:13: error: illegal start of expression
????????int i = 0;
   ^
Main.java:13: error: illegal start of expression
????????int i = 0;
    ^
Main.java:13: error: illegal start of expression
????????int i = 0;
     ^
Main.java:13: error: illegal start of expression
????????int i = 0;
      ^
Main.java:13: error: illegal start of expression
????????int i = 0;
       ^
Main.java:13: error: '.class' expected
????????int i = 0;
            ^
Main.java:13: error: : expected
????????int i = 0;
                 ^
Main.java:14: error: illegal start of expression
????????while (tokenizer.hasMoreElements()) {
^
Main.java:14: error: illegal start of expression
????????while (tokenizer.hasMoreElements()) {
 ^
Main.java:14: error: illegal start of expression
????????while (tokenizer.hasMoreElements()) {
  ^
Main.java:14: error: illegal start of expression
????????while (tokenizer.hasMoreElements()) {
   ^
Main.java:14: error: illegal start of expression
????????while (tokenizer.hasMoreElements()) {
    ^
Main.java:14: error: illegal start of expression
????????while (tokenizer.hasMoreElements()) {
     ^
Main.java:14: error: illegal start of expression
????????while (tokenizer.hasMoreElements()) {
      ^
Main.java:14: error: illegal start of expression
????????while (tokenizer.hasMoreElements()) {
       ^
Main.java:14: error: illegal start of expression
????????while (tokenizer.hasMoreElements()) {
        ^
Main.java:15: error: illegal start of expression
???????????arr[i++] = Integer.parseInt((String) tokenizer.nextElement());
^
Main.java:15: error: illegal start of expression
???????????arr[i++] = Integer.parseInt((String) tokenizer.nextElement());
 ^
Main.java:15: error: illegal start of expression
???????????arr[i++] = Integer.parseInt((String) tokenizer.nextElement());
  ^
Main.java:15: error: illegal start of expression
???????????arr[i++] = Integer.parseInt((String) tokenizer.nextElement());
   ^
Main.java:15: error: illegal start of expression
???????????arr[i++] = Integer.parseInt((String) tokenizer.nextElement());
    ^
Main.java:15: error: illegal start of expression
???????????arr[i++] = Integer.parseInt((String) tokenizer.nextElement());
     ^
Main.java:15: error: illegal start of expression
???????????arr[i++] = Integer.parseInt((String) tokenizer.nextElement());
      ^
Main.java:15: error: illegal start of expression
???????????arr[i++] = Integer.parseInt((String) tokenizer.nextElement());
       ^
Main.java:15: error: illegal start of expression
???????????arr[i++] = Integer.parseInt((String) tokenizer.nextElement());
        ^
Main.java:15: error: illegal start of expression
???????????arr[i++] = Integer.parseInt((String) tokenizer.nextElement());
         ^
Main.java:15: error: illegal start of expression
???????????arr[i++] = Integer.parseInt((String) tokenizer.nextElement());
          ^
Main.java:15: error: : expected
???????????arr[i++] = Integer.parseInt((String) tokenizer.nextElement());
                                                                        ^
Main.java:16: error: illegal start of expression
????????}
^
100 errors
only showing the first 100 errors, of 137 total; use -Xmaxerrs if you would like to see more