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 {
        // Here your code !
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        for(int n=Integer.parseInt(reader.readLine())-1;n>=0;n--){
            if(n!=0) System.out.println(i[n]+" ");
            else System.out.println(i[n]);
        }
        
        
    }
}

Compiler output:
Main.java:9: error: cannot find symbol
            if(n!=0) System.out.println(i[n]+" ");
                                        ^
  symbol:   variable i
  location: class Main
Main.java:10: error: cannot find symbol
            else System.out.println(i[n]);
                                    ^
  symbol:   variable i
  location: class Main
2 errors
Language: Java

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

public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        for(int n=Integer.parseInt(reader.readLine())-1;n>=0;n--){
            if(n!=0) System.out.println(i[n]+" ");
            else System.out.println(i[n]);
        }
    }
}

Compiler output:
Main.java:8: error: cannot find symbol
            if(n!=0) System.out.println(i[n]+" ");
                                        ^
  symbol:   variable i
  location: class Main
Main.java:9: error: cannot find symbol
            else System.out.println(i[n]);
                                    ^
  symbol:   variable i
  location: class Main
2 errors
Language: Java

import java.io.*;

class Main{
    piblic static void main(String[] args) throws IOException{
        
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        
        int x = IntegerpaseInt(br.readLine());
        String[] str = br.readLine().split(" ");
        
        for(int i = str.length; i > 0; i--){
            System.out.println(str[i-1]);
            if(i != 1){
                System.out.println(" ");
            }
        }
    }
    System.out.println();
}

Compiler output:
Main.java:4: error: <identifier> expected
    piblic static void main(String[] args) throws IOException{
          ^
Main.java:18: error: <identifier> expected
    System.out.println();
                      ^
2 errors
Language: Java

import java.util.Scanner;


public class Main2 {


	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n =scan.nextInt();
		int[] a = new int[n];
		int[] b = new int[n];

		for(int i=0;i<n;i++){
			a[i]=scan.nextInt();
		}

		for(int i=0;i<a.length;i++){
			b[a.length-(i+1)] = a[i];
		}
		
		for(int i=0; i<n-1;i++){
			System.out.print(b[i]);
		}

		System.out.println(b[n-1]);
	}

}

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

import java.util.Scanner;


public class Main2 {


	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n =scan.nextInt();
		int[] a = new int[n];
		int[] b = new int[n];

		for(int i=0;i<n;i++){
			a[i]=scan.nextInt();
		}

		for(int i=0;i<a.length;i++){
			b[a.length-(i+1)] = a[i];
		}
		
		for(int i=0; i<n-1;i++){
			System.out.print(b[i]+" ");
		}

		System.out.println(b[n-1]);
	}

}

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

pubulc class Main{
 public static void main (String args []){
  Scaner sc=new Scaner(System.in);
  int n=sc.nextInt(n);
  int a[]= new int[n];
  for(int i =0;i<n; i++){
     a[i]=sc.nextInt();
  }
  System.out.print(a[n-1]);
  for(int i =n-2;i>=0;i--){
      System.out.print(" "+a[i]);
      }
      System.out.println();
     }
}

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
pubulc class Main{
^
1 error
Language: Java

import java .until*
pubulc class Main{
 public static void main (String args []){
  Scaner sc=new Scaner(System.in);
  int n=sc.nextInt(n);
  int a[]= new int[n];
  for(int i =0;i<n; i++){
     a[i]=sc.nextInt();
  }
  System.out.print(a[n-1]);
  for(int i =n-2;i>=0;i--){
      System.out.print(" "+a[i]);
      }
      System.out.println();
     }
}

Compiler output:
Main.java:1: error: ';' expected
import java .until*
                  ^
1 error
Language: Java

imimport java.util.Scanner;

public class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int[] arr = new int[n];
		
		//???????????´??°????´?
		for(int i=0; i<n; i++) {
			arr[i] = scan.nextInt();
		}
		//??????????????????????´?????????¨????????????????????????
		for(int j=n-1; j>0; j--) {
			System.out.print(arr[j] + " ");
		}
		System.out.print(arr[0]);
  }
}

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

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

		int n = scan.nextInt();
	
		int a[];
		a = new int[n];
		
		for(int i = 0;i < n;i++){
			a[i] = scan.nextInt();
		}
		
		for(int i = n-1;i >= 0;i--){
			System.out.print(a[i]);
			if(i!=0){
				System.out.print(" ");
			}
		}
		System.out.println();
	}
}

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

import java.util.Scanner;

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

		int n = scan.nextInt();

		int a[] = new int[n];
		
		for(int i = 0; i < n; i++){
			a[i] = scan.nextInt();
		}

		for(int j = 0; j < n / 2; j++){
			int t = a[j];
			a[j] = a[n - j - 1];
			a[n - j - 1] = t;
		}

		for(int k = 0; k < n; k++){
			System.out.print(a[k]);
			if(k != n - 1){
				System.out.print(" ");
			}else{
				System.out.print();
			}
		}
	}
}

Compiler output:
Main.java:26: error: no suitable method found for print(no arguments)
				System.out.print();
				          ^
    method PrintStream.print(boolean) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(char) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(int) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(long) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(float) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(double) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(char[]) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(String) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(Object) is not applicable
      (actual and formal argument lists differ in length)
1 error
Language: Java

import java.util.Scanner;

public class ReversingNumbers {

	public static void main(String[] args) {
		
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int[] array = new int[n];
		
		for(int i = 0; i < n; i++){
			array[i] = scan.nextInt();
		}
		
		for(int j = 0; j < n / 2; j++){
			int a = array[j];
			array[j] = array[n - j - 1];
			array[n - j - 1] = a;
		}
		
		for(int k = 0; k < n; k++){
			System.out.print(array[k]);
			if(k != n - 1){
				System.out.print(" ");
			}
		}
	}
}

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



public class main {

	public static void main(String[] args)  {
		createOutputArr();
	}

	private static void createOutputArr() {
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
				try {
					int inputArrayNum = Integer.parseInt(br.readLine());
					String[] inputStr = br.readLine().split(" ");
					String[] outputStrArr = new String[inputArrayNum];

					for(int i = inputArrayNum - 1; i > -1; i--) {
						outputStrArr[i] = inputStr[inputArrayNum - i -1];
					}

					String outputString = "";
					int i = 0;
					for(String output: outputStrArr) {
						outputString = outputString + output;
						i++;
						if(i != inputArrayNum){
							outputString  = outputString + " ";
						}
					}

					System.out.print(outputString);
				} catch (IOException e) {
					e.printStackTrace();
				}





	}

}

Compiler output:
Main.java:3: error: class main is public, should be declared in a file named main.java
public class main {
       ^
Main.java:10: error: cannot find symbol
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			^
  symbol:   class BufferedReader
  location: class main
Main.java:10: error: cannot find symbol
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			                        ^
  symbol:   class BufferedReader
  location: class main
Main.java:10: error: cannot find symbol
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			                                           ^
  symbol:   class InputStreamReader
  location: class main
Main.java:31: error: cannot find symbol
				} catch (IOException e) {
				         ^
  symbol:   class IOException
  location: class main
5 errors
Language: Java

package main;

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

public class main {

	public static void main(String[] args)  {
		createOutputArr();
	}

	private static void createOutputArr() {
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
				try {
					int inputArrayNum = Integer.parseInt(br.readLine());
					String[] inputStr = br.readLine().split(" ");
					String[] outputStrArr = new String[inputArrayNum];

					for(int i = inputArrayNum - 1; i > -1; i--) {
						outputStrArr[i] = inputStr[inputArrayNum - i -1];
					}

					String outputString = "";
					int i = 0;
					for(String output: outputStrArr) {
						outputString = outputString + output;
						i++;
						if(i != inputArrayNum){
							outputString  = outputString + " ";
						}
					}

					System.out.print(outputString);
				} catch (IOException e) {
					e.printStackTrace();
				}





	}

}

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

import java.util.Scanner;
public class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		String line = scan.nextLine();
		String[] array = line.split(" ");
		for(int i = array.length-1;i=>0;i--){
			if(i==0){
				System.out.print(array[i]);
			}else{
				System.out.print(array[i]+" ");
			}
		}
		System.out.println();
	}
}

Compiler output:
Main.java:8: error: illegal start of expression
		for(int i = array.length-1;i=>0;i--){
		                             ^
1 error
Language: Java

package internship;

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

public class Array {
	//HOME- ITP1-ITP1_6-A
	public static void main(String[] args) {


		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		StringBuilder sb = new StringBuilder();

		//Scanner sc = new Scanner(System.in);

		int n = Integer.parseInt(br.readLine());

		String day[] =  br.readLine().split(" ");

		for (int i = 0; i < day.length; i++) {

			sb.append(day[i]);

			//System.out.print(day[i]);
		}
		 for (int i = n - 1; i >= 0; i--) {
	            sb.append(day[i]);
	            if (i != 0) {
	                sb.append(" ");
	            }
	        }

	        System.out.println(sb);
	    }

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

package internship;

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

public class Array {
	//HOME- ITP1-ITP1_6-A
	public static void main(String[] args) {


		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		StringBuilder sb = new StringBuilder();

		//Scanner sc = new Scanner(System.in);

		int n = Integer.parseInt(br.readLine());

		String day[] =  br.readLine().split(" ");

		for (int i = 0; i < day.length; i++) {

			sb.append(day[i]);

			//System.out.print(day[i]);
		}
		 for (int i = n - 1; i >= 0; i--) {
	            sb.append(day[i]);
	            if (i != 0) {
	                sb.append(" ");
	            }
	            System.out.println(sb);
	        }
	    }

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



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

public class Array {
	
	public static void main(String[] args) {


		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		StringBuilder sb = new StringBuilder();

		

		int n = Integer.parseInt(br.readLine());

		String day[] =  br.readLine().split(" ");

		for (int i = 0; i < day.length; i++) {

			sb.append(day[i]);

			//System.out.print(day[i]);
		}
		 for (int i = n - 1; i >= 0; i--) {
	            sb.append(day[i]);
	            if (i != 0) {
	                sb.append(" ");
	            }
	            System.out.println(sb);
	        }
	    }

Compiler output:
Main.java:34: error: reached end of file while parsing
	    }
	     ^
1 error
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));
		StringBuilder sb = new StringBuilder();

		int n = Integer.parseInt(br.readLine());

		String day[] =  br.readLine().split(" ");

		for (int i = 0; i < day.length; i++) {

			sb.append(day[i]);

			//System.out.print(day[i]);
		}
		 for (int i = n - 1; i >= 0; i--) {
	            sb.append(day[i]);
	            if (i != 0) {
	                sb.append(" ");
	            }
	            System.out.println(sb);
	        }
	    }

Compiler output:
Main.java:31: error: reached end of file while parsing
	    }
	     ^
1 error
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));
		StringBuilder sb = new StringBuilder();

		int n = Integer.parseInt(br.readLine());

		String day[] =  br.readLine().split(" ");

		for (int i = 0; i < day.length; i++) {

			sb.append(day[i]);

			//System.out.print(day[i]);
		}
		 for (int i = n - 1; i >= 0; i--) {
	            sb.append(day[i]);
	            if (i != 0) {
	                sb.append(" ");
	            }
	            System.out.println(sb);
	        }
	    }

}

Compiler output:
Main.java:14: error: unreported exception IOException; must be caught or declared to be thrown
		int n = Integer.parseInt(br.readLine());
		                                    ^
Main.java:16: error: unreported exception IOException; must be caught or declared to be thrown
		String day[] =  br.readLine().split(" ");
		                           ^
2 errors
Language: Java

package internship;

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

public class Array {
	// HOME- ITP1-ITP1_6-A
	public static void main(String[] args) throws NumberFormatException, IOException {

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		StringBuilder sb = new StringBuilder();

		// Scanner sc = new Scanner(System.in);

		int n = Integer.parseInt(br.readLine());

		String day[] = br.readLine().split(" ");

		for (int i = 0; i < day.length; i++) {

			sb.append(day[i]);

			// System.out.print(day[i]);
		}
		for (int i = n - 1; i >= 0; i--) {
			sb.append(day[i]);
			if (i != 0) {
				sb.append(" ");
			}
			System.out.println(sb);
		}
	}
}

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

package internship;

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

public class Array {
	// HOME- ITP1-ITP1_6-A
	public static void main(String[] args) throws NumberFormatException, IOException {
		//??°???????????¢
		//n ?????°????????????????????????ai ??? i ???????????°?????¨????????????
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		StringBuilder sb = new StringBuilder();

		// Scanner sc = new Scanner(System.in);

		int n = Integer.parseInt(br.readLine());

		String day[] = br.readLine().split(" ");

		for (int i = n - 1; i >= 0; i--) {
			sb.append(day[i]);
			if (i != 0) {
				sb.append(" ");
			}
			System.out.println(sb);
		}
	}
}

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

public class Main {
    pulic Static void Main(String[] args)throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringBuilder output = new StringBuilder();

        String input = br.readLine();
        int n = Integer.parseInt(input);
        input = br.readLine();
        String[] strArray = input.split(" ");

        for (int i = (n - 1); i >= 0; i--) {
            int x = Integer.parseInt(strArray[i]);
            output.append(x);
            output.append(" ");
        }
        output.append("\n");

        try {
            system.out.print(output);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}

Compiler output:
Main.java:2: error: ';' expected
    pulic Static void Main(String[] args)throws IOException{
                ^
1 error
Language: Java

public class Main {
    public Static void Main(String[] args)throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringBuilder output = new StringBuilder();

        String input = br.readLine();
        int n = Integer.parseInt(input);
        input = br.readLine();
        String[] strArray = input.split(" ");

        for (int i = (n - 1); i >= 0; i--) {
            int x = Integer.parseInt(strArray[i]);
            output.append(x);
            output.append(" ");
        }
        output.append("\n");

        try {
            system.out.print(output);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}

Compiler output:
Main.java:2: error: <identifier> expected
    public Static void Main(String[] args)throws IOException{
                 ^
1 error
Language: Java

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

        String input = br.readLine();
        int n = Integer.parseInt(input);
        input = br.readLine();
        String[] strArray = input.split(" ");

        for (int i = (n - 1); i >= 0; i--) {
            int x = Integer.parseInt(strArray[i]);
            output.append(x);
            output.append(" ");
        }
        output.append("\n");

        try {
            system.out.print(output);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}

Compiler output:
Main.java:2: error: cannot find symbol
    public static void main(String[] args) throws IOException {
                                                  ^
  symbol:   class IOException
  location: class Main
Main.java:3: error: cannot find symbol
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        ^
  symbol:   class BufferedReader
  location: class Main
Main.java:3: error: cannot find symbol
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
                                ^
  symbol:   class BufferedReader
  location: class Main
Main.java:3: error: cannot find symbol
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
                                                   ^
  symbol:   class InputStreamReader
  location: class Main
Main.java:19: error: package system does not exist
            system.out.print(output);
                  ^
5 errors
Language: Java

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

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

        String input = br.readLine();
        int n = Integer.parseInt(input);
        input = br.readLine();
        String[] strArray = input.split(" ");

        for (int i = (n - 1); i >= 0; i--) {
            int x = Integer.parseInt(strArray[i]);
            output.append(x);
            if(i = 0){
                break;
            }
            output.append(" ");
        }
        output.append("\n");

        try {
            System.out.print(output);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}

Compiler output:
Main.java:18: error: incompatible types: int cannot be converted to boolean
            if(i = 0){
                 ^
1 error
Language: Java

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

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

        String input = br.readLine();
        int n = Integer.parseInt(input);
        input = br.readLine();
        String[] strArray = input.split(" ");

        for (int i = (n - 1); i >= 0; i--) {
            int x = Integer.parseInt(strArray[i]);
            output.append(x);
            if(i =??? 0){
                break;
            }
            output.append(" ");
        }
        output.append("\n");

        try {
            System.out.print(output);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}

Compiler output:
Main.java:18: error: illegal start of expression
            if(i =??? 0){
                  ^
Main.java:18: error: illegal start of expression
            if(i =??? 0){
                   ^
Main.java:18: error: illegal start of expression
            if(i =??? 0){
                    ^
Main.java:18: error: : expected
            if(i =??? 0){
                       ^
4 errors
Language: Java

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

public class Main {
	public static void main(String[] args) throws IOException{
		int num;
		String[] str;
		List<Integer> list;

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		StringBuilder builder = new StringBuilder();

		num = Integer.parseInt(br.readLine());
		str = br.readLine().split(" ");

		list =  new ArrayList<Integer>(){
			{
				for(int i = 0; i < num; i++){
					add(Integer.parseInt(str[i]));
				}
			}
		};

		list.sort(reverseOrder());
		for(int i: list){
			builder.append(String.valueOf(i + " "));
		}
		builder.delete(builder.length() - 1, builder.length());

		System.out.println(builder);
		br.close();
	}
}

Compiler output:
Main.java:27: error: cannot find symbol
		list.sort(reverseOrder());
		          ^
  symbol:   method reverseOrder()
  location: class Main
1 error
Language: Java

import java.io.InputStreamReader;
import java.util.Scanner;

public class Reversing {
	public static void main (String[] args){
		Scanner sc=new Scanner(new InputStreamReader(System.in));
		int n=sc.nextInt();
		int[] a=new int[n];
		for(int i=0;i<n;i++) a[i]=sc.nextInt();
		sc.close();
		for(int i=n-1;i>0;i--) System.out.print(a[i]+" ");
		System.out.print(a[0]);
	}
}

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

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.*;
class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		ArrayList<Integer> list = new ArrayList<Integer>();
		ArrayList<Integer> gyaku = new ArrayList<Integer>();
		String n =scan.nextLine();
		while(scan.hasNextInt()){
			int x = scan.nextInt();
			list.add(x);
		}
		//for(int i=0;i<list.size();i++){
		//	int size = list.size();
		//	int y = list.get(size - i);
		//	gyaku.add(y);
		//}
		for(int i=0;i<list.size();i++){
			int saizu = list.size();
			System.out.print(list.get(saizu - i));
			//if((saizu-i) == 0){
			//	System.out.println("");
			//}
			else{
				System.out.print(" ");
			}
		
		}
	}
}

Compiler output:
Main.java:25: error: 'else' without 'if'
			else{
			^
1 error
Language: Java

import java.util.Scanner;
class Main {
     
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
 
        int n = scanner.nextInt();
        int box[a];
        int [] box = new int [n];
         
        for(int a = n-1; 0 <= a; a--){
            box[a] = scanner.nextInt();
        }
            for(int a = 0; a <= n - 1; a++){
            System.out.print(box[a]+" ");
            }
        System.out.println();
    }
}

Compiler output:
Main.java:8: error: ']' expected
        int box[a];
                ^
Main.java:8: error: ';' expected
        int box[a];
                 ^
2 errors
Language: Java

import java.util.Scanner;
 
public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int n = scanner.nextInt();
        int[] box = new int[n];
 
        for(int a = 0; a < n;a++) {
            nums[a] = scanner.nextInt();
 
        }
 
        for(int a = n - 1;a >= 0 ;a--) {
            System.out.print(nums[a]);
            if(a != 0 ) {
                System.out.print(" ");
            }
        }
        System.out.println();
 
    }
}

Compiler output:
Main.java:11: error: cannot find symbol
            nums[a] = scanner.nextInt();
            ^
  symbol:   variable nums
  location: class Main
Main.java:16: error: cannot find symbol
            System.out.print(nums[a]);
                             ^
  symbol:   variable nums
  location: class Main
2 errors
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.List;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;

public class Main{
    public static void main(String[] args) {
	try {
	    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	    List<String> lines = new ArrayList<String>();

	    for (String line = br.readLine(); line != null; line = br.readLine()) {
		lines.add(line);
	    }
	    br.close();

	    String[] splits = lines.get(1).split(" ");
	    StringBuilder sb = new StringBuilder();
	    for (int i = splits.length(); i > 0; i--) {
		sb.append(splits[i]);
		sb.append(" ");
	    }

	    System.out.println(sb.toString());
	    System.exit(0);

	} catch (Exception e) {
	    System.out.println(e.getMessage());
	    System.out.println(Arrays.toString(e.getStackTrace()));
	    System.exit(0);
	}
    }
}

Compiler output:
Main.java:22: error: cannot find symbol
	    for (int i = splits.length(); i > 0; i--) {
	                       ^
  symbol:   method length()
  location: variable splits of type String[]
1 error
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.List;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;

public class Main{
    public static void main(String[] args) {
	try {
	    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	    List<String> lines = new ArrayList<String>();

	    for (String line = br.readLine(); line != null; line = br.readLine()) {
		lines.add(line);
	    }

	    String[] splits = lines.get(1).split(" ");
	    StringBuilder sb = new StringBuilder();
	    for (int i = splits.length; i > 0; i--) {
		sb.append(splits[i]);
		sb.append(" ");
	    }

	    String r = sb.toString();
	    r = r.substring(0, r.length()-1);

	    System.out.println(r);
	    System.exit(0);

	} catch (Exception e) {
	    System.out.println(e.getMessage());
	    System.out.println(Arrays.toString(e.getStackTrace()));
	    System.exit(0);
	} finally {
	    br.close();
	}
    }
}

Compiler output:
Main.java:37: error: cannot find symbol
	    br.close();
	    ^
  symbol:   variable br
  location: class Main
1 error
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.List;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;

public class Main{
    public static void main(String[] args) {

	BufferedReader br = null;

	try {
	    br = new BufferedReader(new InputStreamReader(System.in));
	    List<String> lines = new ArrayList<String>();

	    for (String line = br.readLine(); line != null; line = br.readLine()) {
		lines.add(line);
	    }

	    String[] splits = lines.get(1).split(" ");
	    StringBuilder sb = new StringBuilder();
	    for (int i = splits.length; i > 0; i--) {
		sb.append(splits[i]);
		sb.append(" ");
	    }

	    String r = sb.toString();
	    r = r.substring(0, r.length()-1);

	    System.out.println(r);
	    System.exit(0);

	} catch (Exception e) {
	    System.out.println(e.getMessage());
	    System.out.println(Arrays.toString(e.getStackTrace()));
	    System.exit(0);
	} finally {
	    br.close();
	}
    }
}

Compiler output:
Main.java:40: error: unreported exception IOException; must be caught or declared to be thrown
	    br.close();
	            ^
1 error
Language: Java

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

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

  int n = scan.nextInt();
  int numbers[];
  int temp;
  for(int i=0;i<n;i++){
    numbers[i] = scan.nextInt();
  }
  for(int j=0;j<n/2;j++){
    temp = numbers[j];
    numbers[j] = numbers[n-j];
    numbers[n-j] = temp;
  }
  }
}

Compiler output:
Main.java:12: error: variable numbers might not have been initialized
    numbers[i] = scan.nextInt();
    ^
Main.java:15: error: variable numbers might not have been initialized
    temp = numbers[j];
           ^
2 errors
Language: Java

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

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

  int n = scan.nextInt();
  int numbers[];
  int temp;
  for(int i=1;i<=n;i++){
    numbers[i] = {scan.nextInt();}
  }
  for(int j=1;j<=n/2;j++){
    temp = numbers[j];
    numbers[j] = numbers[n-j];
    numbers[n-j] = temp;
  }
  }
}

Compiler output:
Main.java:12: error: illegal start of expression
    numbers[i] = {scan.nextInt();}
                 ^
1 error
Language: Java

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

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

  int n = scan.nextInt();
  int numbers[];
  int temp;
  for(int i=0;i<n;i++){
    numbers[i] = {scan.nextInt();}
  }
  for(int j=0;j<n/2;j++){
    temp = numbers[j];
    numbers[j] = numbers[n-j];
    numbers[n-j] = temp;
  }
  }
}

Compiler output:
Main.java:12: error: illegal start of expression
    numbers[i] = {scan.nextInt();}
                 ^
1 error
Language: Java

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

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

  int n = scan.nextInt();
  int numbers[];
  int temp;
  for(int i=0;i<n;i++){
    numbers[i] = scan.nextInt();
  }
  for(int j=0;j<n/2;j++){
    temp = numbers[j];
    numbers[j] = numbers[n-j-1];
    numbers[n-j-1] = temp;
  }
  }
}

Compiler output:
Main.java:12: error: variable numbers might not have been initialized
    numbers[i] = scan.nextInt();
    ^
Main.java:15: error: variable numbers might not have been initialized
    temp = numbers[j];
           ^
2 errors
Language: Java

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

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

  int n = scan.nextInt();
  int numbers[];
  int temp;
  for(int i=0;i<n;i++){
    numbers[i] = {scan.nextInt()};
  }
  for(int j=0;j<n/2;j++){
    temp = numbers[j];
    numbers[j] = numbers[n-j-1];
    numbers[n-j-1] = temp;
  }
  }
}

Compiler output:
Main.java:12: error: illegal start of expression
    numbers[i] = {scan.nextInt()};
                 ^
Main.java:12: error: ';' expected
    numbers[i] = {scan.nextInt()};
                                ^
2 errors
Language: Java

import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);

int[] a = new int[5];

a[0] = sc.nextInt();
a[1] = sc.nextInt();
a[2] = sc.nextInt();
a[3] = sc.nextInt();
a[4] = sc.nextInt();

System.out.println(a[4] + " " + a[3] + " " + [2] + " " + [1] + " " + [0]);

Compiler output:
Main.java:14: error: illegal start of expression
System.out.println(a[4] + " " + a[3] + " " + [2] + " " + [1] + " " + [0]);
                                             ^
Main.java:14: error: illegal start of expression
System.out.println(a[4] + " " + a[3] + " " + [2] + " " + [1] + " " + [0]);
                                                         ^
Main.java:14: error: not a statement
System.out.println(a[4] + " " + a[3] + " " + [2] + " " + [1] + " " + [0]);
                                                       ^
Main.java:14: error: reached end of file while parsing
System.out.println(a[4] + " " + a[3] + " " + [2] + " " + [1] + " " + [0]);
                                                                          ^
4 errors
Language: Java

import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);

int[] a = new int[5];

a[0] = sc.nextInt();
a[1] = sc.nextInt();
a[2] = sc.nextInt();
a[3] = sc.nextInt();
a[4] = sc.nextInt();

System.out.println(a[4] + " " + a[3] + " " + a[2] + " " + a[1] + " " + a[0]);

Compiler output:
Main.java:14: error: reached end of file while parsing
System.out.println(a[4] + " " + a[3] + " " + a[2] + " " + a[1] + " " + a[0]);
                                                                             ^
1 error
Language: Java

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

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

  int n = scan.nextInt();
  int numbers[];
  int temp;
  for(int i=0;i<n;i++){
    numbers[i] = scan.nextInt();
  }
  for(int j=n-1;j>=0;j--){
    System.out.println(numbers[j] + " ");
  }
  }

}

Compiler output:
Main.java:12: error: variable numbers might not have been initialized
    numbers[i] = scan.nextInt();
    ^
Main.java:15: error: variable numbers might not have been initialized
    System.out.println(numbers[j] + " ");
                       ^
2 errors
Language: Java

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

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

  int n = scan.nextInt();
  int numbers[n];
  for(int i=0;i<n;i++){
    numbers[i] = scan.nextInt();
  }
  for(int j=n-1;j>=0;j--){
    System.out.println(numbers[j] + " ");
  }
  }

}

Compiler output:
Main.java:9: error: ']' expected
  int numbers[n];
              ^
Main.java:9: error: ';' expected
  int numbers[n];
               ^
2 errors
Language: Java

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

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

  int n = scan.nextInt();
  int numbers[];
  for(int i=0;i<n;i++){
    numbers[i] = scan.nextInt();
  }
  for(int j=n-1;j>=0;j--){
    System.out.println(numbers[j] + " ");
  }
  }

}

Compiler output:
Main.java:11: error: variable numbers might not have been initialized
    numbers[i] = scan.nextInt();
    ^
Main.java:14: error: variable numbers might not have been initialized
    System.out.println(numbers[j] + " ");
                       ^
2 errors
Language: Java

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

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

  int n = scan.nextInt();
  int numbers[i];
  for(int i=0;i<n;i++){
    numbers[i] = scan.nextInt();
  }
  for(int j=n-1;j>=0;j--){
    System.out.println(numbers[j] + " ");
  }
  }

}

Compiler output:
Main.java:9: error: ']' expected
  int numbers[i];
              ^
Main.java:9: error: ';' expected
  int numbers[i];
               ^
2 errors
Language: Java

import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);

int n = scan.nextInt();
int[] a = new int[n];

for(int i = n;i>0;i--){
System.out.print(a[i]);
System,out.print(" ");
}
}}}

Compiler output:
Main.java:11: error: not a statement
System,out.print(" ");
^
Main.java:11: error: ';' expected
System,out.print(" ");
      ^
Main.java:13: error: class, interface, enum, or record expected
}}}
  ^
3 errors
Language: Java

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

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

  int n = scan.nextInt();
  int[] numbers;
  for(int i=0;i<n;i++){
    numbers[i] = scan.nextInt();
  }
  for(int j=n-1;j>=0;j--){
    System.out.println(numbers[j] + " ");
  }
  }

}

Compiler output:
Main.java:11: error: variable numbers might not have been initialized
    numbers[i] = scan.nextInt();
    ^
Main.java:14: error: variable numbers might not have been initialized
    System.out.println(numbers[j] + " ");
                       ^
2 errors
Language: Java

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

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

  int n = scan.nextInt();

  for(int i=0;i<n;i++){
    int[i] numbers = scan.nextInt();
  }
  for(int j=n-1;j>=0;j--){
    System.out.println(numbers[j] + " ");
  }
  }

}

Compiler output:
Main.java:11: error: ']' expected
    int[i] numbers = scan.nextInt();
        ^
Main.java:11: error: ';' expected
    int[i] numbers = scan.nextInt();
         ^
2 errors
Language: Java

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

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

  int n = scan.nextInt();
  int[] numbers = new.int[];

  for(int i=n-1;i>=0;i--){
    System.out.println(numbers[i] + " ");
  }
  }

}

Compiler output:
Main.java:9: error: <identifier> expected
  int[] numbers = new.int[];
                     ^
Main.java:9: error: <identifier> expected
  int[] numbers = new.int[];
                      ^
Main.java:9: error: not a statement
  int[] numbers = new.int[];
                         ^
3 errors
Language: Java

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

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

  int n = scan.nextInt();
  int[] numbers = new int[];

  for(int i=n-1;i>=0;i--){
    System.out.println(numbers[i] + " ");
  }
  }

}

Compiler output:
Main.java:9: error: array dimension missing
  int[] numbers = new int[];
                           ^
1 error
Language: Java

import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);

int n = scan.nextInt();
int[] a = new int[n];
for(int j = 0;j<n-1;j++){
a[j] = scan.nextInt();}
for(int i = j-1;i>0;i--){
System.out.println(a[i] + " ");
}
System.out.print(a[0]);
}}

Compiler output:
Main.java:10: error: cannot find symbol
for(int i = j-1;i>0;i--){
            ^
  symbol:   variable j
  location: class Main
1 error
Language: Java

import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);

int n = scan.nextInt();
int[] a = new int[n];
for(int j = 0;j<n-1;j++){
a[j]= scan.nextInt();}
for(int i = j-1;i>0;i--){
System.out.println(a[i] + " ");
}
System.out.print(a[0]);
}}

Compiler output:
Main.java:10: error: cannot find symbol
for(int i = j-1;i>0;i--){
            ^
  symbol:   variable j
  location: class Main
1 error
Language: Java

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

class Main{
  public static void main(String[] args) {
  int numbers[]  = new int(n);
  Scanner scan = new Scanner(System.in);

  int n = scan.nextInt();

  for(int i=n;i>=0;i--){
    numbers[i] = scan.nextInt();
}
  for(int j=n-1;j>=0;j--){
    System.out.println(numbers[j] + " ");
  }
  }

}

Compiler output:
Main.java:6: error: '[' expected
  int numbers[]  = new int(n);
                          ^
Main.java:6: error: ']' expected
  int numbers[]  = new int(n);
                             ^
2 errors
Language: Java

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

class Main{
  public static void main(String[] args) {
  int k;
  int numbers[]  = new int(k);
  Scanner scan = new Scanner(System.in);

  int n = scan.nextInt();
  k = n;
  for(int i=n;i>=0;i--){
    numbers[i] = scan.nextInt();
}
  for(int j=n-1;j>=0;j--){
    System.out.println(numbers[j] + " ");
  }
  }

}

Compiler output:
Main.java:7: error: '[' expected
  int numbers[]  = new int(k);
                          ^
Main.java:7: error: ']' expected
  int numbers[]  = new int(k);
                             ^
2 errors
Language: Java

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

class Main{
  public static void main(String[] args) {
  int k;
  int numbers[]  = new int[k];
  Scanner scan = new Scanner(System.in);

  int n = scan.nextInt();
  k = n;
  for(int i=n;i>=0;i--){
    numbers[i] = scan.nextInt();
}
  for(int j=n-1;j>=0;j--){
    System.out.println(numbers[j] + " ");
  }
  }

}

Compiler output:
Main.java:7: error: variable k might not have been initialized
  int numbers[]  = new int[k];
                           ^
1 error
Language: Java

import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);

int n = scan.nextInt();
int[] a = new int[n];
for(int j = 0;j<n;j++){
a[j]= scan.nextInt();}
for(int i = j-1;i>0;i--){
System.out.println(a[i] + " ");
}
System.out.print(a[0]);
}}

Compiler output:
Main.java:10: error: cannot find symbol
for(int i = j-1;i>0;i--){
            ^
  symbol:   variable j
  location: class Main
1 error
Language: Java

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

class Main{
  public static void main(String[] args) {

  Scanner scan = new Scanner(System.in);

  int k;
  int numbers[]  = new int[k];
  int n = scan.nextInt();
  k = n;
  for(int i=n;i>=0;i--){
    numbers[i] = scan.nextInt();
}
  for(int j=n-1;j>=0;j--){
    System.out.println(numbers[j] + " ");
  }
  }

}

Compiler output:
Main.java:10: error: variable k might not have been initialized
  int numbers[]  = new int[k];
                           ^
1 error
Language: Java

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

class Main{
  public static void main(String[] args) {
  int k;
  int[] numbers  = new int[k];
  Scanner scan = new Scanner(System.in);


  int n = scan.nextInt();
  k = n;
  for(int i=n;i>=0;i--){
    numbers[i] = scan.nextInt();
}
  for(int j=n-1;j>=0;j--){
    System.out.println(numbers[j] + " ");
  }
  }

}

Compiler output:
Main.java:7: error: variable k might not have been initialized
  int[] numbers  = new int[k];
                           ^
1 error
Language: Java

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

class Main{
  public static void main(String[] args) {
  int k;
  int numbers[]  = new int[k];
  Scanner scan = new Scanner(System.in);


  int n = scan.nextInt();
  k = n;
  for(int i=n;i>=0;i--){
    numbers[i] = scan.nextInt();
}
  for(int j=n-1;j>=0;j--){
    System.out.println(numbers[j] + " ");
  }
  }

}

Compiler output:
Main.java:7: error: variable k might not have been initialized
  int numbers[]  = new int[k];
                           ^
1 error
Language: Java

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

class Main{
  public static void main(String[] args) {

  Scanner scan = new Scanner(System.in);


  int n = scan.nextInt();
  k = n;
  int k;
  int numbers[]  = new int[k];
  for(int i=n;i>=0;i--){
    numbers[i] = scan.nextInt();
}
  for(int j=n-1;j>=0;j--){
    System.out.println(numbers[j] + " ");
  }
  }

}

Compiler output:
Main.java:11: error: cannot find symbol
  k = n;
  ^
  symbol:   variable k
  location: class Main
1 error
Language: Java

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

class Main{
  public static void main(String[] args) {

  Scanner scan = new Scanner(System.in);


  int n = scan.nextInt();
  int k;
  int numbers[]  = new int[k];
  k = n;

  for(int i=n;i>=0;i--){
    numbers[i] = scan.nextInt();
}
  for(int j=n-1;j>=0;j--){
    System.out.println(numbers[j] + " ");
  }
  }

}

Compiler output:
Main.java:12: error: variable k might not have been initialized
  int numbers[]  = new int[k];
                           ^
1 error
Language: Java

import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);

int n = scan.nextInt();
int[] a = new int[n];
for(int j = 0;j<n;j++){
a[j]= scan.nextInt();}
for(int i = j-1;i>=0;i--){
if(i>0){System.out.println(a[i] + " ");
}
else{System.out.print(a[0]);}
}}

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

import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);

int n = scan.nextInt();
int[] a = new int[n];
for(int j = 0;j<n;j++){
a[j]= scan.nextInt();}
for(int i = j-1;i>=0;i--){
if(i>0){System.out.println(a[i] + " ");
}
else{System.out.print(a[0]);}
}}}

Compiler output:
Main.java:10: error: cannot find symbol
for(int i = j-1;i>=0;i--){
            ^
  symbol:   variable j
  location: class Main
1 error
Language: Java

import java.io.*;
public class TP1_6_A {
    public static void main(String[] args) throws IOException{
        BufferedReader buf=new BufferedReader(new InputStreamReader(System.in));
        StringBuilder sbu=new StringBuilder();
        int x=Integer.parseInt(buf.readLine());
        String[] num=buf.readLine().split(" ");
            for(int i=x-1;0<=i;i--){
                sbu.append(num[i]+" ");
                }
            int y=sbu.length();
            sbu.deleteCharAt(y-1);
            System.out.println(sbu);
            }
        }

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

import java.util.Scanner;
	public class ReversingNumber{
		public static void main(String[] args) {
			int i, j;

			Scanner stdin = new Scanner(System.in);
			int n = stdin.nextInt();

			int [] num = new int[n];
			for ( i = 0; i < n; i++ ){
				num[i] = stdin.nextInt();
			}

			int tmp;
			for ( i = 0; i < n; i++ ){
				for( j = n-1; j > i; j-- ){
					if ( num[j] > num[j-1] ){
						tmp = num[j];
						num[j] = num[j-1];
						num[j-1] = tmp;
					}
				}
			}

			System.out.print(num[0]);
			for ( i = 1; i < n; i++ ){
				System.out.print(" " + num[i]);
			}
			}

	}

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

import java.util.*;

public class Exam04_05_03{
	public static void main(String[] args) throws Exception{
		Scanner sc = new Scanner(System.in)
                String str=sc.nextLine();
                String str=sc.nextLine();
		String[] s=str.split(" ");
		for(int i=(s.length-1);i>=0;i--){
			System.out.print(s[i]);
		}
	}
}

Compiler output:
Main.java:5: error: ';' expected
		Scanner sc = new Scanner(System.in)
		                                   ^
1 error