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

import java.util.Scanner;

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

        // ??????????????????????????????.
        // ?????°????????????????¢??????????.
        // ?????????????´????????´???????.
        Scanner sc = new Scanner(System.in);
        int count = sc.nextInt();
        int array[] = new int[count];
        for (int i = 0; i < count; i ++) {
            array[i] = sc.nextInt();
        }


        // ????°???????????????????.
        // ?????§??????????????????.
        // ????¨???????????????????.
        long min = Integer.MAX_VALUE;
        for (int i = 0; i < count; i ++) {
            if (min > array[i]) { min = array[i]; }
        }
        long max = Integer.MIN_VALUE;
        for (int i = 0; i < count; i ++) {
            if (max < array[i]) { max = array[i]; }
        }
        long sum = 0;
        for (int i = 0; i < count; i ++) { sum += array[i]; }
        System.out.println(min + " " + max + " " + sum);
    }
}

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:3:1: error: expected unqualified-id before 'public'
    3 | public class Main {
      | ^~~~~~
Language: C++

#include <stdio.h>
int main(void){
int max, min, sum, c, n, i
max = 0;
min = 0;
sum = 0;
scanf("%d", &c);
if( c > 0 ) {
scanf("%d", &n);
max = n;
min = n;
sum = n;
}
for( i = 1; i < c; ++i) {
scanf("%d", &n);
sum+=n;
min = n > min ? min : n ;
max = n < max ? max : n;
}
printf ("%d %d %d\n", min, max, sum );
return0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:1: error: expected initializer before 'max'
    4 | max = 0;
      | ^~~
a.cc:14:6: error: 'i' was not declared in this scope
   14 | for( i = 1; i < c; ++i) {
      |      ^
a.cc:21:1: error: 'return0' was not declared in this scope
   21 | return0;
      | ^~~~~~~
Language: C++

#include <stdio.h>
int main(void){
int max, min, sum, c, n, i;
max = 0;
min = 0;
sum = 0;
scanf("%d", &c);
if( c > 0 ) {
scanf("%d", &n);
max = n;
min = n;
sum = n;
}
for( i = 1; i < c; ++i) {
scanf("%d", &n);
sum+=n;
min = n > min ? min : n ;
max = n < max ? max : n;
}
printf ("%d %d %d\n", min, max, sum );
return0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:1: error: 'return0' was not declared in this scope
   21 | return0;
      | ^~~~~~~
Language: C++

#include <stdio.h>
int main(void){
long max, min, sum,  n,
int c, i;
max = 0;
min = 0;
sum = 0;
scanf("%d", &c);
if( c > 0 ) {
scanf("%ld", &n);
max = n;
min = n;
sum = n;
}
for( i = 1; i < c; ++i) {
scanf("%ld", &n);
sum+=n;
min = n > min ? min : n;
max = n < max ? max : n;
}
printf ("%ld %ld %ld\n", min, max, sum );
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:1: error: expected unqualified-id before 'int'
    4 | int c, i;
      | ^~~
a.cc:8:14: error: 'c' was not declared in this scope
    8 | scanf("%d", &c);
      |              ^
a.cc:15:6: error: 'i' was not declared in this scope
   15 | for( i = 1; i < c; ++i) {
      |      ^
Language: C++

import java.io.IOException;
import java.util.Arrays;
import java.util.OptionalLong;
import java.util.Scanner;
import java.util.stream.LongStream;

class Main {

	public static void main(String[] args) throws IOException {

		Scanner scane = new Scanner(System.in);

		int n = scane.nextInt();

		long[] nums = new long[n];

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

	  LongStream stream = Arrays.stream(nums);
	  LongStream stream2 = Arrays.stream(nums);
	  LongStream stream3 = Arrays.stream(nums);

	  OptionalLong min = stream.min();
	  OptionalLong max = stream2.max();
	  long total = stream3.sum();

	  System.out.println(min.getAsLong()+" "+max.getAsLong()+" "+total);

	}
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.io.IOException;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: 'import' does not name a type
    2 | import java.util.Arrays;
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: 'import' does not name a type
    3 | import java.util.OptionalLong;
      | ^~~~~~
a.cc:3:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:1: error: 'import' does not name a type
    4 | import java.util.Scanner;
      | ^~~~~~
a.cc:4:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:5:1: error: 'import' does not name a type
    5 | import java.util.stream.LongStream;
      | ^~~~~~
a.cc:5:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:9:15: error: expected ':' before 'static'
    9 |         public static void main(String[] args) throws IOException {
      |               ^~~~~~~
      |               :
a.cc:9:33: error: 'String' has not been declared
    9 |         public static void main(String[] args) throws IOException {
      |                                 ^~~~~~
a.cc:9:42: error: expected ',' or '...' before 'args'
    9 |         public static void main(String[] args) throws IOException {
      |                                          ^~~~
a.cc:9:46: error: expected ';' at end of member declaration
    9 |         public static void main(String[] args) throws IOException {
      |                                              ^
      |                                               ;
a.cc:9:48: error: 'throws' does not name a type
    9 |         public static void main(String[] args) throws IOException {
      |                                                ^~~~~~
a.cc:32:2: error: expected ';' after class definition
   32 | }
      |  ^
      |  ;
Language: C++

#include <iostream>
using namespace std;

int main()
{
  int num;
  cin >> num;

  int * a = new int[num];
  for (int i = 0; i < num; i++)
    cin >> a[i];

  int min = a[0];
  for (int i = 0; i < num; i++)//i=0?????????????????????num==1?????????
    if (a[i] < min) min = a[i];

  int max = a[0]
  for (int i = 0; i < num; i++)//i=0?????????????????????num==1?????????
    if (a[i] > max) max = a[i];

  int sum = 0;
  for (int i = 0; i < num; i++)
    sum += a[i];

  cout << min << max << sum << endl;

  delete[] a;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:3: error: expected ',' or ';' before 'for'
   18 |   for (int i = 0; i < num; i++)//i=0?????????????????????num==1?????????
      |   ^~~
a.cc:18:19: error: 'i' was not declared in this scope
   18 |   for (int i = 0; i < num; i++)//i=0?????????????????????num==1?????????
      |                   ^
Language: C++

#include<stdio.h>
int main()
{
  int a[],n,i,s,min,max;
  scanf("%d",&n);
  printf("\n");
  for(i=0;i<n;i++)
    scanf("%d",&a[i]);
  min=a[0];
  max=a[0];
  for(i=0;i<n;i++)
    s=s+a[i];
  if(min>a[i])
    min=a[i];
  else if(max<a[i])
    max=a[i];
  printf("%d %d %d",min,max,s);
   return 0;
 }

Compiler output:
a.cc: In function 'int main()':
a.cc:4:7: error: storage size of 'a' isn't known
    4 |   int a[],n,i,s,min,max;
      |       ^
Language: C++

#include<stdio.h>
int main()
{
  int a[],n,i,s,min,max;
  scanf("%d",&n);
  for(i=0;i<n;i++)
    scanf("%d",&a[i]);
  min=a[0];
  max=a[0];
  for(i=0;i<n;i++)
    s=s+a[i];
  if(min>a[i])
    min=a[i];
  else if(max<a[i])
    max=a[i];
  printf("%d %d %d",min,max,s);
   return 0;
 }

Compiler output:
a.cc: In function 'int main()':
a.cc:4:7: error: storage size of 'a' isn't known
    4 |   int a[],n,i,s,min,max;
      |       ^
Language: C++

#include <stdio.h>
int main(){
  int a,n,b,m,M,t;
  scanf("%d",&n);
  t=0; 
  m=10000000;
  M=-10000000; 
  for(a=1;a<=n;a++){
    scanf("%d",&b);
    t=t+b;
    if(m>b){
      m=b;
    }"%d %d %d"
    if(M<b){
      M=b;
    }
  }
  printf("%d %d %d\n",m,M,t);
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:16: error: expected ';' before 'if'
   13 |     }"%d %d %d"
      |                ^
      |                ;
   14 |     if(M<b){
      |     ~~
Language: C++

#include <iostream>
using namesake std;

int main(){
    int n;
    int min,max,sum=0;
    char a[];

    cin >> a[];

    min = a[0];
    max = a[0];
    for(int i=0;i<n;i++){
        sum = sum + a[i] - '0';

        if(a[i] > max) max=a[i];
        if(a[i] < min) min=a[i];
    }

    cout <<" "<< min <<" "<< max <<" "<< sum << endl;

    return 0;
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namesake'
    2 | using namesake std;
      |       ^~~~~~~~
a.cc: In function 'int main()':
a.cc:7:10: error: storage size of 'a' isn't known
    7 |     char a[];
      |          ^
a.cc:9:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    9 |     cin >> a[];
      |     ^~~
      |     std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:9:14: error: expected primary-expression before ']' token
    9 |     cin >> a[];
      |              ^
a.cc:20:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   20 |     cout <<" "<< min <<" "<< max <<" "<< sum << endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:20:49: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   20 |     cout <<" "<< min <<" "<< max <<" "<< sum << endl;
      |                                                 ^~~~
      |                                                 std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <iostream>
using namesake std;

int main(){
    int n;
    int min,max,sum=0;
    char a[];

    cin >> a[];

    min = a[0] - '0';
    max = a[0] - '0';
    for(int i=0;i<n;i++){
        sum = sum + a[i] - '0';

        if(a[i] -'0'> max) max=a[i]-'0';
        if(a[i] -'0'< min) min=a[i]-'0';
    }

    cout <<" "<< min <<" "<< max <<" "<< sum << endl;

    return 0;
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namesake'
    2 | using namesake std;
      |       ^~~~~~~~
a.cc: In function 'int main()':
a.cc:7:10: error: storage size of 'a' isn't known
    7 |     char a[];
      |          ^
a.cc:9:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    9 |     cin >> a[];
      |     ^~~
      |     std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:9:14: error: expected primary-expression before ']' token
    9 |     cin >> a[];
      |              ^
a.cc:20:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   20 |     cout <<" "<< min <<" "<< max <<" "<< sum << endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:20:49: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   20 |     cout <<" "<< min <<" "<< max <<" "<< sum << endl;
      |                                                 ^~~~
      |                                                 std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <iostream>
using namespace std;

int main(){
    int n;
    int min,max,sum=0;
    char a[];

    cin >> a[];

    min = a[0] - '0';
    max = a[0] - '0';
    for(int i=0;i<n;i++){
        sum = sum + a[i] - '0';

        if(a[i] -'0'> max) max=a[i]-'0';
        if(a[i] -'0'< min) min=a[i]-'0';
    }

    cout <<" "<< min <<" "<< max <<" "<< sum << endl;

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:10: error: storage size of 'a' isn't known
    7 |     char a[];
      |          ^
a.cc:9:14: error: expected primary-expression before ']' token
    9 |     cin >> a[];
      |              ^
Language: C++

#include <iostream>
using namespace std;

int main(){
    int n;
    int min,max,sum=0;
    char a[10000];

    cin >> a[];

    min = a[0] - '0';
    max = a[0] - '0';
    for(int i=0;i<n;i++){
        sum = sum + a[i] - '0';

        if(a[i] -'0'> max) max=a[i]-'0';
        if(a[i] -'0'< min) min=a[i]-'0';
    }

    cout <<" "<< min <<" "<< max <<" "<< sum << endl;

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:14: error: expected primary-expression before ']' token
    9 |     cin >> a[];
      |              ^
Language: C++

#include<iostream>
using namespace std;
	int main() {
		int n,goukei=0,saidai=0,saisyou=0,flag=1;
		cin >> n;
		int a[10000];			

		while (n > 0) {
			if (flag==1) {
				saisyou, saidai = a[n];
			}
		
		    cin>>a[n];

			goukei += a[n];
			if (saidai<a[n]) {
			
				saidai = a[n];

			}
			if (saisyou>a[n]){
			
				saisyou = a[n];
			
			}
			n--;
			flag = 0;
		}
		cout << saisyou<<" "<< saidai<<" "<< goukei,,endl;
		return 0;

		

}

Compiler output:
a.cc: In function 'int main()':
a.cc:29:61: error: expected primary-expression before ',' token
   29 |                 cout << saisyou<<" "<< saidai<<" "<< goukei,,endl;
      |                                                             ^
Language: C++

#include <climits>
#include <iostream>

using namespace std;

int main(int argc, char* argv[]) {
  int n; cin >> n;
  long long min_v = INT_MAX, max_v = INT_MIN, sum_v = 0;
  for (int i = 0; i < n; i++) {
    int v; cin >> v;
    min_v = min(min_v, v);
    max_v = max(max_v, v);
    sum_v += v;
  }
  cout << min_v << ' ' << max_v << ' ' << sum_v << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:11:16: error: no matching function for call to 'min(long long int&, int&)'
   11 |     min_v = min(min_v, v);
      |             ~~~^~~~~~~~~~
In file included from /usr/include/c++/14/string:51,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:2:
/usr/include/c++/14/bits/stl_algobase.h:233:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)'
  233 |     min(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:233:5: note:   template argument deduction/substitution failed:
a.cc:11:16: note:   deduced conflicting types for parameter 'const _Tp' ('long long int' and 'int')
   11 |     min_v = min(min_v, v);
      |             ~~~^~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:281:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
  281 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:281:5: note:   candidate expects 3 arguments, 2 provided
a.cc:12:16: error: no matching function for call to 'max(long long int&, int&)'
   12 |     max_v = max(max_v, v);
      |             ~~~^~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:   template argument deduction/substitution failed:
a.cc:12:16: note:   deduced conflicting types for parameter 'const _Tp' ('long long int' and 'int')
   12 |     max_v = max(max_v, v);
      |             ~~~^~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note:   candidate expects 3 arguments, 2 provided
Language: C++

#include <climits>
#include <iostream>

using namespace std;

int main(int argc, char* argv[]) {
  int n; cin >> n;
  long long min_v = LONGLONG_MAX, max_v = LONGLONG_MIN, sum_v = 0;
  for (int i = 0; i < n; i++) {
    int v; cin >> v;
    min_v = min(min_v, v);
    max_v = max(max_v, v);
    sum_v += v;
  }
  cout << min_v << ' ' << max_v << ' ' << sum_v << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:8:21: error: 'LONGLONG_MAX' was not declared in this scope; did you mean 'LONG_LONG_MAX'?
    8 |   long long min_v = LONGLONG_MAX, max_v = LONGLONG_MIN, sum_v = 0;
      |                     ^~~~~~~~~~~~
      |                     LONG_LONG_MAX
a.cc:11:16: error: no matching function for call to 'min(long long int&, int&)'
   11 |     min_v = min(min_v, v);
      |             ~~~^~~~~~~~~~
In file included from /usr/include/c++/14/string:51,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:2:
/usr/include/c++/14/bits/stl_algobase.h:233:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)'
  233 |     min(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:233:5: note:   template argument deduction/substitution failed:
a.cc:11:16: note:   deduced conflicting types for parameter 'const _Tp' ('long long int' and 'int')
   11 |     min_v = min(min_v, v);
      |             ~~~^~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:281:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
  281 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:281:5: note:   candidate expects 3 arguments, 2 provided
a.cc:12:5: error: 'max_v' was not declared in this scope
   12 |     max_v = max(max_v, v);
      |     ^~~~~
a.cc:13:5: error: 'sum_v' was not declared in this scope
   13 |     sum_v += v;
      |     ^~~~~
a.cc:15:27: error: 'max_v' was not declared in this scope
   15 |   cout << min_v << ' ' << max_v << ' ' << sum_v << endl;
      |                           ^~~~~
a.cc:15:43: error: 'sum_v' was not declared in this scope
   15 |   cout << min_v << ' ' << max_v << ' ' << sum_v << endl;
      |                                           ^~~~~
Language: C++

#include <iostream>

using namespace std;

int main(){
	int n, a;
	int sum = 0; int max = INT_MIN; int min = INT_MAX;
	
	cin >> n;
	for(int i = 0; i < n; i++){
		cin >> a;
		sum += a;
		if(max < a){
			max = a;
		}
		if(min > a){
			min = a;
		}
	}
	
	printf("%d %d %d\n", min, max, sum);
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:32: error: 'INT_MIN' was not declared in this scope
    7 |         int sum = 0; int max = INT_MIN; int min = INT_MAX;
      |                                ^~~~~~~
a.cc:2:1: note: 'INT_MIN' is defined in header '<climits>'; this is probably fixable by adding '#include <climits>'
    1 | #include <iostream>
  +++ |+#include <climits>
    2 | 
a.cc:7:51: error: 'INT_MAX' was not declared in this scope
    7 |         int sum = 0; int max = INT_MIN; int min = INT_MAX;
      |                                                   ^~~~~~~
a.cc:7:51: note: 'INT_MAX' is defined in header '<climits>'; this is probably fixable by adding '#include <climits>'
Language: C++

#include <iostream>
#include <cstdio>
#include "LIMITS.h"

using namespace std;

int main(){
	int n, a;
	int sum = 0; int max = INT_MIN; int min = INT_MAX;

	cin >> n;
	for(int i = 0; i < n; i++){
		cin >> a;
		sum += a;
		if(max < a){
			max = a;
		}
		if(min > a){
			min = a;
		}
	}

	printf("%d %d %d\n", min, max, sum);

	return 0;
}

Compiler output:
a.cc:3:10: fatal error: LIMITS.h: No such file or directory
    3 | #include "LIMITS.h"
      |          ^~~~~~~~~~
compilation terminated.
Language: C++

#include <iostream>
using namespace std;

int main() {
    int n, Min, Max, Sum=0;
    int num[n];
    cin >> n;
    for(int i=0; i<n; i++){
        cin >> num[i];
        Sum +=num[i];
    }
    sort(num,num+n);
    Min = num[0];
    Max = num[n-1];
    cout << Min << " " << Max << " " << Sum << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:5: error: 'sort' was not declared in this scope; did you mean 'short'?
   12 |     sort(num,num+n);
      |     ^~~~
      |     short
Language: C++

#include <iostream>
using namespace std;
      
int main() {
  int n;
  cin >> n;
  
  long long [n], m;
  for (int i = 0; i < n; i++) {
    cin >> m;
    ary[i] = m;
  }
  
  long long min, max, total, tmp;
  for (int j = 0; j < n; j++) {
    tmp = ary[j];
          
    if (tmp > max) {
      max = tmp;
    }
    if (tmp < min) {
      min = tmp;
    }
          
    total += tmp;
  }
  cout << min << " " << max << " " << total << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: structured binding declaration cannot have type 'long long int'
    8 |   long long [n], m;
      |             ^~~
a.cc:8:13: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:8:14: error: conflicting declaration 'auto n'
    8 |   long long [n], m;
      |              ^
a.cc:5:7: note: previous declaration as 'int n'
    5 |   int n;
      |       ^
a.cc:8:16: error: expected initializer before ',' token
    8 |   long long [n], m;
      |                ^
a.cc:10:12: error: 'm' was not declared in this scope
   10 |     cin >> m;
      |            ^
a.cc:11:5: error: 'ary' was not declared in this scope
   11 |     ary[i] = m;
      |     ^~~
a.cc:16:11: error: 'ary' was not declared in this scope
   16 |     tmp = ary[j];
      |           ^~~
Language: C++

#include <iostream>
using namespace std;
       
int main() {
  int n;
  cin >> n;
   
  long [n], m;
  for (int i = 0; i < n; i++) {
    cin >> m;
    ary[i] = m;
  }
   
  long long min, max, total, tmp;
  for (int j = 0; j < n; j++) {
    tmp = ary[j];
           
    if (tmp > max) {
      max = tmp;
    }
    if (tmp < min) {
      min = tmp;
    }
           
    total += tmp;
  }
  cout << min << " " << max << " " << total << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:8: error: structured binding declaration cannot have type 'long int'
    8 |   long [n], m;
      |        ^~~
a.cc:8:8: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:8:9: error: conflicting declaration 'auto n'
    8 |   long [n], m;
      |         ^
a.cc:5:7: note: previous declaration as 'int n'
    5 |   int n;
      |       ^
a.cc:8:11: error: expected initializer before ',' token
    8 |   long [n], m;
      |           ^
a.cc:10:12: error: 'm' was not declared in this scope
   10 |     cin >> m;
      |            ^
a.cc:11:5: error: 'ary' was not declared in this scope
   11 |     ary[i] = m;
      |     ^~~
a.cc:16:11: error: 'ary' was not declared in this scope
   16 |     tmp = ary[j];
      |           ^~~
Language: C++

#include <iostream>
using namespace std;
int main(void){
	int n,min;
	cin>>n>>min;
	int inp,max,sum;
	sum=min;
	for(int i;i<n;i++){
		cin>>inp;
		sum+inp=sum;
		if(inp=>min){
			inp=max;
		}
		else{
			min=max;
			inp=min;
		}
	}
	cout<<min<<" "<<max<<" "<<sum<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:20: error: lvalue required as left operand of assignment
   10 |                 sum+inp=sum;
      |                 ~~~^~~~
a.cc:11:24: error: expected primary-expression before '>' token
   11 |                 if(inp=>min){
      |                        ^
Language: C++

#include <iostream>
using namespace std;
int main(void){
	int n,min;
	cin>>n>>min;
	int inp,max,sum;
	sum=min;
	for(int i;i<n;i++){
		cin>>inp;
		sum+inp=sum;
		if(min<inp){
			inp=max;
		}
		else{
			min=max;
			inp=min;
		}
	}
	cout<<min<<" "<<max<<" "<<sum<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:20: error: lvalue required as left operand of assignment
   10 |                 sum+inp=sum;
      |                 ~~~^~~~
Language: C++

#include <iostream>
using namespace std;
int main(void){
	int n,min;
	cin>>n>>min;
	int max,sum;
	sum=max
	for(int i;i<n;i++){
		cin>>max;
		sum=sum+min;
		if(min>max){
			int t;
			t=min;
			min=max;
			max=min;
		}
	}
	cout<<min<<" "<<max<<" "<<sum<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:16: error: expected ';' before 'for'
    7 |         sum=max
      |                ^
      |                ;
    8 |         for(int i;i<n;i++){
      |         ~~~     
a.cc:8:19: error: 'i' was not declared in this scope
    8 |         for(int i;i<n;i++){
      |                   ^
Language: C++

#include <iostream>
using namespace std;
int main(void){
	int n,min;
	cin>>n>>min;
	int max,sum;
	sum=max;
	for(int i;i<n;i++;){
		cin>>max;
		sum=sum+min;
		if(min>max){
			int t;
			t=min;
			min=max;
			max=min;
		}
		else{
		}
	}
	cout<<min<<" "<<max<<" "<<sum<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:26: error: expected ')' before ';' token
    8 |         for(int i;i<n;i++;){
      |            ~             ^
      |                          )
a.cc:8:27: error: expected primary-expression before ')' token
    8 |         for(int i;i<n;i++;){
      |                           ^
Language: C++

#include <iostream>
using namespace std;
int main(void){
	int n,min;
	cin>>n>>min;
	int max,sum;
	sum=max;
	for(int i;i<n;i++;){
		cin>>max;
		sum=sum+min;
		if(min>max;){
			int t;
			t=min;
			min=max;
			max=min;
		}
		else{
		}
	}
	cout<<min<<" "<<max<<" "<<sum<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:26: error: expected ')' before ';' token
    8 |         for(int i;i<n;i++;){
      |            ~             ^
      |                          )
a.cc:8:27: error: expected primary-expression before ')' token
    8 |         for(int i;i<n;i++;){
      |                           ^
Language: C++

#include <iostream>
using namespace std;
int main(void){
	int n,min;
	cin>>n>>min;
	int max,sum;
	sum=max;
	for(int i;i<n;i++);{
		cin>>max;
		sum=sum+min;
		if(min>max);{
			int t;
			t=min;
			min=max;
			max=min;
		}
		else{
		}
	}
	cout<<min<<" "<<max<<" "<<sum<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:17: error: 'else' without a previous 'if'
   17 |                 else{
      |                 ^~~~
Language: C++

#include <iostream>
using namespace std;
int main(void){
	int n,;
	cin>>n;
	int min,max,sum,input;
	cin>>min;
	sum=min;
	for(int i=0;i<n-1;i++){
		cin=input;
		sum=sum+input;
		if(min<=input){
			max=input;
		}
		else{
			max=min;
			min=input;
		}
	}
	cout<<min<<" "<<max<<" "<<sum<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:15: error: expected unqualified-id before ';' token
    4 |         int n,;
      |               ^
a.cc:10:21: error: no match for 'operator=' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'int')
   10 |                 cin=input;
      |                     ^~~~~
In file included from /usr/include/c++/14/iostream:42,
                 from a.cc:1:
/usr/include/c++/14/istream:718:7: note: candidate: 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator=(std::basic_istream<_CharT, _Traits>&&) [with _CharT = char; _Traits = std::char_traits<char>]'
  718 |       operator=(basic_istream&& __rhs)
      |       ^~~~~~~~
/usr/include/c++/14/istream:718:33: note:   no known conversion for argument 1 from 'int' to 'std::basic_istream<char>&&'
  718 |       operator=(basic_istream&& __rhs)
      |                 ~~~~~~~~~~~~~~~~^~~~~
Language: C++


}#include <iostream>
using namespace std;
int main(void){
	int n,;
	cin>>n;
	int min,max,sum,input;
	cin>>min;
	sum=min;
	for(int i=0;i<n-1;i++){
		cin>>input;
		sum=sum+input;
		if(min<=input){
			max=input;
		}
		else{
			max=min;
			min=input;
		}
	}
	cout<<min<<" "<<max<<" "<<sum<<endl;
	return 0;
}

Compiler output:
a.cc:2:2: error: stray '#' in program
    2 | }#include <iostream>
      |  ^
a.cc:2:1: error: expected declaration before '}' token
    2 | }#include <iostream>
      | ^
a.cc:2:3: error: 'include' does not name a type
    2 | }#include <iostream>
      |   ^~~~~~~
a.cc: In function 'int main()':
a.cc:5:15: error: expected unqualified-id before ';' token
    5 |         int n,;
      |               ^
a.cc:6:9: error: 'cin' was not declared in this scope
    6 |         cin>>n;
      |         ^~~
a.cc:21:9: error: 'cout' was not declared in this scope
   21 |         cout<<min<<" "<<max<<" "<<sum<<endl;
      |         ^~~~
a.cc:21:40: error: 'endl' was not declared in this scope
   21 |         cout<<min<<" "<<max<<" "<<sum<<endl;
      |                                        ^~~~
Language: C++

#include <stdio.h>

int main()
{
    int a;
    int b = 0;
    int c = 1000000;
    int d = 0;
    int e;

    scanf("%d\n",&a);
    for(int i=0;i<a;i++)
    {
        scanf("%d",&e)
        if(e<c) c = e;
        if(e>b) b = e;
        d = d + e;
    }
    printf("%d\n",c,b,d);
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:23: error: expected ';' before 'if'
   14 |         scanf("%d",&e)
      |                       ^
      |                       ;
   15 |         if(e<c) c = e;
      |         ~~
Language: C++

???#include <iostream>
using namespace std;
int main()
{
	int n, i, a, b, t, r;
	cin >> n;
	i = 1;
	a = 10000;
	b = -10000;
	r = 0;
	0 < n <= 1000;
	while (i <= n)
	{
		cin >> t;
		-1000000 <= t <= 1000000;
		if (t < a) a = t;
		if (t > b) b = t;
		r += t;
		i++;
	}
	cout << a << " " << b << " " << r << endl;
}

Compiler output:
a.cc:1:4: error: stray '#' in program
    1 | ???#include <iostream>
      |    ^
a.cc:1:1: error: expected unqualified-id before '?' token
    1 | ???#include <iostream>
      | ^
a.cc: In function 'int main()':
a.cc:6:9: error: 'cin' was not declared in this scope
    6 |         cin >> n;
      |         ^~~
a.cc:21:9: error: 'cout' was not declared in this scope
   21 |         cout << a << " " << b << " " << r << endl;
      |         ^~~~
a.cc:21:46: error: 'endl' was not declared in this scope
   21 |         cout << a << " " << b << " " << r << endl;
      |                                              ^~~~
Language: C++

???#include <iostream>
using namespace std;
int main()
{
	long long n, i, a, b, t, r;
	cin >> n;
	i = 1;
	a = 10000;
	b = -10000;
	r = 0;
	0 < n <= 10000;
	while (i <= n)
	{
		cin >> t;
		-1000000 <= t <= 1000000;
		if (t < a) a = t;
		if (t > b) b = t;
		r += t;
		i++;
	}
	cout << a << " " << b << " " << r << endl;
}

Compiler output:
a.cc:1:4: error: stray '#' in program
    1 | ???#include <iostream>
      |    ^
a.cc:1:1: error: expected unqualified-id before '?' token
    1 | ???#include <iostream>
      | ^
a.cc: In function 'int main()':
a.cc:6:9: error: 'cin' was not declared in this scope
    6 |         cin >> n;
      |         ^~~
a.cc:21:9: error: 'cout' was not declared in this scope
   21 |         cout << a << " " << b << " " << r << endl;
      |         ^~~~
a.cc:21:46: error: 'endl' was not declared in this scope
   21 |         cout << a << " " << b << " " << r << endl;
      |                                              ^~~~
Language: C++

#include <iostream>

#include <algorithm>
using namespace std;

void main(){
	int n;
	int sum = 0;
	cin >> n ;
	int* a = new int[n];
	for(int i = 0; i < n ; i++){
		cin >> a[i];
		sum +=a[i];

	}
	sort(a,a + n);
	cout << a[0] << " " << a[ n - 1] << " " << sum;


}

Compiler output:
a.cc:6:1: error: '::main' must return 'int'
    6 | void main(){
      | ^~~~
Language: C++

#include <iostream>

#include <algorithm>
using namespace std;

void main(){
	int n;
	int sum = 0;
	cin >> n ;
	int* a = new int[n];
	for(int i = 0; i < n ; i++){
		cin >> a[i];
		sum +=a[i];

	}
	sort(a,a + n);
	cout << a[0] << " " << a[ n - 1] << " " << sum;

	return 0;

}

Compiler output:
a.cc:6:1: error: '::main' must return 'int'
    6 | void main(){
      | ^~~~
Language: C++

#include <iostream>
#include <algorithm>
using namespace std;

void main(){
	int n;
	int sum = 0;
	cin >> n ;
	int* a = new int[n];
	for(int i = 0; i < n ; i++){
		cin >> a[i];
		sum +=a[i];

	}
	sort(a,a + n);
	cout << a[0] << " " << a[ n - 1] << " " << sum << endl;

	

}

Compiler output:
a.cc:5:1: error: '::main' must return 'int'
    5 | void main(){
      | ^~~~
Language: C++

#include<stdio.h>
int main(){
  int n,i,j,sum=0,ans,num;
  scanf("%d",&n);
  int str[n];
  for(i=0;i<n;i++){
    scanf("%d",&str[i]);
  }
  ans=num=str[0];
  sum=str[0];
  for(i=1;i<n;i++){
    sum+=str[i];
    if(ans>str[i]){
    ans=str[i];
    }
    if(num<str[i]){
      num=str[i];
    }
  }
  printf("%d %d %d\n",ans,num,sum);
  return(0);

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

#include <iostream>
using namespace std;

int main(){
	int n;
	long long minvalue=1000000;
	long long maxvalue=-1000000;
	long long sum=0;

	cin>>n;

	for(int i=0;i<n;i++){
		cin>>a;
		if(a<minvalue){
			minvalue=a;
		}
		if(a>maxvalue){
			maxvalue=a;
		}
		sum+=a;
	}

	cout<<minvalue<<" "<<maxvalue<<" "<<sum<<endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:22: error: 'a' was not declared in this scope
   13 |                 cin>>a;
      |                      ^
Language: C++

#include<stdio.h>
int main(){
  int n,m,i,sum=0,max,min;
  scanf("%d",&n);
  scanf("%d",&m);
  sum=m;
  max=min=m;
  for(i=0;i<n-1;i++){
    scanf("%d",&m);
    sum+=m;
    if(max<m){
      max=m;
    }
    if(min>m){
      min=m;
    }
  }
  printf("%d %d %d\n",min,max,sum);
  return(0);

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

#include<stdio.h>
int main(){
  int i,j,n,t=0;
  scanf("%d",&n);
  int a[n]
    for(i=0;i<n;i++){
      scanf("%d",a[i]);
      t+=a[i];
    }
  for(i=0;i<n-1;i++){
    for(j=0;j<n-i-1;j++){
      if(a[j]<a[j+1]){
	temp=a[j];
	a[j]=a[j+1];
	a[j+1]=temp;
      }
    }
  }
  printf("%d %d %d",a[0],a[n-1],t);
  return(0);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: expected initializer before 'for'
    6 |     for(i=0;i<n;i++){
      |     ^~~
a.cc:6:20: error: expected ';' before ')' token
    6 |     for(i=0;i<n;i++){
      |                    ^
      |                    ;
a.cc:12:10: error: 'a' was not declared in this scope
   12 |       if(a[j]<a[j+1]){
      |          ^
a.cc:13:9: error: 'temp' was not declared in this scope
   13 |         temp=a[j];
      |         ^~~~
a.cc:19:21: error: 'a' was not declared in this scope
   19 |   printf("%d %d %d",a[0],a[n-1],t);
      |                     ^
Language: C++

#include<stdio.h>
int main(){
  int i,j,n,t=0;
  scanf("%d",&n);
  int a[n]
    for(i=0;i<n;i++){
      scanf("%d",&a[i]);
      t+=a[i];
    }
  for(i=0;i<n-1;i++){
    for(j=0;j<n-i-1;j++){
      if(a[j]<a[j+1]){
	temp=a[j];
	a[j]=a[j+1];
	a[j+1]=temp;
      }
    }
  }
  printf("%d %d %d",a[0],a[n-1],t);
  return(0);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: expected initializer before 'for'
    6 |     for(i=0;i<n;i++){
      |     ^~~
a.cc:6:20: error: expected ';' before ')' token
    6 |     for(i=0;i<n;i++){
      |                    ^
      |                    ;
a.cc:12:10: error: 'a' was not declared in this scope
   12 |       if(a[j]<a[j+1]){
      |          ^
a.cc:13:9: error: 'temp' was not declared in this scope
   13 |         temp=a[j];
      |         ^~~~
a.cc:19:21: error: 'a' was not declared in this scope
   19 |   printf("%d %d %d",a[0],a[n-1],t);
      |                     ^
Language: C++

include<iostream>

using namespace std;
int main(){

	int n;
	cin>>n;

	long min = 1000000;
	long max = -1000000;
	long sum = 0;

	int a;
	for(int i=0;i<n;i++){
		cin>>a;
		sum +=a;
		if(min >a) min=a;
		if(max<a)  max=a;

	}
	cout<<min<<" "<<max<<" "<<sum<<endl;
	return 0;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:7:9: error: 'cin' was not declared in this scope
    7 |         cin>>n;
      |         ^~~
a.cc:21:9: error: 'cout' was not declared in this scope
   21 |         cout<<min<<" "<<max<<" "<<sum<<endl;
      |         ^~~~
a.cc:21:40: error: 'endl' was not declared in this scope
   21 |         cout<<min<<" "<<max<<" "<<sum<<endl;
      |                                        ^~~~
Language: C++


02
#include <string.h>
03
 
04
int sum(int*);
05
int ave(int*);
06
int min(int*);
07
int max(int*);
08
 
09
int main(void)
10
{
11
    int num[4];
12
    int n;
13
    printf("??????????????\?????????????????????(1,2,3,4):");
14
    scanf("%d %d %d %d",&num[0],&num[1],&num[2],&num[3]);
15
     
16
    printf("????¨???°??????%d??§??????\n",sum(num));
17
    printf("???????????????%d??§??????\n",ave(num));
18
    printf("????°??????????%d??§??????\n",min(num));
19
    printf("?????§?????????%d??§??????\n",max(num));
20
 
21
    return 0;
22
}
23
 
24
 
25
int sum(int *all)
26
{
27
    int total=0;
28
 
29
    for(int i=0;i<4;++i){
30
        total += all[i];
31
    }  
32
 
33
    return total;
34
}
35
int ave(int *all)
36
{
37
    int total=0;
38
 
39
    for(int i=0;i<4;++i){
40
        total += all[i];
41
    }  
42
     
43
 
44
    return total/4;
45
}
46
int min(int *all)
47
{
48
    int min=all[0];
49
    for(int i=1;i<4;++i){
50
        if(all[0]>all[i]){
51
            min=all[i];
52
        }
53
    }  
54
 
55
    return min;
56
 
57
}
58
int max(int *all)
59
{
60
    int max=all[0];
61
    for(int i=1;i<4;++i){
62
        if(all[0]<all[i]){
63
            max=all[i];
64
        }
65
    }  
66
 
67
    return max;
68
     
69
}

Compiler output:
a.cc:14:1: error: invalid digit "8" in octal constant
   14 | 08
      | ^~
a.cc:16:1: error: invalid digit "9" in octal constant
   16 | 09
      | ^~
a.cc:25:47: warning: trigraph ??( ignored, use -trigraphs to enable [-Wtrigraphs]
   25 |     printf("??????????????\?????????????????????(1,2,3,4):");
a.cc:2:1: error: expected unqualified-id before numeric constant
    2 | 02
      | ^~
a.cc:4:1: error: expected unqualified-id before numeric constant
    4 | 03
      | ^~
a.cc:8:1: error: expected unqualified-id before numeric constant
    8 | 05
      | ^~
a.cc:10:1: error: expected unqualified-id before numeric constant
   10 | 06
      | ^~
a.cc:12:1: error: expected unqualified-id before numeric constant
   12 | 07
      | ^~
a.cc:14:1: error: expected unqualified-id before numeric constant
   14 | 08
      | ^~
a.cc:44:1: error: expected unqualified-id before numeric constant
   44 | 23
      | ^~
a.cc:68:1: error: expected unqualified-id before numeric constant
   68 | 35
      | ^~
a.cc:90:1: error: expected unqualified-id before numeric constant
   90 | 46
      | ^~
a.cc:114:1: error: expected unqualified-id before numeric constant
  114 | 58
      | ^~
Language: C++

#include <vector>
using namespace std;
int main() {
	int n, a, i, min = 1000001, max = -1000001, sum = 0;
	cin >> n;
	for (i = 0; i < n; i++) {
		cin >> a;
		if (a < min)min = a;
		if (a > max)max = a;
		sum += a;
	}
	cout << min << ' ' << max << ' ' << sum << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'cin' was not declared in this scope
    5 |         cin >> n;
      |         ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include <vector>
  +++ |+#include <iostream>
    2 | using namespace std;
a.cc:12:9: error: 'cout' was not declared in this scope
   12 |         cout << min << ' ' << max << ' ' << sum << endl;
      |         ^~~~
a.cc:12:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:52: error: 'endl' was not declared in this scope
   12 |         cout << min << ' ' << max << ' ' << sum << endl;
      |                                                    ^~~~
a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    1 | #include <vector>
  +++ |+#include <ostream>
    2 | using namespace std;
Language: C++

#include<stdio.h>
int main(){
int n,a[],max=0,min=100000,sum=0;
scanf("%d",&n);
for(int i=0;i<n;i++){
scanf("%d",&a[i]);
}
for(int i=0;i<n;i++){
if(max<a[i])max=a[i];
if(min>a[i])min=a[i];
sum+=a[i];
}
printf("%d %d %d\n",min,max,sum);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:7: error: storage size of 'a' isn't known
    3 | int n,a[],max=0,min=100000,sum=0;
      |       ^
Language: C++

#include<stdio.h>
int main(){
int n,a[100000],max=-1000000,min=10000000
long sum=0;
scanf("%d",&n);
for(int i=0;i<n;i++){
scanf("%d",&a[i]);
}
for(int i=0;i<n;i++){
if(max<=a[i]){
max=a[i];
}if(min>=a[i]){
min=a[i];
}
sum+=a[i];
}
printf("%d %d %ld\n", min, max, sum);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:1: error: expected ',' or ';' before 'long'
    4 | long sum=0;
      | ^~~~
a.cc:15:1: error: 'sum' was not declared in this scope
   15 | sum+=a[i];
      | ^~~
a.cc:17:33: error: 'sum' was not declared in this scope
   17 | printf("%d %d %ld\n", min, max, sum);
      |                                 ^~~
Language: C++

#include<stdio.h>
int main(){
int n,a[100000],max=-1000000,min=10000000
long sum=0;
scanf("%d",&n);
for(int i=0;i<n;i++){
scanf("%d",&a[i]);
}
for(int i=0;i<n;i++){
if(max<=a[i]){
max=a[i];
}if(min>=a[i]){
min=a[i];
}
sum+=(long)a[i];
}
printf("%d %d %ld\n", min, max, sum);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:1: error: expected ',' or ';' before 'long'
    4 | long sum=0;
      | ^~~~
a.cc:15:1: error: 'sum' was not declared in this scope
   15 | sum+=(long)a[i];
      | ^~~
a.cc:17:33: error: 'sum' was not declared in this scope
   17 | printf("%d %d %ld\n", min, max, sum);
      |                                 ^~~
Language: C++

#include <iostream>
#include <algorithm>
#include <iomanip>
#include <string>
#include <cmath>
using namespace std;
int main(){
	int a,n,max;
	int goukei = 0;
	int min = 999999999;
	int array[1000000]???= {};
	cin>>n;
	for(;;){
		for(a=0; a<n; a++) cin>>array[a];
		int max = array[0];
		for(a=0; a<n; a++) if(array[a] > max)max = array[a];
		for(a=0; a<n; a++) if(array[a] < min)min = array[a];
		for(a=0; a<n; a++) goukei += array[a];
		
	cout<<min<<" "<<max<<" "<<goukei<<endl;
	break;
}

		return 0;
}

Compiler output:
a.cc:11:28: warning: trigraph ??= ignored, use -trigraphs to enable [-Wtrigraphs]
   11 |         int array[1000000]???= {};
a.cc: In function 'int main()':
a.cc:11:27: error: expected initializer before '?' token
   11 |         int array[1000000]???= {};
      |                           ^
a.cc:14:46: error: missing template arguments before '[' token
   14 |                 for(a=0; a<n; a++) cin>>array[a];
      |                                              ^
a.cc:15:32: error: missing template arguments before '[' token
   15 |                 int max = array[0];
      |                                ^
a.cc:16:44: error: expected unqualified-id before '[' token
   16 |                 for(a=0; a<n; a++) if(array[a] > max)max = array[a];
      |                                            ^
a.cc:16:65: error: missing template arguments before '[' token
   16 |                 for(a=0; a<n; a++) if(array[a] > max)max = array[a];
      |                                                                 ^
a.cc:17:44: error: expected unqualified-id before '[' token
   17 |                 for(a=0; a<n; a++) if(array[a] < min)min = array[a];
      |                                            ^
a.cc:17:65: error: missing template arguments before '[' token
   17 |                 for(a=0; a<n; a++) if(array[a] < min)min = array[a];
      |                                                                 ^
a.cc:18:51: error: missing template arguments before '[' token
   18 |                 for(a=0; a<n; a++) goukei += array[a];
      |                                                   ^
Language: C++

#include<iostream>
using namespace std;
int main(){
	int c=0; //?????°
	__int64 z=0; //?????????
	__int64 m=0; //min
	__int64 n=0; //Max
	__int64 x=0; //????¨? //????????§-2*/63??????2*/63?????§?????????*/=???
	__int64 i=0;
	cin>>c;
	cin>>z;
	m=z;
	n=z;
	x+=z;
	for(i=0;i<c-1;i++){
		cin>>z;
		if(z<m){
			m=z;
		}
		if(z>n){
			n=z;
		}
		x+=z;
	}
	cout<<m<<" "<<n<<" "<<x<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: '__int64' was not declared in this scope; did you mean '__int64_t'?
    5 |         __int64 z=0; //?????????
      |         ^~~~~~~
      |         __int64_t
a.cc:6:16: error: expected ';' before 'm'
    6 |         __int64 m=0; //min
      |                ^~
      |                ;
a.cc:7:16: error: expected ';' before 'n'
    7 |         __int64 n=0; //Max
      |                ^~
      |                ;
a.cc:8:16: error: expected ';' before 'x'
    8 |         __int64 x=0; //????¨? //????????§-2*/63??????2*/63?????§?????????*/=???
      |                ^~
      |                ;
a.cc:9:16: error: expected ';' before 'i'
    9 |         __int64 i=0;
      |                ^~
      |                ;
a.cc:11:14: error: 'z' was not declared in this scope
   11 |         cin>>z;
      |              ^
a.cc:12:9: error: 'm' was not declared in this scope
   12 |         m=z;
      |         ^
a.cc:13:9: error: 'n' was not declared in this scope
   13 |         n=z;
      |         ^
a.cc:14:9: error: 'x' was not declared in this scope
   14 |         x+=z;
      |         ^
a.cc:15:13: error: 'i' was not declared in this scope
   15 |         for(i=0;i<c-1;i++){
      |             ^
Language: C++

#include <iostream>
using namespace std;

int main()
{
	int n,i,j;
	long long a[10000], max = 0,min = 0 ,sum = 0;
	
	for(i=0 ;i<n ;i++){
		cin >> n;//??´??°????????°
	}
	
	max = a[0];
	min = a[0];
	for(j=0 ;j<n ; j++){
		if(max < a[j]){
			max = a;}
		if(min > a[j]){
			min = a;}
		sum = sum + a[j];
	}
	
	count << min << " " << max << " " << sum <<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:31: error: invalid conversion from 'long long int*' to 'long long int' [-fpermissive]
   17 |                         max = a;}
      |                               ^
      |                               |
      |                               long long int*
a.cc:19:31: error: invalid conversion from 'long long int*' to 'long long int' [-fpermissive]
   19 |                         min = a;}
      |                               ^
      |                               |
      |                               long long int*
a.cc:23:9: error: 'count' was not declared in this scope
   23 |         count << min << " " << max << " " << sum <<endl;
      |         ^~~~~