criyle/codenet-compile-errors huggingface dataset:
Language: C++

#include<cstdio>

int main(){
  int a,b,c;
  string op;
  while(1){
    scanf("%d %c %d", &a, &op, &b);
    if(op == "?") break;
    if(op == "+"){
      c = a + b;
    }else if(op == "-"){
      c = a - b;
    }else if(op == "*"){
      c = a * b;
    }else if(op == "/"){
      c = a / b;
    }
    printf("%d\n",c);
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'string' was not declared in this scope; did you mean 'stdin'?
    5 |   string op;
      |   ^~~~~~
      |   stdin
a.cc:7:28: error: 'op' was not declared in this scope
    7 |     scanf("%d %c %d", &a, &op, &b);
      |                            ^~
Language: C++

import java.util.Scanner;
public class aoj4C {
    public static void main(String[] args){
    	Scanner scan = new Scanner(System.in);
    	int a,b,tmp;
        String op;
    	while(true){
	    	a = scan.nextInt();
	    	op = scan.next();
	    	b = scan.nextInt();
	    	if(op.equals("?")) break;
	    	System.out.println(solve(a,b,op));
    	}
    }
    
    public static int solve(int a,int b,String op){
    	if(op.equals("+")) return (a+b);
    	if(op.equals("-")) return (a-b);
    	if(op.equals("*")) return (a*b);
    	if(op.equals("/")) return (a/b);
    	return 1;
     }
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Scanner;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: expected unqualified-id before 'public'
    2 | public class aoj4C {
      | ^~~~~~
Language: C++

#include<iostream>
using namespace std;

int main(){
	int a, op, b;
	cin >> a >> op >> b;
	if(op == '+') cout << a+b << "\n";
	else if(op == '-') cout << a-b << "\n";
	else if(op == '*') cout << a*b << "\n";
	else if(op == '/') cout << a/b << "\n";
	else break;

	return 0;
}	

Compiler output:
a.cc: In function 'int main()':
a.cc:11:14: error: break statement not within loop or switch
   11 |         else break;
      |              ^~~~~
Language: C++

#include<iostream>
using namespace std;

int main(){
	int a, op, b;
	cin >> a >> op >> b;
	if(op == '+') cout << a+b << "\n";
	else if(op == '-') cout << a-b << "\n";
	else if(op == '*') cout << a*b << "\n";
	else if(op == '/') cout << a/b << "\n";
	else if(op == '?') break;

	return 0;
}	

Compiler output:
a.cc: In function 'int main()':
a.cc:11:28: error: break statement not within loop or switch
   11 |         else if(op == '?') break;
      |                            ^~~~~
Language: C++

#include<iostream>
using namespace std;

int main(){
  int a, op, b, c;
  while(true){
  cin >> a >> op >> b;
  if(op == '+'){
    c=a+b;
  }else if(op == '-'){
    c=a-b;
    }else if(op == '*'){
    c=a*b;
    }else if(op == '/'){
    c=a/b;
  }else(op == '?'){
      break;
    }
  cout << c << "/n";
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:19: error: expected ';' before '{' token
   16 |   }else(op == '?'){
      |                   ^
      |                   ;
Language: C++


using namespace std;

int main(){
  int a, op, b, c;
  while(true){
  cin >> a >> op >> b;
  if(op == '+'){
    c=a+b;
  }else if(op == '-'){
    c=a-b;
    }else if(op == '*'){
    c=a*b;
    }else if(op == '/'){
    c=a/b;
  }else{
      break;
	}
  cout << c << "/n";
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   cin >> a >> op >> b;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | 
a.cc:19:3: error: 'cout' was not declared in this scope
   19 |   cout << c << "/n";
      |   ^~~~
a.cc:19:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

    #include <iostream>
    using namespace std;
     
    int main() {
    int a,b;
cin>> a >> op >> b ;
while(1){
if (op = "*"){
cout << a*b << endl;
};
else if (op = "/"){
cout << a/b << endl;
};
else if (op = "-"){
cout << a-b << endl;
};
else if (op = "+"){
cout << a+b << endl;
};
else {break;};
}
    return 0;
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:6:12: error: 'op' was not declared in this scope
    6 | cin>> a >> op >> b ;
      |            ^~
a.cc:11:1: error: 'else' without a previous 'if'
   11 | else if (op = "/"){
      | ^~~~
a.cc:14:1: error: 'else' without a previous 'if'
   14 | else if (op = "-"){
      | ^~~~
a.cc:17:1: error: 'else' without a previous 'if'
   17 | else if (op = "+"){
      | ^~~~
a.cc:20:1: error: 'else' without a previous 'if'
   20 | else {break;};
      | ^~~~
Language: C++

    #include <iostream>
    using namespace std;
     
    int main() {
    int a,b,op;
cin>> a >> op >> b ;
while(1){
if (op = "*"){
cout << a*b << endl;
};
else if (op = "/"){
cout << a/b << endl;
};
else if (op = "-"){
cout << a-b << endl;
};
else if (op = "+"){
cout << a+b << endl;
};
else {break;};
}
    return 0;
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
    8 | if (op = "*"){
      |          ^~~
      |          |
      |          const char*
a.cc:11:1: error: 'else' without a previous 'if'
   11 | else if (op = "/"){
      | ^~~~
a.cc:11:15: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   11 | else if (op = "/"){
      |               ^~~
      |               |
      |               const char*
a.cc:14:1: error: 'else' without a previous 'if'
   14 | else if (op = "-"){
      | ^~~~
a.cc:14:15: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   14 | else if (op = "-"){
      |               ^~~
      |               |
      |               const char*
a.cc:17:1: error: 'else' without a previous 'if'
   17 | else if (op = "+"){
      | ^~~~
a.cc:17:15: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   17 | else if (op = "+"){
      |               ^~~
      |               |
      |               const char*
a.cc:20:1: error: 'else' without a previous 'if'
   20 | else {break;};
      | ^~~~
Language: C++

    #include <iostream>
    using namespace std;
     
    int main() {
    int a,b,op;
cin>> a >> op >> b ;
while(1){
if (op = "*"){
cout << a*b << endl;
};
else if (op = "/"){
cout << a/b << endl;
};
else if (op = "-"){
cout << a-b << endl;
};
else if (op = "+"){
cout << a+b << endl;
};
else {break;};
};
    return 0;
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
    8 | if (op = "*"){
      |          ^~~
      |          |
      |          const char*
a.cc:11:1: error: 'else' without a previous 'if'
   11 | else if (op = "/"){
      | ^~~~
a.cc:11:15: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   11 | else if (op = "/"){
      |               ^~~
      |               |
      |               const char*
a.cc:14:1: error: 'else' without a previous 'if'
   14 | else if (op = "-"){
      | ^~~~
a.cc:14:15: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   14 | else if (op = "-"){
      |               ^~~
      |               |
      |               const char*
a.cc:17:1: error: 'else' without a previous 'if'
   17 | else if (op = "+"){
      | ^~~~
a.cc:17:15: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   17 | else if (op = "+"){
      |               ^~~
      |               |
      |               const char*
a.cc:20:1: error: 'else' without a previous 'if'
   20 | else {break;};
      | ^~~~
Language: C++

    #include <iostream>
    using namespace std;
     
    int main() {
    int a,b;
char op;
cin>> a >> op >> b ;
while(1){
if (op = "*"){
cout << a*b << endl;
};
else if (op = "/"){
cout << a/b << endl;
};
else if (op = "-"){
cout << a-b << endl;
};
else if (op = "+"){
cout << a+b << endl;
};
else {break;};
};
    return 0;
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:9:10: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
    9 | if (op = "*"){
      |          ^~~
      |          |
      |          const char*
a.cc:12:1: error: 'else' without a previous 'if'
   12 | else if (op = "/"){
      | ^~~~
a.cc:12:15: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   12 | else if (op = "/"){
      |               ^~~
      |               |
      |               const char*
a.cc:15:1: error: 'else' without a previous 'if'
   15 | else if (op = "-"){
      | ^~~~
a.cc:15:15: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   15 | else if (op = "-"){
      |               ^~~
      |               |
      |               const char*
a.cc:18:1: error: 'else' without a previous 'if'
   18 | else if (op = "+"){
      | ^~~~
a.cc:18:15: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   18 | else if (op = "+"){
      |               ^~~
      |               |
      |               const char*
a.cc:21:1: error: 'else' without a previous 'if'
   21 | else {break;};
      | ^~~~
Language: C++

    #include <iostream>
    using namespace std;
     
    int main() {
    int a,b;
char op;
cin>> a >> op >> b ;
while(1){
if (op == "*"){
cout << a*b << endl;
};
else if (op == "/"){
cout << a/b << endl;
};
else if (op == "-"){
cout << a-b << endl;
};
else if (op == "+"){
cout << a+b << endl;
};
else {break;};
};
    return 0;
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:9:8: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 | if (op == "*"){
      |     ~~~^~~~~~
a.cc:12:1: error: 'else' without a previous 'if'
   12 | else if (op == "/"){
      | ^~~~
a.cc:12:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 | else if (op == "/"){
      |          ~~~^~~~~~
a.cc:15:1: error: 'else' without a previous 'if'
   15 | else if (op == "-"){
      | ^~~~
a.cc:15:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   15 | else if (op == "-"){
      |          ~~~^~~~~~
a.cc:18:1: error: 'else' without a previous 'if'
   18 | else if (op == "+"){
      | ^~~~
a.cc:18:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   18 | else if (op == "+"){
      |          ~~~^~~~~~
a.cc:21:1: error: 'else' without a previous 'if'
   21 | else {break;};
      | ^~~~
Language: C++

    #include <iostream>
    using namespace std;
     
    int main() {
    int a,b;
    char op;
cin>> a >> op >> b ;
while(1){
if (op == '*'){
cout << a*b << endl;
};
else if (op == '/'){
cout << a/b << endl;
};
else if (op == '-'){
cout << a-b << endl;
};
else if (op == '+'){
cout << a+b << endl;
};
else {break;};
};
    return 0;
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:12:1: error: 'else' without a previous 'if'
   12 | else if (op == '/'){
      | ^~~~
a.cc:15:1: error: 'else' without a previous 'if'
   15 | else if (op == '-'){
      | ^~~~
a.cc:18:1: error: 'else' without a previous 'if'
   18 | else if (op == '+'){
      | ^~~~
a.cc:21:1: error: 'else' without a previous 'if'
   21 | else {break;};
      | ^~~~
Language: C++

    #include <iostream>
    using namespace std;
     
    int main() {
    int a,b;
    char op;
cin>> a >> op >> b ;
while(1){
if (op == '*'){
cout << a*b << endl;
};
else if (op == '/'){
cout << a/b << endl;
};
else if (op == '-'){
cout << a-b << endl;
};
else if (op == '+'){
cout << a+b << endl;
};
else break;
};
    return 0;
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:12:1: error: 'else' without a previous 'if'
   12 | else if (op == '/'){
      | ^~~~
a.cc:15:1: error: 'else' without a previous 'if'
   15 | else if (op == '-'){
      | ^~~~
a.cc:18:1: error: 'else' without a previous 'if'
   18 | else if (op == '+'){
      | ^~~~
a.cc:21:1: error: 'else' without a previous 'if'
   21 | else break;
      | ^~~~
Language: C++

    #include <iostream>
    using namespace std;
     
    int main() {
    int a,b;
    char op;
while(1){
cin>> a >> op >> b ;
if (op == '*'){
cout << a*b << endl;
};
else if (op == '/'){
cout << a/b << endl;
};
else if (op == '-'){
cout << a-b << endl;
};
else if (op == '+'){
cout << a+b << endl;
};
else break;
};
    return 0;
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:12:1: error: 'else' without a previous 'if'
   12 | else if (op == '/'){
      | ^~~~
a.cc:15:1: error: 'else' without a previous 'if'
   15 | else if (op == '-'){
      | ^~~~
a.cc:18:1: error: 'else' without a previous 'if'
   18 | else if (op == '+'){
      | ^~~~
a.cc:21:1: error: 'else' without a previous 'if'
   21 | else break;
      | ^~~~
Language: C++

#include <iostream>
using namespace std;
 
int main()
{
   int a,b;
   char op;

   while( cin >> a >> b, op != '?')
   {
      if(op == '+')
         cout << a + b << endl;
      else if(op == '-')
         cout << a - b << endl;
      else if(op == '*')
         cout << a * b << endl;
      else if(op == '/')
   }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:4: error: expected primary-expression before '}' token
   18 |    }
      |    ^
Language: C++

#include <iostream>
using namespace std;
int main (){

  double a,b,result;
  char op;
  
  cin >> a >> op >> b;

  if( op == '+' ){
    
    result=a+b;
    cout <<result<<"\n";
 
  } else if( op == '-' ){

    result=a-b;
    cout <<result<<"\n";

  } else if( op == '*'){

    result=a*b;
    cout <<result<<"\n";

  } else if( op == '/'){

    result=a/b;
    cout <<result<<"\n";
 
  } 

  return 0;

Compiler output:
a.cc: In function 'int main()':
a.cc:32:12: error: expected '}' at end of input
   32 |   return 0;
      |            ^
a.cc:3:12: note: to match this '{'
    3 | int main (){
      |            ^
Language: C++


#include<iostream>
using namespace std;

int main(){
int a,b;
char op;
int rst;
cin >> a >> op >> b ;

if(op !== ('+' || '-' || '*' || '/'|| '?')){
	cout << "error!!" << "\n" ;
}

else{
	switch(op){
		case '+' :
		rst = a+b ;
		cout << rst << "\n" ;
		break ;

		case '-' :
		rst = a-b ;
		cout << rst << "\n" ;
		break ;


		case '*' :
		rst = a*b ;
		cout << rst << "\n" ;
		break ;

		case '/':
		if(b!=0){
		rst = a/b ;
		cout << rst << "\n" ;
		break ;
		}
		else{
		cout << "error!!"<< "\n" ;
		break ;
		}
}
}
return 0 ;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: error: expected primary-expression before '=' token
   11 | if(op !== ('+' || '-' || '*' || '/'|| '?')){
      |         ^
Language: C++

#include <iostream>

using namespace std;

int main(){

 char op;
 int a,b;

 while(1){

 if( op != "?"){
  cin >> a >> op >> b ;
  if( op == "+"){
   cout << a+b << endl;
  }else if(op == "-"){
   cout << a-b << endl;
  }else if(op == "*"){
   cout << a*b << endl;
  }else if(op == "/"){
   cout << a/b << endl;
  }

  }else
  break;

 }

 return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |  if( op != "?"){
      |      ~~~^~~~~~
a.cc:14:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   14 |   if( op == "+"){
      |       ~~~^~~~~~
a.cc:16:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   16 |   }else if(op == "-"){
      |            ~~~^~~~~~
a.cc:18:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   18 |   }else if(op == "*"){
      |            ~~~^~~~~~
a.cc:20:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   20 |   }else if(op == "/"){
      |            ~~~^~~~~~
Language: Java

mport java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.StringTokenizer;

public class Main {
	public static void main(String[] args) throws IOException{
		new Main().exec();
	}
	
	public void exec() throws IOException {
		int n = readInt();
		
		int[] aArray = new int[n];
		int sum = 0;
		for (int i = 0; i < n; i++) {
			aArray[i] = readInt();
			sum += aArray[i];
		}
		Arrays.sort(aArray);
		
		System.out.println(aArray[0] + " " + aArray[n - 1] + " " + sum);		
	}
	
	BufferedReader br;
	StringTokenizer buffer = null;
	
	public String read() throws IOException {
		while(buffer == null || !buffer.hasMoreTokens()) {
			br = new BufferedReader(new InputStreamReader(System.in));
			buffer = new StringTokenizer(br.readLine());
		}
		return buffer.nextToken();
	}
	
	public int readInt() throws IOException {
		while(buffer == null || !buffer.hasMoreTokens()) {
			br = new BufferedReader(new InputStreamReader(System.in));
			buffer = new StringTokenizer(br.readLine());
		}
		return Integer.parseInt(buffer.nextToken());
	}
	
}



Compiler output:
Main.java:1: error: class, interface, enum, or record expected
mport java.io.BufferedReader;
^
Main.java:2: error: class, interface, enum, or record expected
import java.io.IOException;
^
Main.java:3: error: class, interface, enum, or record expected
import java.io.InputStreamReader;
^
Main.java:4: error: class, interface, enum, or record expected
import java.util.Arrays;
^
Main.java:5: error: class, interface, enum, or record expected
import java.util.StringTokenizer;
^
5 errors
Language: Java

import java.util.*;

class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		int n = sc.nextInt();
		
		int number = −1000000;
		int max = −1000000;
		int min = −1000000;
		int sum = −1000000;
		
		for(int i=0;  i<n; i++) {
			number = sc.nextInt();
			
			sum = sum + number;
			
			if (number > max) max = number;
			if (number < min) min = number;
		}		
		
		System.out.println(min);
		System.out.println(max);
		System.out.println(sum);
	}
}


Compiler output:
Main.java:9: error: illegal character: '\u2212'
		int number = ?1000000;
		             ^
Main.java:10: error: illegal character: '\u2212'
		int max = ?1000000;
		          ^
Main.java:11: error: illegal character: '\u2212'
		int min = ?1000000;
		          ^
Main.java:12: error: illegal character: '\u2212'
		int sum = ?1000000;
		          ^
4 errors
Language: Java

import java.util.Scanner;
import java.math.BigInteger;
public class Main
{
    public static void main(String args[])
    {
        Scanner sc = new Scanner(System.in);
int n=sc.nextInt();
int t=sc.nextInt();
int max= t;
int min= t;
int sum=t;
for(int i=1;i<n;i++)
{
t=sc.nextInt();
if(t > max) =t;
if(t <min)min=t;
sum = sum+=t;
}
System.out.println(min+" "+max+" "+sum);
}
}



Compiler output:
Main.java:16: error: illegal start of expression
if(t > max) =t;
            ^
1 error
Language: Java

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



Compiler output:
Main.java:15: error: illegal start of expression
if(t > max) = t ;
            ^
1 error
Language: Java

import java.util.Scanner;

class Main{
  public static void main(String args[]){
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int a[] = new int[n];
    long sum = 0;
    int min = 1000000;
    int max = -1000000;
    for(x = 0; x < n; x++){
      a[x] = sc.nextInt();
      sum = sum + a[x];
      if(min > a[x]){
        min = a[x];
      }
      if(max < a[x]){
        max = a[x];
      }
    }
    System.out.println(min+" "+max+" "+sum);
  }
}



Compiler output:
Main.java:11: error: cannot find symbol
    for(x = 0; x < n; x++){
        ^
  symbol:   variable x
  location: class Main
Main.java:11: error: cannot find symbol
    for(x = 0; x < n; x++){
               ^
  symbol:   variable x
  location: class Main
Main.java:11: error: cannot find symbol
    for(x = 0; x < n; x++){
                      ^
  symbol:   variable x
  location: class Main
Main.java:12: error: cannot find symbol
      a[x] = sc.nextInt();
        ^
  symbol:   variable x
  location: class Main
Main.java:13: error: cannot find symbol
      sum = sum + a[x];
                    ^
  symbol:   variable x
  location: class Main
Main.java:14: error: cannot find symbol
      if(min > a[x]){
                 ^
  symbol:   variable x
  location: class Main
Main.java:15: error: cannot find symbol
        min = a[x];
                ^
  symbol:   variable x
  location: class Main
Main.java:17: error: cannot find symbol
      if(max < a[x]){
                 ^
  symbol:   variable x
  location: class Main
Main.java:18: error: cannot find symbol
        max = a[x];
                ^
  symbol:   variable x
  location: class Main
9 errors
Language: Java

import java.util.Scanner;

public class Main {
    public static void main (String[] args) throws java.lang.Exception {
        Scanner sc = new Scanner(System.in);
        int n, i;
        long min, max;
        int sum = 0;
        n = sc.nextInt();
        long[] a = new long[n];
        for(i = 0; i < a.length; i++){
            a[i] = sc.nextLong();
            sum += a[i];
        }
        min = a[0];
        max = a[0];
        for(i = 1; i < a.length; i++){
            min = Math.min(min, a[i]);
            max = Math.max(max, a[i]);
        }
        System.out.println(min + " " + max + " " + sum);
        sc.close();
    }
}
}
}



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

import java.util.Scanner;

public class Main {
    public static void main (String[] args){
        Scanner sc = new Scanner(System.in);
        int n, i;
        long min, max;
        int sum = 0;
        n = sc.nextInt();
        long[] a = new long[n];
        for(i = 0; i < a.length; i++){
            a[i] = sc.nextLong();
            sum += a[i];
        }
        min = a[0];
        max = a[0];
        for(i = 1; i < a.length; i++){
            min = Math.min(min, a[i]);
            max = Math.max(max, a[i]);
        }
        System.out.println(min + " " + max + " " + sum);
        sc.close();
    }
}
}
}



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

import java.util.Scanner; 
 public class MyClass {
   public static void main(String[] args) {
          Scanner sc = new Scanner(System.in);
       
    int a = sc.nextInt();
    int b ;
    int max;
    int min;
    int i;
    long sum=0;
    int list[];
       list = new int[a];
       for(i=0;i<a;i++){
           b = sc.nextInt();
           list[i]=b;
       }
       min=list[0];
       max=list[0];
       for(i=0;i<a;i++){
           
           if(list[i]>max){
               max=list[i];
           }
           if(list[i]<min){
               min=list[i];
           }
           sum+=list[i];
   
       }
       System.out.println(min+" "+max+" "+sum);
   }
 }


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

#include <stdio.h>
long long main(void)
{
	int i,n,box[10001],temp,max=0,min=0,sum;
	scanf("%d",&n);
	
	for(i=0;i<n;i++){
		scanf("%d",&box[i]);
	}
	sum = 0.0;
	max=min=box[0];
	for(i=0;i<n;i++){
		if(box[i]>max)
		max=box[i];
		if(box[i]<min)
		min=box[i];
		sum += box[i];
	}
		
printf("%d %d %d\n",min,max,sum);
	return 0;
}


Compiler output:
Main.java:1: error: illegal character: '#'
#include <stdio.h>
^
Main.java:1: error: class, interface, enum, or record expected
#include <stdio.h>
         ^
Main.java:5: error: class, interface, enum, or record expected
	scanf("%d",&n);
	^
Main.java:7: error: class, interface, enum, or record expected
	for(i=0;i<n;i++){
	^
Main.java:7: error: class, interface, enum, or record expected
	for(i=0;i<n;i++){
	        ^
Main.java:7: error: class, interface, enum, or record expected
	for(i=0;i<n;i++){
	            ^
Main.java:9: error: class, interface, enum, or record expected
	}
	^
Main.java:11: error: class, interface, enum, or record expected
	max=min=box[0];
	^
Main.java:12: error: class, interface, enum, or record expected
	for(i=0;i<n;i++){
	^
Main.java:12: error: class, interface, enum, or record expected
	for(i=0;i<n;i++){
	        ^
Main.java:12: error: class, interface, enum, or record expected
	for(i=0;i<n;i++){
	            ^
Main.java:15: error: class, interface, enum, or record expected
		if(box[i]<min)
		^
Main.java:17: error: class, interface, enum, or record expected
		sum += box[i];
		^
Main.java:18: error: class, interface, enum, or record expected
	}
	^
Main.java:21: error: class, interface, enum, or record expected
	return 0;
	^
Main.java:22: error: class, interface, enum, or record expected
}
^
16 errors
Language: Java

import java.util.*;
class Main {
	public static void main (String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] i = new int[n];
		int max = i[0];
		int min = i[0];
		int sum = 0;
		
		for(int a : i){
			if(i[a] < i[a+1]){
				max = i[a+1];
			}
			if(i[a] > i[a+1]){
				min = i[a+1]
			}
			sum = sum + int[a];
		}
		
		System.out.println(min + " " + max + " " + sum);
	}
}


Compiler output:
Main.java:16: error: ';' expected
				min = i[a+1]
				            ^
Main.java:18: error: ']' expected
			sum = sum + int[a];
			                ^
Main.java:18: error: ';' expected
			sum = sum + int[a];
			                 ^
3 errors
Language: Java

import java.util.*;
class Main {
	public static void main (String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] i = new int[n];
		int max = i[0];
		int min = i[0];
		int sum = 0;
		
		for(int a : i){
			if(i[a] < i[a+1]){
				max = i[a+1];
			}
			if(i[a] > i[a+1]){
				min = i[a+1];
			}
			sum = sum + int[a];
		}
		
		System.out.println(min + " " + max + " " + sum);
	}
}


Compiler output:
Main.java:18: error: ']' expected
			sum = sum + int[a];
			                ^
Main.java:18: error: ';' expected
			sum = sum + int[a];
			                 ^
2 errors
Language: Java

import java.util.*;
class Main {
	public static void main (String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] i = new int[n];
		int max = i[0];
		int min = i[0];
		int sum = 0;
		
		for(int a; a < i.length -1; a++){
			if(i[a] < i[a+1]){
				max = i[a+1];
			}
			if(i[a] > i[a+1]){
				min = i[a+1];
			}
			sum = sum + i[a];
		}
		
		System.out.println(min + " " + max + " " + sum);
	}
}


Compiler output:
Main.java:11: error: variable a might not have been initialized
		for(int a; a < i.length -1; a++){
		           ^
1 error
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;
public class FizzBuzz{
	public static void main(String[]args)throws Exception{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str;
		int n=0;
		String[] arr;
		int[] array;
		int min=0;
		int	max=0;
		int	sum=0;
		while((str=br.readLine())!=null){
			if(n == 0){
				n=Integer.parseInt(str);
				continue;
			}
			arr=str.split(" ");
			array = new int[n];
			for(int i=0;i<n;i++){
				array[i]=Integer.parseInt(arr[i]);
				sum+=array[i];
				for(int j=i+1;j<n;j++) {
					if(array[i] <= array[j]);
					else{
						int temp = array[i];
						array[i]=array[j];
						array[j]=temp;
					}
				}
			}
			min=array[0];
			max=array[n-1];
			System.out.println(min+" "+max+" "+sum);
			
		}		
		br.close();
	}
}

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

import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Main{
	public static void main(String[]args)throws Exception{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str;
		int n=0;
		String[] arr;
		int[] array;
		int min=0;
		int max=0;
		log sum=0;
		while((str=br.readLine())!=null){
			if(n == 0){
				n=Integer.parseInt(str);
				continue;
			}
			arr=str.split(" ");
			array = new int[n];
			for(int i=0;i<n;i++){
				array[i]=Integer.parseInt(arr[i]);
				sum+=array[i];
			}
			for(int i=0;i<n;i++){
				for(int j=i+1;j<n;j++) {
					if(array[i] <= array[j]);
					else{
						int temp = array[i];
						array[i]=array[j];
						array[j]=temp;
					}
				}
			}

			min=array[0];
			max=array[n-1];
			System.out.println(min+" "+max+" "+sum);
			
		}		
		br.close();
	}
}

Compiler output:
Main.java:12: error: cannot find symbol
		log sum=0;
		^
  symbol:   class log
  location: class Main
1 error
Language: Java

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

public class MinMaxAndSum {
	public static void main(String[] args) {
		try {
			BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
			int n = Integer.parseInt(input.readLine());
			
			String[] line = input.readLine().split(" ");
			int min = Integer.MAX_VALUE;
			int max = Integer.MIN_VALUE;
			int sum = 0;
			for (int i = 0; i < n; i++) {
				int a = Integer.parseInt(line[i]);
				if (a < min) min = a;
				if (max < a) max = a;
				sum += a;
			}
			
			String answer = String.valueOf(min) + " " + String.valueOf(max) + " " + String.valueOf(sum);
			System.out.println(answer);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}

Compiler output:
Main.java:4: 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 ITP1_4_D {

	public static void main(String[] args) {

		Scanner sc=new Scanner(System.in);
		int n=sc.nextInt();
		
		int a;
		int max=sc.nextInt();
		int min=max;
		long g=max;
		System.out.println(n);
		
		for (int i=1;i<n;i++){
			a=sc.nextInt();
			g=g+a;
			if(max<a) max=a;
			if(min>a) min=a;
			System.out.println(i+" "+a);
		}
		System.out.println(min+" "+max+" "+g);
	}

}

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

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

public class MinMaxSum{
    public static void main(String[] args) throws IOException{
        int n,in,min,max,i;

        long sum = 0;
 
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
 
        n = Integer.parseInt(br.readLine());

        min = Integer.MAX_VALUE;
        max = Integer.MIN_VALUE;
 
        String[] readLineArray = br.readLine().split(" ");
 
        for (i = 0; i < n; i++){
            in = Integer.parseInt(readLineArray[i]);
            if(in < min) min = in;
            if(in > max) max = in;
            sum += in;
        }

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

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

mport java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Collections;

class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String strNum = br.readLine();
		String numArrays = br.readLine();
		ArrayList<Integer> numArrayList = new ArrayList<Integer>();
		for (int i = 0; i < Integer.parseInt(strNum); i++) {
			numArrayList.add(Integer.parseInt(numArrays.split(" ")[i]));
		}
		Collections.sort(numArrayList);
		Integer sum = 0;
		for (int i = 0; i < numArrayList.size(); i++) {
			sum += numArrayList.get(i);
		}
		System.out.printf("%d %d %d%n",numArrayList.get(0),numArrayList.get(numArrayList.size()-1), sum);
	}
}

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
mport java.io.BufferedReader;
^
Main.java:2: error: class, interface, enum, or record expected
import java.io.IOException;
^
Main.java:3: error: class, interface, enum, or record expected
import java.io.InputStreamReader;
^
Main.java:4: error: class, interface, enum, or record expected
import java.util.ArrayList;
^
Main.java:5: error: class, interface, enum, or record expected
import java.util.Collections;
^
5 errors
Language: Java

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner( System.in );
		int count = sc.nextInt();
		
		int min		= 1000000;
		int max		= -1000000;
		long calc	= 0;
		
		for(int i = 0; i < count; i++) {
			int a = sc.nextInt();
			
			calc += a;
			
			if( a > max ) {
				max = a;
				
			}
			if ( a < min ) {
				min = a;
			}
				
		}
		System.out.printlf(min+" "+max+" "+calc);
		
	}
}

Compiler output:
Main.java:26: error: cannot find symbol
		System.out.printlf(min+" "+max+" "+calc);
		          ^
  symbol:   method printlf(String)
  location: variable out of type PrintStream
1 error
Language: Java

import java.util.*;
class Main{
    public static void main(String[] args){
	final Scanner sc = new Scanner(System.in);
	int a =sc.nextInt();
	int max=-1000000;
	int min=1000000;
	int sum=0;
	long[] data=new data[a];
	for(int i=0;i<a;i++){
	    data[i]=sc.nextInt();
	    if(data[i]>max) max=n;
	    if(data[i]<min) min=n;
	    sum+=data[i];
	}
	System.out.println(min+" "+max+" "+sum);
    }
}

Compiler output:
Main.java:9: error: cannot find symbol
	long[] data=new data[a];
	                ^
  symbol:   class data
  location: class Main
Main.java:12: error: cannot find symbol
	    if(data[i]>max) max=n;
	                        ^
  symbol:   variable n
  location: class Main
Main.java:13: error: cannot find symbol
	    if(data[i]<min) min=n;
	                        ^
  symbol:   variable n
  location: class Main
3 errors
Language: Java

import java.util.Scanner;

public class Test{
	public static void main(String[] args){
		Scanner in = new Scanner(System.in);
		int max, min, sum=0;
		
		int n = in.nextInt();
		int[] ary = new int[n];
		for(int i=0; i<n; i++){
			ary[i] = in.nextInt();
		}
		
		//?????§?????¨????°????????¨????
		max = min = ary[0];
		for(int i=1; i<n; i++){
			if(max<ary[i]){
				max = ary[i];
			}
			if(min>ary[i]){
				min = ary[i];
			}
		}
		//????¨????????¨????
		for(int i=0; i<n; i++){
			sum += ary[i];
		}
		System.out.println(min+" "+max+" "+sum);
	}
}

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

import java.util.*;

class Main(
 public static void main(String[] args){
  Scanner sc = new Scanner(system.in);
 int n = sc.nextInt();
 int[] a = new int[n];
  int sum = 0;
 for(int i = 0; i < n; i++){
 a[i] = sc.nextint();
 sum += a[i];
 }
max = a[0]; mox = a[0];
 for(int i = 1; i < n; i++){
 if(max < a[i])max = a[i];
 if(mox > a[i])mox = a[i];
 }
System.out.println(mox + " " + max " " + sum);
}
}

Compiler output:
Main.java:3: error: '{' expected
class Main(
          ^
Main.java:18: error: not a statement
System.out.println(mox + " " + max " " + sum);
                                         ^
Main.java:4: 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:18: error: ')' or ',' expected
System.out.println(mox + " " + max " " + sum);
                                  ^
Main.java:18: error: ';' expected
System.out.println(mox + " " + max " " + sum);
                                            ^
Main.java:20: error: class, interface, enum, or record expected
}
^
6 errors
Language: Java

import java.util.*;

class Main{
 public static void main(String[] args){
  Scanner sc = new Scanner(system.in);
 int n = sc.nextInt();
 int[] a = new int[n];
  int sum = 0;
 for(int i = 0; i < n; i++){
 a[i] = sc.nextint();
 sum += a[i];
 }
max = a[0]; mox = a[0];
 for(int i = 1; i < n; i++){
 if(max < a[i])max = a[i];
 if(mox > a[i])mox = a[i];
 }
System.out.println(mox + " " + max " " + sum);
}
}

Compiler output:
Main.java:18: error: ')' or ',' expected
System.out.println(mox + " " + max " " + sum);
                                  ^
Main.java:18: error: not a statement
System.out.println(mox + " " + max " " + sum);
                                         ^
Main.java:18: error: ';' expected
System.out.println(mox + " " + max " " + sum);
                                            ^
3 errors
Language: Java

import java.util.*;

class Main{
 public static void main(String[] args){
  Scanner sc = new Scanner(system.in);
 int n = sc.nextInt();
 int[] a = new int[n];
  int sum = 0;
 for(int i = 0; i < n; i++){
 a[i] = sc.nextint();
 sum += a[i];
 }
max = a[0]; mox = a[0];
 for(int i = 1; i < n; i++){
 if(max < a[i])max = a[i];
 if(mox > a[i])mox = a[i];
 }
system.out.println(mox + " " + max " " + sum);
}
}

Compiler output:
Main.java:18: error: ')' or ',' expected
system.out.println(mox + " " + max " " + sum);
                                  ^
Main.java:18: error: not a statement
system.out.println(mox + " " + max " " + sum);
                                         ^
Main.java:18: error: ';' expected
system.out.println(mox + " " + max " " + sum);
                                            ^
3 errors
Language: Java

import java.util.*;

public class main {
   public static void main(string[] args) {
      scanner sc = new scanner(system.in);
      int n = integer.parseint(sc.next());
      int[] a = new int[n];
      long sum = 0;
      for (int i = 0; i < n; i++) {
         a[i] = integer.parseint(sc.next());
         sum += (long)a[i];
      }
      int max = a[0];
      int min = a[0];
      for (int i = 1; i < n; i++) {
         if (max < a[i]) {
            max = a[i];
         }
      }
      for (int i = 1; i < n; i++) {
         if (min > a[i]) {
            min = a[i];
         }
      }
      system.out.printf("%d %d %d\n", min, max, sum);
   }
}

Compiler output:
Main.java:3: error: class main is public, should be declared in a file named main.java
public class main {
       ^
Main.java:4: error: cannot find symbol
   public static void main(string[] args) {
                           ^
  symbol:   class string
  location: class main
Main.java:5: error: cannot find symbol
      scanner sc = new scanner(system.in);
      ^
  symbol:   class scanner
  location: class main
Main.java:5: error: cannot find symbol
      scanner sc = new scanner(system.in);
                       ^
  symbol:   class scanner
  location: class main
Main.java:5: error: cannot find symbol
      scanner sc = new scanner(system.in);
                               ^
  symbol:   variable system
  location: class main
Main.java:6: error: cannot find symbol
      int n = integer.parseint(sc.next());
              ^
  symbol:   variable integer
  location: class main
Main.java:10: error: cannot find symbol
         a[i] = integer.parseint(sc.next());
                ^
  symbol:   variable integer
  location: class main
Main.java:25: error: package system does not exist
      system.out.printf("%d %d %d\n", min, max, sum);
            ^
8 errors
Language: Java

import java.io.*;

public class Main{
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line1 = br.readLine();
		int n = Integer.parseInt(line1);
		int[] a = new int[n];
		String line2 = br.readLine();
		String[] str = line2.split(" ");
		for (int=0;i<n;i++ ) {
			a[i] = Integer.parseInt(str[i]);
		}
		int max,min,sum = a[0];
		for (int i = 1; i < n ; i++){
			max = Math.max(max,a[i]);
			min = Math.min(min,a[i]);
			sum += a[i];
		}
		System.out.println(min + " " + max +" "+ sum);
	}
}

Compiler output:
Main.java:11: error: not a statement
		for (int=0;i<n;i++ ) {
		     ^
Main.java:11: error: ';' expected
		for (int=0;i<n;i++ ) {
		        ^
Main.java:11: error: not a statement
		for (int=0;i<n;i++ ) {
		            ^
Main.java:11: error: ')' expected
		for (int=0;i<n;i++ ) {
		              ^
Main.java:11: error: ';' expected
		for (int=0;i<n;i++ ) {
		                  ^
5 errors
Language: Java

import java.io.*;

public class Main{
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line1 = br.readLine();
		int n = Integer.parseInt(line1);
		int[] a = new int[n];
		String line2 = br.readLine();
		String[] str = line2.split(" ");
		for (int i = 0; i < n ; i++){
			a[i] = Integer.parseInt(str[i]);
		}
		int max,min,sum = a[0];
		for (int i = 1; i < n ; i++){
			max = Math.max(max,a[i]);
			min = Math.min(min,a[i]);
			sum += a[i];
		}
		System.out.println(min + " " + max +" "+ sum);
	}
}

Compiler output:
Main.java:16: error: variable max might not have been initialized
			max = Math.max(max,a[i]);
			               ^
Main.java:17: error: variable min might not have been initialized
			min = Math.min(min,a[i]);
			               ^
Main.java:20: error: variable min might not have been initialized
		System.out.println(min + " " + max +" "+ sum);
		                   ^
Main.java:20: error: variable max might not have been initialized
		System.out.println(min + " " + max +" "+ sum);
		                               ^
4 errors
Language: Java

import java.util.Scanner;

public class ITP1_4_D {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int num = Integer.parseInt(sc.nextLine());
        String[] str = sc.nextLine().split(" ");
        int max = Integer.parseInt(str[0]);
        int total = Integer.parseInt(str[0]);
        int min = Integer.parseInt(str[0]);
        for(int cnt = 1; cnt < num; cnt++){
            if(max < Integer.parseInt(str[cnt])) max = Integer.parseInt(str[cnt]);
            if(min > Integer.parseInt(str[cnt])) min = Integer.parseInt(str[cnt]);
            total += Integer.parseInt(str[cnt]);
        }
        System.out.printf("%d %d %d", min, max, total);
    }

}

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

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;
import java.util.logging.Logger;
 import java.util.Scanner;

class Main{
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        ArrayList<long> array = new ArrayList<long>();
        
       
        for(int i=0;i<n;i++){
            array.add(toLong(scan.nextInt()));
        }
        
        long min=1000001;
        long max=-1000001;
        long sum = 0;
        
        for(long i : array){
            if(min > i) min = i;
            if(max < i) max = i;
            sum += i;
        }
        
        System.out.println(min + " " + max + " " + sum);
        scan.close();
    }
    
    public static long toLong(Number number){
        return number.longValue();
    }
}

Compiler output:
Main.java:13: error: unexpected type
        ArrayList<long> array = new ArrayList<long>();
                  ^
  required: reference
  found:    long
Main.java:13: error: unexpected type
        ArrayList<long> array = new ArrayList<long>();
                                              ^
  required: reference
  found:    long
2 errors
Language: Java

import java.util.Scanner;
class Main
public static void main(String[] args){
Scanner scan=new Scanner(System.in);
int b=scan.next();
int min=100000,max=0,sum=0;
for(int a=0;a<b;a++){
int c=scan.next();
if(min>c)
min=c;
if(max<c)
max=c;
sum=sum+c;
}
System.out.println(min+" "+max+" "+sum);
}
}

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

import java.util.Scanner;

public class L_4_4 {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int M=0,m=0;
		long S = 0;
		
		for(int i = 0;i <= n;i++){
			int x = sc.nextInt();
			M = Math.max(M,x);
			m = Math.min(m,x);
			S = S+x;
		}
		System.out.print(m+" "+M+" "+S);
	}
}

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

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:3: error: cannot find symbol
  public static void main(Strings[] args)
                          ^
  symbol:   class Strings
  location: class Main
Main.java:6: error: cannot find symbol
    Scanner in=new Scanner(System.in);
    ^
  symbol:   class Scanner
  location: class Main
Main.java:6: error: cannot find symbol
    Scanner in=new Scanner(System.in);
                   ^
  symbol:   class Scanner
  location: class Main
Main.java:16: error: cannot find symbol
		sum+=temp;		
		^
  symbol:   variable sum
  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
6 errors
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:4: error: cannot find symbol
  public static void main(Strings[] args)
                          ^
  symbol:   class Strings
  location: class Main
Main.java:17: error: cannot find symbol
		sum+=temp;		
		^
  symbol:   variable sum
  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
4 errors
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:4: error: cannot find symbol
  public static void main(Strings[] args)
                          ^
  symbol:   class Strings
  location: class Main
Main.java:19: 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