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

import java.util.Scanner;
public class Main
{

  public static void main(String[] args)
  {
    int Max=-1,min=30000,sum=0,n,temp;
    Scanner in=new Scanner(System.in);
	
	n=in.nextInt();
	for(int i=0;i<n;i++)
	{
		temp=in.nextInt();
		if(temp>Max)
			Max=temp;
		if(temp<min)
			min=temp;
		sum+=temp;		
	}
	System.out.println(min + " " + max + " " + sum);
        
    
  }

}

Compiler output:
Main.java:20: error: cannot find symbol
	System.out.println(min + " " + max + " " + sum);
	                               ^
  symbol:   variable max
  location: class Main
1 error
Language: Java

import java.util.Scanner;

public class Main
{
  public static void main(Strings[] args)
  {
    int Max=-1,min=30000,sum=0,n,temp;
    Scanner in=new Scanner(System.in);
	
	n=in.nextInt();
	for(int i=0;i<n;i++)
	{
		temp=in.nextInt();
		if(temp>Max)
			Max=temp;
		if(temp<min)
			min=temp;
		sum+=temp;		
	}
	System.out.println(min + " " + max + " " + sum);
    
  }

}

Compiler output:
Main.java:5: error: cannot find symbol
  public static void main(Strings[] args)
                          ^
  symbol:   class Strings
  location: class Main
Main.java:20: error: cannot find symbol
	System.out.println(min + " " + max + " " + sum);
	                               ^
  symbol:   variable max
  location: class Main
2 errors
Language: Java

import java.util.Scanner;

public class Main
{
  public static void main(String[] args)
  {
    int Max=-1,min=30000,sum=0,n,temp;
    Scanner in=new Scanner(System.in);
	
	n=in.nextInt();
	for(int i=0;i<n;i++)
	{
		temp=in.nextInt();
		if(temp>Max)
			Max=temp;
		if(temp<min)
			min=temp;
		sum+=temp;		
	}
	System.out.println(min + " " + max + " " + sum);
    
  }

}

Compiler output:
Main.java:20: error: cannot find symbol
	System.out.println(min + " " + max + " " + sum);
	                               ^
  symbol:   variable max
  location: class Main
1 error
Language: Java

import java.util.Scanner;

class Main
{
  public static void main(String[] args)
  {
    int Max=-1,min=30000,sum=0,n,temp;
    Scanner in=new Scanner(System.in);
	
	n=in.nextInt();
	for(int i=0;i<n;i++)
	{
		temp=in.nextInt();
		if(temp>Max)
			Max=temp;
		if(temp<min)
			min=temp;
		sum+=temp;		
	}
	System.out.println(min + " " + max + " " + sum);
    
  }

}

Compiler output:
Main.java:20: error: cannot find symbol
	System.out.println(min + " " + max + " " + sum);
	                               ^
  symbol:   variable max
  location: class Main
1 error
Language: Java

import java.util.Scanner;
import java.lang.Math;
public class MinMaxAndSum{
    public static void main(String[] args) {
	Scanner scan = new Scanner(System.in);
	int n = Integer.parseInt(scan.nextLine());
	String input = scan.nextLine();
	String[] inputs = input.split(" ");
	int[] numbers = new int[n];
	for (int i = 0; i < n; i++) {
	    numbers[i] = Integer.parseInt(inputs[i]);
	}
	int min = 1000000;
	int max = -1000000;
	long sum = 0;
	for (int i = 0; i < n; i++) {
	    if (min > numbers[i]) {
		min = numbers[i];
	    }
	    if (max < numbers[i]) {
		max = numbers[i];
	    }
	    sum += (long)numbers[i];
	}
	System.out.println(min + " " + max + " " + sum);
    }
}

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

import java.util.Scanner;

public class Main { 
  public static void main(String[] args){
    int max = Integer.MIN_VALUE;
    int min = Integer.MIN_VALUE;
    int sum = 0;
    try (Scanner stdin = new Scanner(System.in)){
        int n = stdin.nextInt();
        for (int i=1; i<n=; i++){
	    int number = stdin.nextInt();	
	    if (number > max) {
		max = number;
	    } 
	    if (number < min) {
		min = number;
  	    }
	    sum += number;
        }     
    } catch (Exception e) {
        e.printStackTrace();
    }
    System.out.printf("%d %d %d",min,max,sum);
  }
}

Compiler output:
Main.java:10: error: illegal start of expression
        for (int i=1; i<n=; i++){
                          ^
1 error
Language: Java

import java.util.Scanner;


classMain{
	@SuppressWarnings("resource")
	public static void main(String[] args) {
		//??\????????£?¨?
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int[] hako = new int[n];
		int sum = 0;
		//??°??????????????????hako[0]???????????\???
		for(int i = 0; i < n; i++){
			hako[i] = scan.nextInt();
			sum = sum + hako[i];
			System.out.println(sum);
		}
		
		//?????????????????????hako[0] < hako[n]
		 for(int i=0;i<hako.length-1;i++){
	            for(int j=hako.length-1;j>i;j--){
	                if(hako[j]<hako[j-1]){
	                      int t=hako[j];
	                      hako[j]=hako[j-1];
	                      hako[j-1]=t;
	                }
	            }
	        }
		//?¨???? hako[0]???????°??????????
		//hako[n]????????§??????????????£??\
		int syo = hako[0];
		int dai = hako.length;
		
		//??????
		System.out.println(syo + " " + dai + " " + sum);
	}
}

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

package test01;

import java.util.Scanner;


class Main{
	@SuppressWarnings("resource")
	public static void main(String[] args) {
		//??\????????£?¨?
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int[] hako = new int[n];
		long sum = 0;
		int max = -1000;
		int min = 1000;
		

		for(int i = 0; i < n; i++){
			hako[i] = scan.nextInt();
			sum = sum + hako[i];
		}
		
		//??\?????????

		for (int i=0; i<hako.length; i++) {
			if (max < hako[i]) {	
				max = hako[i];
			}
			if (min > hako[i]) {
				min = hako[i];
			}
		}
		 
		//??????
		System.out.println(min + " " + max + " " + sum);
	}

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

import java.util.Scanner;

class Main
{
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int num = sc.nextInt();
    int min, max;
    long sum;
    int[] a = new int[num];

    min = max = sum = a[0] = sc.nextInt();

    for(int i=1 ; i < num ; i++){
      a[i] = sc.nextInt();
      if(a[i]<min) min = a[i];
      if(a[i]>max) max = a[i];
      sum += a[i];
    }
      System.out.println(min+" "+max+" "+sum);
  }
}

Compiler output:
Main.java:12: error: incompatible types: possible lossy conversion from long to int
    min = max = sum = a[0] = sc.nextInt();
                    ^
1 error
Language: Java

import java.util.Scanner;
 
class Main{
  public static void main(String[] arg){
    int n, max, min, input;
    long sum = 0;

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

    for(int i=0; i<n; i++){
        input = in.nextInt();
        if(input > max){
            max = input;
        }else if( input < min){
            min = input;
        }
        sum += input;
    }
    
    System.out.println(min + " " + max + " " + sum);
  }
}

Compiler output:
Main.java:13: error: variable max might not have been initialized
        if(input > max){
                   ^
Main.java:15: error: variable min might not have been initialized
        }else if( input < min){
                          ^
Main.java:21: error: variable min might not have been initialized
    System.out.println(min + " " + max + " " + sum);
                       ^
Main.java:21: error: variable max might not have been initialized
    System.out.println(min + " " + max + " " + sum);
                                   ^
4 errors
Language: Java

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

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

        int min = 1000001, max = -1000001;
        long sum = 0;
        String[] strArr = str.split(" ");
        for(str str : strArr)
        {
            int i = Integer.parseInt(str);
            if(i < min)
            {
                min = i;
            }
            if(i > max)
            {
                max = i;
            }
            sum += i;
        }
        
        System.out.println(min + " " + max + " " + sum);
    }
}

Compiler output:
Main.java:12: error: cannot find symbol
        for(str str : strArr)
            ^
  symbol:   class str
  location: class Main
Main.java:12: error: variable str is already defined in method main(String[])
        for(str str : strArr)
                ^
2 errors
Language: Java

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

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

        int min = 1000001, max = -1000001;
        long sum = 0;
        String[] strArr = str.split(" ");
        for(String str : strArr)
        {
            int i = Integer.parseInt(str);
            if(i < min)
            {
                min = i;
            }
            if(i > max)
            {
                max = i;
            }
            sum += i;
        }
        
        System.out.println(min + " " + max + " " + sum);
    }
}

Compiler output:
Main.java:12: error: variable str is already defined in method main(String[])
        for(String str : strArr)
                   ^
1 error
Language: Java

import java.io.*

class Main {
    public static void main(String[] args) {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        
        int n = Integer.parseInt(br.readLine());
        String[] str = br.readLine().split(" ");
        
        long sum = 0;
        int a = 0;
        int max = -1000000;
        int min = 1000000;

        for (int i =0; i < n; i++) {
            a = Integer.parseInt(str[i]);
            if (a > max)max = a;
            if (a < min)min = a;
            sum += a;
        }
        System.out.println(min + " " + max + " " + sum);
    }
}

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

import java.io.*;

class Main {
    public static void main(String[] args) {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        
        int n = Integer.parseInt(br.readLine());
        String[] str = br.readLine().split(" ");
        
        long sum = 0;
        int a = 0;
        int max = -1000000;
        int min = 1000000;

        for (int i =0; i < n; i++) {
            a = Integer.parseInt(str[i]);
            if (a > max)max = a;
            if (a < min)min = a;
            sum += a;
        }
        System.out.println(min + " " + max + " " + sum);
    }
}

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

import java.util.*;

//???????????????
public class D {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        int[] a = new int[n];
        int max, min, sum = 0;

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

        max = a[0];
        min = a[0];

        for (int num : a) {
            if (max < num) {
                max = num;
            } else if (min > num) {
                min = num;
            }
            sum += num;
        }
        System.out.printf("%d %d %d", min, max, sum);
    }
}

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

import java.util.Scanner;
import java.util.Arrays;

public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        int[] a = new int[n];
        int max, min, sum = 0;

        for(int i = 0; i < a.length; i++) {
            input = scan.nextInt();
            sum += input;
        }

        Arrays.sort(a);
        max = a[n-1];
        min = a[0];

        System.out.println(min + " " + max + " " + sum);
    }
}

Compiler output:
Main.java:12: error: cannot find symbol
            input = scan.nextInt();
            ^
  symbol:   variable input
  location: class Main
Main.java:13: error: cannot find symbol
            sum += input;
                   ^
  symbol:   variable input
  location: class Main
2 errors
Language: Java

import java.util.Scanner;
import java.util.Arrays;

public class D {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        int[] a = new int[n];
        int max, min, sum = 0;

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

        Arrays.sort(a);
        max = a[n - 1];
        min = a[0];

        System.out.println(min + " " + max + " " + sum);
    }
}

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

import java.util.Scanner;
import java.util.Arrays;

public 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++) {
            a[i] = scan.nextInt();
            sum += a[i];
        }

        Arrays.sort(a);
        max = a[n - 1];
        min = a[0];

        System.out.println(min + " " + max + " " + sum);
    }
}

Compiler output:
Main.java:10: error: cannot find symbol
            a[i] = scan.nextInt();
            ^
  symbol:   variable a
  location: class Main
Main.java:11: error: cannot find symbol
            sum += a[i];
            ^
  symbol:   variable sum
  location: class Main
Main.java:11: error: cannot find symbol
            sum += a[i];
                   ^
  symbol:   variable a
  location: class Main
Main.java:14: error: cannot find symbol
        Arrays.sort(a);
                    ^
  symbol:   variable a
  location: class Main
Main.java:15: error: cannot find symbol
        max = a[n - 1];
        ^
  symbol:   variable max
  location: class Main
Main.java:15: error: cannot find symbol
        max = a[n - 1];
              ^
  symbol:   variable a
  location: class Main
Main.java:16: error: cannot find symbol
        min = a[0];
        ^
  symbol:   variable min
  location: class Main
Main.java:16: error: cannot find symbol
        min = a[0];
              ^
  symbol:   variable a
  location: class Main
Main.java:18: error: cannot find symbol
        System.out.println(min + " " + max + " " + sum);
                           ^
  symbol:   variable min
  location: class Main
Main.java:18: error: cannot find symbol
        System.out.println(min + " " + max + " " + sum);
                                       ^
  symbol:   variable max
  location: class Main
Main.java:18: error: cannot find symbol
        System.out.println(min + " " + max + " " + sum);
                                                   ^
  symbol:   variable sum
  location: class Main
11 errors
Language: Java

import java.util.*;

public class D {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        int[] a = new int[n];
        int max, min, sum = 0;

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

        Arrays.sort(a);
        max = a[n - 1];
        min = a[0];

        System.out.println(min + " " + max + " " + sum);
    }
}

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

import java.util.Scanner;
import java.util.Arrays;
 
public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        int[] a = new int[n];
        int max, min, sum = 0;
 
        for(int i = 0; i < n; i++) {
            a[i] = scan.nextInt();
            sum += a[i];
        }
 
        Arrays.sort(a);
        min = a[0];

        Collections.sort(a);
        max = a[0];
 
        System.out.println(min + " " + max + " " + sum);
    }
}

Compiler output:
Main.java:19: error: cannot find symbol
        Collections.sort(a);
        ^
  symbol:   variable Collections
  location: class Main
1 error
Language: Java

import java.util.Scanner;
import java.util.Arrays;
import java.util.Collections;
 
public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        int[] a = new int[n];
        int max, min, sum = 0;
 
        for(int i = 0; i < n; i++) {
            a[i] = scan.nextInt();
            sum += a[i];
        }
 
        Arrays.sort(a);
        min = a[0];

        Collections.sort(a);
        max = a[0];
 
        System.out.println(min + " " + max + " " + sum);
    }
}

Compiler output:
Main.java:20: error: no suitable method found for sort(int[])
        Collections.sort(a);
                   ^
    method Collections.<T#1>sort(List<T#1>) is not applicable
      (cannot infer type-variable(s) T#1
        (argument mismatch; int[] cannot be converted to List<T#1>))
    method Collections.<T#2>sort(List<T#2>,Comparator<? super T#2>) is not applicable
      (cannot infer type-variable(s) T#2
        (actual and formal argument lists differ in length))
  where T#1,T#2 are type-variables:
    T#1 extends Comparable<? super T#1> declared in method <T#1>sort(List<T#1>)
    T#2 extends Object declared in method <T#2>sort(List<T#2>,Comparator<? super T#2>)
1 error
Language: Java

import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        int[] a = new int[n];
        int max, min, sum = 0;
 
        for(int i = 0; i < n; i++) {
            a[i] = scan.nextInt();
            sum += a[i];
        }
 
        Arrays.sort(a);
        min = a[0];

        Arrays.sort(a, Collections.reverseOrder());
        max = a[0];
 
        System.out.println(min + " " + max + " " + sum);
    }
}

Compiler output:
Main.java:18: error: no suitable method found for sort(int[],Comparator<Object>)
        Arrays.sort(a, Collections.reverseOrder());
              ^
    method Arrays.<T#1>sort(T#1[],Comparator<? super T#1>) is not applicable
      (inference variable T#1 has incompatible bounds
        equality constraints: int
        upper bounds: Object)
    method Arrays.<T#2>sort(T#2[],int,int,Comparator<? super T#2>) is not applicable
      (cannot infer type-variable(s) T#2
        (actual and formal argument lists differ in length))
  where T#1,T#2 are type-variables:
    T#1 extends Object declared in method <T#1>sort(T#1[],Comparator<? super T#1>)
    T#2 extends Object declared in method <T#2>sort(T#2[],int,int,Comparator<? super T#2>)
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
1 error
Language: Java

import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        int[] a = new int[n];
        int max, min, sum = 0;
 
        for(int i = 0; i < n; i++) {
            a[i] = scan.nextInt();
            sum += a[i];
        }
 
        Arrays.sort(a);
        min = a[0];

        Collections.sort(a);
        Collections.reverse(a);
        max = a[0];
 
        System.out.println(min + " " + max + " " + sum);
    }
}

Compiler output:
Main.java:18: error: no suitable method found for sort(int[])
        Collections.sort(a);
                   ^
    method Collections.<T#1>sort(List<T#1>) is not applicable
      (cannot infer type-variable(s) T#1
        (argument mismatch; int[] cannot be converted to List<T#1>))
    method Collections.<T#2>sort(List<T#2>,Comparator<? super T#2>) is not applicable
      (cannot infer type-variable(s) T#2
        (actual and formal argument lists differ in length))
  where T#1,T#2 are type-variables:
    T#1 extends Comparable<? super T#1> declared in method <T#1>sort(List<T#1>)
    T#2 extends Object declared in method <T#2>sort(List<T#2>,Comparator<? super T#2>)
Main.java:19: error: incompatible types: int[] cannot be converted to List<?>
        Collections.reverse(a);
                            ^
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
2 errors
Language: Java

import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        int[] a = new int[n];
        int max, min, sum = 0;
 
        for(int i = 0; i < n; i++) {
            a[i] = scan.nextInt();
            sum += a[i];
        }

        Collections.sort(a);
        min = a[0];
        Collections.reverse(a);
        max = a[0];
 
        System.out.println(min + " " + max + " " + sum);
    }
}

Compiler output:
Main.java:15: error: no suitable method found for sort(int[])
        Collections.sort(a);
                   ^
    method Collections.<T#1>sort(List<T#1>) is not applicable
      (cannot infer type-variable(s) T#1
        (argument mismatch; int[] cannot be converted to List<T#1>))
    method Collections.<T#2>sort(List<T#2>,Comparator<? super T#2>) is not applicable
      (cannot infer type-variable(s) T#2
        (actual and formal argument lists differ in length))
  where T#1,T#2 are type-variables:
    T#1 extends Comparable<? super T#1> declared in method <T#1>sort(List<T#1>)
    T#2 extends Object declared in method <T#2>sort(List<T#2>,Comparator<? super T#2>)
Main.java:17: error: incompatible types: int[] cannot be converted to List<?>
        Collections.reverse(a);
                            ^
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
2 errors
Language: Java

import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        int[] a = new int[n];
        int max, min, sum = 0;
 
        for(int i = 0; i < n; i++) {
            a[i] = scan.nextInt();
            sum += a[i];
        }

        Arrays.sort(a);
        min = a[0];
        Array.Reverse(a);
        max = a[0];
 
        System.out.println(min + " " + max + " " + sum);
    }
}

Compiler output:
Main.java:17: error: cannot find symbol
        Array.Reverse(a);
        ^
  symbol:   variable Array
  location: class Main
1 error
Language: Java

import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        int[] a = new int[n];
        int max, min, sum = 0;
 
        for(int i = 0; i < n; i++) {
            a[i] = scan.nextInt();
            sum += a[i];
        }

        Arrays.sort(a);
        min = a[0];
        Arrays.reverse(a);
        max = a[0];
 
        System.out.println(min + " " + max + " " + sum);
    }
}

Compiler output:
Main.java:17: error: cannot find symbol
        Arrays.reverse(a);
              ^
  symbol:   method reverse(int[])
  location: class Arrays
1 error
Language: Java

import java.util.*;

public class Main {
    public static void main(String[] args) throws IOException{
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        int[] a = new int[n];
        int max, min, sum = 0;
 
        for(int i = 0; i < n; i++) {
            a[i] = scan.nextInt();
            sum += a[i];
        }

        Arrays.sort(a);
        min = a[0];
        max = a[a.length - 1];
 
        System.out.println(min + " " + max + " " + sum);
    }
}

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

import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        int[] a = new int[n];
        // int max, min, sum = 0;
 
        for(int i = 0; i < n; i++) {
            a[i] = scan.nextInt();
            sum += a[i];
        }

        Arrays.sort(a);
        min = a[0];
        max = a[a.length - 1];
 
        System.out.println(min + " " + max + " " + sum);
    }
}

Compiler output:
Main.java:12: error: cannot find symbol
            sum += a[i];
            ^
  symbol:   variable sum
  location: class Main
Main.java:16: error: cannot find symbol
        min = a[0];
        ^
  symbol:   variable min
  location: class Main
Main.java:17: error: cannot find symbol
        max = a[a.length - 1];
        ^
  symbol:   variable max
  location: class Main
Main.java:19: error: cannot find symbol
        System.out.println(min + " " + max + " " + sum);
                           ^
  symbol:   variable min
  location: class Main
Main.java:19: error: cannot find symbol
        System.out.println(min + " " + max + " " + sum);
                                       ^
  symbol:   variable max
  location: class Main
Main.java:19: error: cannot find symbol
        System.out.println(min + " " + max + " " + sum);
                                                   ^
  symbol:   variable sum
  location: class Main
6 errors
Language: Java

import java.util.*;

public class D {
    public static void main(String[] args) {
            Scanner scan = new Scanner(System.in);
            int n = scan.nextInt();
            int[] a = new int[n];
            int max = -1000000, min = 1000000, sum = 0;

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

            Arrays.sort(a);
            min = a[0];
            max = a[a.length - 1];

            System.out.println(min + " " + max + " " + sum);
        }
}

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

import java.util.*;

public class D {
    public static void main(String[] args) {
            Scanner scan = new Scanner(System.in);
            int n = scan.nextInt();
            int[] a = new int[n];
            int max = -1000000, min = 1000000, sum = 0;

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

            Arrays.sort(a);
            if(a[0] > -1000000) min = a[0];
            if(a[a.length - 1] < 1000000) max = a[a.length - 1];

            System.out.println(min + " " + max + " " + sum);
        }
}

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

import java.util.*;

public class D {
    public static void main(String[] args) {
            Scanner scan = new Scanner(System.in);
            int n = scan.nextInt();
            int[] a = new int[n];
            int max = -100000, min = 1000000, sum = 0;

            for(int i = 0; i < n; i++) {
                a[i] = scan.nextInt();
                if(a[i] > max) max = a[i];
                if(a[i] < min) min = a[i];
                sum += a[i];
            }
                System.out.println(min + " " + max + " " + sum);
            }
}

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

import java.util.*;

public class Main {
    public static void main(String[] args) throws IOException{
            Scanner scan = new Scanner(System.in);
            int n = scan.nextInt();
            int[] a = new int[n];
            int max = -100000, min = 1000000;
            long sum = 0;

            for(int i = 0; i < n; i++) {
                a[i] = scan.nextInt();
                if(a[i] > max) max = a[i];
                if(a[i] < min) min = a[i];
                sum += a[i];
            }
                System.out.println(min + " " + max + " " + sum);
            }
}

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

import java.util.*;

public class Main {
    public static void main(String[] args) {
            Scanner scan = new Scanner(System.in);
            int n = scan.nextInt();
            int max = -100000, min = 1000000, input;
            long sum = 0;

            for(int i = 0; i < n; i++) {
                input = scan.nextInt();
                if(a[i] > max) max = input;
                if(a[i] < min) min = input;
                sum += input;
            }
                System.out.println(min + " " + max + " " + sum);
    }
}

Compiler output:
Main.java:12: error: cannot find symbol
                if(a[i] > max) max = input;
                   ^
  symbol:   variable a
  location: class Main
Main.java:13: error: cannot find symbol
                if(a[i] < min) min = input;
                   ^
  symbol:   variable a
  location: class Main
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 val[] = new int[n];
		for(int i=0; i<n; i++){
		        val[i] = sc.nextInt();
		}
		int max = -1000000;
		int min = 1000000;
		int sum = 0;
		for(int i=0; i<n; i++){
			if(val[i] => max)
				max = val[i];
			if(val[i] <= min)
				min = val[i];
			sum += val[i];
		}
		System.out.println(min + " " + max + " " + sum);
	}
}

Compiler output:
Main.java:15: error: illegal start of expression
			if(val[i] => max)
			           ^
1 error
Language: Java

import java.util.Scanner;

class Main{
    public static void main(String[] args){
        int n,total;
        int min = 1000000;
        int max = ???1000000;
    	//?¨??????\??????????????????????????§????????????
		Scanner scanner = new Scanner(System.in);
		a = scanner.nextInt();
		int a[] = new int[n];
		
		for(int i = 0;i < n;i++){
			total += a[i];
			
			if(min > a[i]){
				min = a[i];
			}
			
			if(max < a[i]){
				max = a[i]
			}
		}
		
		System.out.println(min+" "+max+" "+total);
    	scanner.close();
    }
}

Compiler output:
Main.java:7: error: illegal start of expression
        int max = ???1000000;
                  ^
Main.java:7: error: illegal start of expression
        int max = ???1000000;
                   ^
Main.java:7: error: illegal start of expression
        int max = ???1000000;
                    ^
Main.java:7: error: : expected
        int max = ???1000000;
                            ^
Main.java:21: error: ';' expected
				max = a[i]
				          ^
5 errors
Language: Java

import java.util.Scanner;

class Main{
    public static void main(String[] args){
        int n,total;
        int min = 1000000;
        int max = -1000000;
    	//?¨??????\??????????????????????????§????????????
		Scanner scanner = new Scanner(System.in);
		n = scanner.nextInt();
		int a[] = new int[n];
		
		for(int i = 0;i < n;i++){
			a[i] = scanner.nextInt();
			total += a[i];
			
			if(min > a[i]){
				min = a[i];
			}
			
			if(max < a[i]){
				max = a[i]
			}
		}
		
		System.out.println(min+" "+max+" "+total);
    	scanner.close();
    }
}

Compiler output:
Main.java:22: error: ';' expected
				max = a[i]
				          ^
1 error
Language: Java

import java.util.Scanner;

class Main{
    public static void main(String[] args){
        int n,total;
        //????°???????Constraints????????§?????§?????????
        int min = 1000000;
        //min??¨????§?
        int max = -1000000;
    	//?¨??????\??????????????????????????§????????????
		Scanner scanner = new Scanner(System.in);
		n = scanner.nextInt();
		int a[] = new int[n];
		
		for(int i = 0;i < n;i++){
			a[i] = scanner.nextInt();
			total += a[i];
			
			if(min > a[i]){
				min = a[i];
			}
			
			if(max < a[i]){
				max = a[i]
			}
		}
		
		System.out.println(min+" "+max+" "+total);
    	scanner.close();
    }
}

Compiler output:
Main.java:24: error: ';' expected
				max = a[i]
				          ^
1 error
Language: Java

import java.util.Scanner;

class Main{
    public static void main(String[] args){
        int n,total;
        //????°???????Constraints????????§?????§?????????
        int min = 1000000;
        //min??¨????§?
        int max = -1000000;
    	//?¨??????\??????????????????????????§????????????
		Scanner scanner = new Scanner(System.in);
		n = scanner.nextInt();
		int a[] = new int[n];
		
		for(int i = 0;i < n;i++){
			a[i] = scanner.nextInt();
			total += a[i];
			
			if(min > a[i]){
				min = a[i];
			}
			
			if(max < a[i]){
				max = a[i];
			}
		}
		
		System.out.println(min+" "+max+" "+total);
    	scanner.close();
    }
}

Compiler output:
Main.java:17: error: variable total might not have been initialized
			total += a[i];
			^
Main.java:28: error: variable total might not have been initialized
		System.out.println(min+" "+max+" "+total);
		                                   ^
2 errors
Language: Java

import java.util.Scanner;

class Main{
    public static void main(String[] args){
        int n;
        int total = 0;
        //????°???????Constraints????????§?????§?????????
        int min = 1000000;
        //min??¨????§?
        int max = -1000000;
    	//?¨??????\??????????????????????????§????????????
		Scanner scanner = new Scanner(System.in);
		n = scanner.nextInt();
		int a[] = new int[n];
		
		for(int i = 0;i < n;i++){
			a[i] = scanner.nextInt();
			total += a[i];
			
			if(min > a[i]){
				min = a[i];
			}
			
			if(max < a[i]){
				max = a[i]
			}
		}
		
		System.out.println(min+" "+max+" "+total);
    	scanner.close();
    }
}

Compiler output:
Main.java:25: error: ';' expected
				max = a[i]
				          ^
1 error
Language: Java

/* package whatever; // don't place package name! */

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

/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
	public static void main (String[] args) throws java.lang.Exception
	{
		// your code goes here
		BufferedReader r =
            new BufferedReader(new InputStreamReader(System.in), 1);
        String s = r.readLine();
        int size = Integer.parseInt(s);
        int min = 0,max = 0,sum = 0;
        s = r.readLine();
        String[] strData = /* package whatever; // don't place package name! */

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

/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
	public static void main (String[] args) throws java.lang.Exception
	{
		// your code goes here
		BufferedReader r =
            new BufferedReader(new InputStreamReader(System.in), 1);
        String s = r.readLine();
        int size = Integer.parseInt(s);
        int min = 0,max = 0,sum = 0;
        s = r.readLine();
        String[] strData = s.split(" ");
        for (int count = 0; count < size; count++){
        		int tmp = Integer.parseInt(strData[count]);
        		if(count == 0){
        			min = max = sum = tmp;
        		} else {
        			if (min > tmp) {
        				min = tmp;
        			}
        			if (max < tmp) {
        				max = tmp;
        			}
        			sum += tmp;
        		}
        }
        System.out.print(min);
        System.out.print(" ");
        System.out.print(max);
        System.out.print(" ");
        System.out.print(sum);
        System.out.print("\n");
    }
}s.split(" ");
        for (int count = 0; count < size; count++){
        		int tmp = Integer.parseInt(strData[count]);
        		if(count == 0){
        			min = max = sum = tmp;
        		} else {
        			if (min > tmp) {
        				min = tmp;
        			}
        			if (max < tmp) {
        				max = tmp;
        			}
        			sum += tmp;
        		}
        }
        System.out.print(min);
        System.out.print(" ");
        System.out.print(max);
        System.out.print(" ");
        System.out.print(sum);
        System.out.print("\n");
    }
}

Compiler output:
Main.java:21: error: illegal start of expression
import java.util.*;
^
Main.java:21: error: <identifier> expected
import java.util.*;
                 ^
Main.java:21: error: illegal start of expression
import java.util.*;
                  ^
Main.java:22: error: illegal start of expression
import java.lang.*;
^
Main.java:22: error: <identifier> expected
import java.lang.*;
                 ^
Main.java:22: error: illegal start of expression
import java.lang.*;
                  ^
Main.java:23: error: illegal start of expression
import java.io.*;
^
Main.java:23: error: <identifier> expected
import java.io.*;
               ^
Main.java:23: error: illegal start of expression
import java.io.*;
                ^
9 errors
Language: Java

/* package whatever; // don't place package name! */


/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
	public static void main (String[] args) throws java.lang.Exception
	{
		// your code goes here
		BufferedReader r =
            new BufferedReader(new InputStreamReader(System.in), 1);
        String s = r.readLine();
        int size = Integer.parseInt(s);
        int min = 0,max = 0,sum = 0;
        s = r.readLine();
        String[] strData = /* package whatever; // don't place package name! */

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

/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
	public static void main (String[] args) throws java.lang.Exception
	{
		// your code goes here
		BufferedReader r =
            new BufferedReader(new InputStreamReader(System.in), 1);
        String s = r.readLine();
        int size = Integer.parseInt(s);
        int min = 0,max = 0,sum = 0;
        s = r.readLine();
        String[] strData = s.split(" ");
        for (int count = 0; count < size; count++){
        		int tmp = Integer.parseInt(strData[count]);
        		if(count == 0){
        			min = max = sum = tmp;
        		} else {
        			if (min > tmp) {
        				min = tmp;
        			}
        			if (max < tmp) {
        				max = tmp;
        			}
        			sum += tmp;
        		}
        }
        System.out.print(min);
        System.out.print(" ");
        System.out.print(max);
        System.out.print(" ");
        System.out.print(sum);
        System.out.print("\n");
    }
}s.split(" ");
        for (int count = 0; count < size; count++){
        		int tmp = Integer.parseInt(strData[count]);
        		if(count == 0){
        			min = max = sum = tmp;
        		} else {
        			if (min > tmp) {
        				min = tmp;
        			}
        			if (max < tmp) {
        				max = tmp;
        			}
        			sum += tmp;
        		}
        }
        System.out.print(min);
        System.out.print(" ");
        System.out.print(max);
        System.out.print(" ");
        System.out.print(sum);
        System.out.print("\n");
    }
}

Compiler output:
Main.java:18: error: illegal start of expression
import java.util.*;
^
Main.java:18: error: <identifier> expected
import java.util.*;
                 ^
Main.java:18: error: illegal start of expression
import java.util.*;
                  ^
Main.java:19: error: illegal start of expression
import java.lang.*;
^
Main.java:19: error: <identifier> expected
import java.lang.*;
                 ^
Main.java:19: error: illegal start of expression
import java.lang.*;
                  ^
Main.java:20: error: illegal start of expression
import java.io.*;
^
Main.java:20: error: <identifier> expected
import java.io.*;
               ^
Main.java:20: error: illegal start of expression
import java.io.*;
                ^
9 errors
Language: Java

import java.util.Scanner;

public class Min {
	public static void main(String args[]) {
		Scanner scan = new Scanner(System.in);
		String str1 = scan.nextLine();
		String str2 = scan.nextLine();
		scan.close();

		int n = Integer.parseInt(str1);
		String[] ai = str2.split(" ", 0);

		int sVal = 0;
		int min = Integer.parseInt(ai[0]);
		for (int i = 0; i < n - 1; i++) {
			int num1 = Integer.parseInt(ai[i]);
			int num2 = Integer.parseInt(ai[i + 1]);
			if (num1 <= num2) {
				sVal = num1;
			} else {
				sVal = num2;
			}
			if (sVal <= min) {
				min = sVal;
			}
		}

		int bVal = 0;
		int max = Integer.parseInt(ai[0]);
		for (int i = 0; i < n - 1; i++) {
			int num1 = Integer.parseInt(ai[i]);
			int num2 = Integer.parseInt(ai[i + 1]);
			if (num1 <= num2) {
				bVal = num2;
			} else {
				bVal = num1;
			}
			if (max <= bVal) {
				max = bVal;
			}
		}

		int sum = Integer.parseInt(ai[0]);
		for (int i = 1; i < n; i++) {
			int num = Integer.parseInt(ai[i]);
			sum += num;
		}

		System.out.println(min + " " + max + " " + sum);

	}
}

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

    import java.util.Scanner;
    public class testr {
        public static void main(String[] args) {
            Scanner sc = new Scanner(System.in);
            int n = sc.nextInt();
            int max= 0;
            int min =0;
            int sum =0;
            for(int i=0;i<n;i++){
                int x = sc.nextInt();
                sum+=x;
                if(i==0) min = max = x;
                if(max<x) max = x;
                if(min> x) min =x;
            }
            System.out.print(min+" "+max+" "+sum);


        }
    }

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

import java.util.Scanner;

public class Main {
	void run(){
		Scanner s = new Scanner(System.in);
		int n = s.nextInt();
		int a[] = new int[n];
		int max, min , sum;
		for(int i = 0 ; i < n; i++){
			a[i] = s.nextInt();
		}
		max = a[0];
		min = a[0];
		sum = a[0];
		for(int i = 1; i < n; i++){
			sum += a[i];
			max = Math.max(max, a[i]);
			min = Math.min(min, a[i]);
		}
		System.out.println(min + " " + max + " " + sum);
		
			
	}
	public static void main(String[] args) {
		/* 
		 * Main x;
		 * x = new Main();
		 * x.run();
		 * ??¨????????????
		 */
		new Main().run();
		
	}
}}

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

class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        
        int n = sc.nextInt();
        int sum = 0;
        
        int nl[] = new int[n];
        for (int i=0; i<n; i++) {
            nl[i] = sc.nextInt();
            sum = sum +nl[i];
        }
        
        Arrays.sort(nl);
        
        System.out.println(nl[0]+" "+nl[n-1]+" "+sum);
    }
}

Compiler output:
Main.java:3: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Main
Main.java:3: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
                         ^
  symbol:   class Scanner
  location: class Main
Main.java:14: error: cannot find symbol
        Arrays.sort(nl);
        ^
  symbol:   variable Arrays
  location: class Main
3 errors
Language: Java

class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        
        int n = sc.nextInt();
        int sum = 0;
        
        int nl[] = new int[n];
        for (int i=0; i<n; i++) {
            nl[i] = sc.nextInt();
            sum = sum +nl[i];
        }
        
        Arrays.sort(nl);
        
        System.out.println(nl[0]+" "+nl[n-1]+" "+sum);
    }
    
}

Compiler output:
Main.java:3: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Main
Main.java:3: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
                         ^
  symbol:   class Scanner
  location: class Main
Main.java:14: error: cannot find symbol
        Arrays.sort(nl);
        ^
  symbol:   variable Arrays
  location: class Main
3 errors
Language: Java

import java.util.Arrays;
import java.util.Scanner;

public class JavaApplication34 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        
        int n = sc.nextInt();
        int sum = 0;
        
        int nl[] = new int[n];
        for (int i=0; i<n; i++) {
            nl[i] = sc.nextInt();
            sum = sum +nl[i];
        }
        
        Arrays.sort(nl);
        
        System.out.println(nl[0]+" "+nl[n-1]+" "+sum);
    }

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

import java.util.Arrays;
import java.util.Scanner;

public class JavaApplication34 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        
        int n = sc.nextInt();
        int sum = 0;
        
        int nl[] = new int[n];
        for (int i=0; i<n; i++) {
            nl[i] = sc.nextInt();
            sum = sum +nl[i];
        }
        
        Arrays.sort(nl);
        
        System.out.println(nl[0]+" "+nl[n-1]+" "+sum);
    }
}

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

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

public class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader reader=new BufferedReader(new InputStreamReader(System.in));
        int i=scan.nextInt();
        
        long max=-1000000, min=1000000, sum=0;
        for(int j=0;j<i;j++){
            long x=scan.nextLong();
            sum=sum+x;
            if(x>man) {main=x;}
            if(x<min) {min=x;}
        }
        System.out.prinln(min+" "+max+" ""+sum);
    }
}

Compiler output:
Main.java:17: error: unclosed string literal
        System.out.prinln(min+" "+max+" ""+sum);
                                         ^
1 error
Language: Java

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

public class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader reader=new BufferedReader(new InputStreamReader(System.in));
        int i=scan.nextInt();
        
        long max=-1000000, min=1000000, sum=0;
        for(int j=0;j<i;j++){
            long x=scan.nextLong();
            sum=sum+x;
            if(x>man) {main=x;}
            if(x<min) {min=x;}
        }
        System.out.prinln(min+" "+max+" "+sum);
    }
}

Compiler output:
Main.java:8: error: cannot find symbol
        int i=scan.nextInt();
              ^
  symbol:   variable scan
  location: class Main
Main.java:12: error: cannot find symbol
            long x=scan.nextLong();
                   ^
  symbol:   variable scan
  location: class Main
Main.java:14: error: cannot find symbol
            if(x>man) {main=x;}
                 ^
  symbol:   variable man
  location: class Main
Main.java:14: error: cannot find symbol
            if(x>man) {main=x;}
                       ^
  symbol:   variable main
  location: class Main
Main.java:17: error: cannot find symbol
        System.out.prinln(min+" "+max+" "+sum);
                  ^
  symbol:   method prinln(String)
  location: variable out of type PrintStream
5 errors