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

#include <iostream>
using namespace std;

int main(){
 int n,min,max,a,i;
 long long sum=0;

 cin >> n;
  cin >> a ;
  min=a;
  max=a;
  sum=a;
 for(i=1;i<n;i++){
  cin >> a ;
  min=min(min,a);
  max=max(max,a);
  sum+=a;
 }

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

 return 0;
}
 

Compiler output:
a.cc: In function 'int main()':
a.cc:15:10: error: 'min' cannot be used as a function
   15 |   min=min(min,a);
      |       ~~~^~~~~~~
a.cc:16:10: error: 'max' cannot be used as a function
   16 |   max=max(max,a);
      |       ~~~^~~~~~~
Language: C++

#include <stdio.h>
int main(){
int n,top,low,tot;
long long int tot;
scanf("%d%d",&n,&low);
tot=top=low;
for(int i=1;i<n;i++){
scanf("%d",&temp);
if(temp>top)top=temp;
if(temp<low)low=temp;
tot+=temp;
}
printf("%d %d %d\n",low,top,tot);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:15: error: conflicting declaration 'long long int tot'
    4 | long long int tot;
      |               ^~~
a.cc:3:15: note: previous declaration as 'int tot'
    3 | int n,top,low,tot;
      |               ^~~
a.cc:8:13: error: 'temp' was not declared in this scope
    8 | scanf("%d",&temp);
      |             ^~~~
Language: C++

#include <stdio.h>
int main(){
int n,top,low,tot;
long long int tot;
scanf("%d%d",&n,&low);
tot=top=low;
for(int i=1;i<n;i++){
scanf("%d",&temp);
if(temp>top)top=temp;
if(temp<low)low=temp;
tot+=temp;
}
printf("%d %d %lld\n",low,top,tot);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:15: error: conflicting declaration 'long long int tot'
    4 | long long int tot;
      |               ^~~
a.cc:3:15: note: previous declaration as 'int tot'
    3 | int n,top,low,tot;
      |               ^~~
a.cc:8:13: error: 'temp' was not declared in this scope
    8 | scanf("%d",&temp);
      |             ^~~~
Language: C++

#include <iostream>
#include <cstdio>
int main()
{
  int n,a;
  cin >> n;

  int min = 1000000, max = -1000000; //??\????????´??°????????§???????°???? 
  int sum = 0 // long??????????????¨?????????                                   
    for (int i=0; i<n; i++)
      {
	cin >> a;//???????????\???????????§OK????????????\???????????£????????´???        
	if (a<min) min = a; //???????????¶??????????????????true                   
	if (a>max) max = a; //????§?                                   
	sum += a; //sum????¨??????????                                         
      }
  cout << min << " " <<	max << " " << sum << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin >> n;
      |   ^~~
      |   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:10:5: error: expected ',' or ';' before 'for'
   10 |     for (int i=0; i<n; i++)
      |     ^~~
a.cc:10:19: error: 'i' was not declared in this scope
   10 |     for (int i=0; i<n; i++)
      |                   ^
a.cc:17:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   17 |   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:17:46: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   17 |   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>
#include <cstdio>
int main()
{
  int n,a;
  cin >> n;

  int min = 1000000, max = -1000000; //??\????????´??°????????§???????°????                   
  int sum = 0; // long??????????????¨?????????                                            
    for (int i=0; i<n; i++)
      {
        cin >> a;//???????????\???????????§OK????????????\???????????£????????´???                    
        if (a<min) min = a; //???????????¶??????????????????true                            
        if (a>max) max = a; //????§?                                                
        sum += a; //sum????¨??????????                                                 
      }
  cout << min << " " << max << " " << sum << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin >> n;
      |   ^~~
      |   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:17:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   17 |   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:17:46: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   17 |   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>
#include <cstdio>
using namespace	std;
int main()
{
  int n,a;
  cin >> n;

  int min = 1000000, max = -1000000; //??\????????´??°????????§???????°????                   
  int sum = 0; // long??????????????¨?????????                                            
    for (int i=0; i<n; i++)
      {
        cin >> a;//???????????\???????????§OK????????????\???????????£????????´???                    
	if (a<min) min = a; //???????????¶??????????????????true                            
	if (a>max) max = a; //????§?                                                
        sum += a; //sum????¨??????????                                                 
      }
  cout << min << " " << max << " " << sum << endl;
  retu

Compiler output:
a.cc: In function 'int main()':
a.cc:19:3: error: 'retu' was not declared in this scope
   19 |   retu
      |   ^~~~
a.cc:19:7: error: expected '}' at end of input
   19 |   retu
      |       ^
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
Language: C++

#include <cstdio>
using namespace	std; //?????????????????????                                 
int main()
{
  int n,a;
  cin >> n;

  int min = 1000000, max = -1000000; //??\????????´??°????????§???????°????                   
  long  sum = 0; // long??????????????¨?????????                                          
    for (int i=0; i<n; i++)
      {
        cin >> a;//???????????\???????????§OK????????????\???????????£????????´???                    
	if (a<min) min = a; //???????????¶??????????????????true                            
	if (a>max) max = a; //????§?                                                
        sum += a; //sum????¨??????????                                                 
      }
  cout << min << " " << max << " " << sum << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> n;
      |   ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include <cstdio>
  +++ |+#include <iostream>
    2 | using namespace std; //?????????????????????
a.cc:17:3: error: 'cout' was not declared in this scope
   17 |   cout << min << " " << max << " " << sum << endl;
      |   ^~~~
a.cc:17:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:17:46: error: 'endl' was not declared in this scope
   17 |   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 <cstdio>
  +++ |+#include <ostream>
    2 | using namespace std; //?????????????????????
Language: C++

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

int main () {
  int N;
  vector<int> A;
  int sum = 0;

  cin >> N;
  for (int i = 0; i < N; i++) {
    int n;
    cin >> n;
    A.push_back(n);
    sum += n;
  }
  sort(A.begin(), A.end());
  cout << A.front() << ' ' << A.back() << ' ' << sum << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:3: error: 'sort' was not declared in this scope; did you mean 'short'?
   17 |   sort(A.begin(), A.end());
      |   ^~~~
      |   short
Language: C++

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

int main(){
  int n, t, sum = 0;
  vector<int> input;
  cin >> n;
  for( int i = 0; i < n; i++){
    cin >> t;
    sum += t;
    input.push_back(t);
  }
  sort(input.begin(), input.end());
  cout << input.front() << " " << input.back() << " " << sum << endl;
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:14:3: error: 'sort' was not declared in this scope; did you mean 'short'?
   14 |   sort(input.begin(), input.end());
      |   ^~~~
      |   short
Language: C++

#include<iostream>
using namespace std;
void main()
{
    cin >> N;
    for (int i=0; i<N; ++i)
    cin >> A[i];

    int i=1;
    int max=A[0],min=A[0];
    
    for(int i=0,i<N;++i)
    sum=sum+A[i];

    while(i<N)
    {
        if(A[i]>max)
            max=A[i];
        if(A[i]<min)
            min=A[i];
        i++;
    }
    


    }
    cout << min << ??? ??? << max << ??? ??? << sum << endl;
}

Compiler output:
a.cc:3:1: error: '::main' must return 'int'
    3 | void main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:5:12: error: 'N' was not declared in this scope
    5 |     cin >> N;
      |            ^
a.cc:7:12: error: 'A' was not declared in this scope
    7 |     cin >> A[i];
      |            ^
a.cc:10:13: error: 'A' was not declared in this scope
   10 |     int max=A[0],min=A[0];
      |             ^
a.cc:12:18: error: expected ';' before '<' token
   12 |     for(int i=0,i<N;++i)
      |                  ^
      |                  ;
a.cc:12:18: error: expected primary-expression before '<' token
a.cc:13:5: error: 'sum' was not declared in this scope
   13 |     sum=sum+A[i];
      |     ^~~
a.cc: At global scope:
a.cc:27:5: error: 'cout' does not name a type
   27 |     cout << min << ??? ??? << max << ??? ??? << sum << endl;
      |     ^~~~
a.cc:28:1: error: expected declaration before '}' token
   28 | }
      | ^
Language: C++

#include "cstdio"
#include <algorithm>
#include <numeric>

using namaspace std;

int main(){
int n,mx,mn,sum;
scanf("%d",&n);
int A[n];
for(i=0;i<n;i++){
scanf("%d",&A[i]);
}
mx = max_element(A,SIZE(A));
mn = min_element(A,SIZE(A));
sum = accumulate(A,SIZE(A),0);
printf("%d %d %d",mn,mx,sum);
}

Compiler output:
a.cc:5:7: error: expected nested-name-specifier before 'namaspace'
    5 | using namaspace std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:11:5: error: 'i' was not declared in this scope
   11 | for(i=0;i<n;i++){
      |     ^
a.cc:14:20: error: 'SIZE' was not declared in this scope
   14 | mx = max_element(A,SIZE(A));
      |                    ^~~~
a.cc:14:6: error: 'max_element' was not declared in this scope; did you mean 'std::max_element'?
   14 | mx = max_element(A,SIZE(A));
      |      ^~~~~~~~~~~
      |      std::max_element
In file included from /usr/include/c++/14/algorithm:86,
                 from a.cc:2:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:528:1: note: 'std::max_element' declared here
  528 | max_element(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last);
      | ^~~~~~~~~~~
a.cc:15:6: error: 'min_element' was not declared in this scope; did you mean 'std::min_element'?
   15 | mn = min_element(A,SIZE(A));
      |      ^~~~~~~~~~~
      |      std::min_element
/usr/include/c++/14/pstl/glue_algorithm_defs.h:520:1: note: 'std::min_element' declared here
  520 | min_element(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last);
      | ^~~~~~~~~~~
a.cc:16:7: error: 'accumulate' was not declared in this scope; did you mean 'std::accumulate'?
   16 | sum = accumulate(A,SIZE(A),0);
      |       ^~~~~~~~~~
      |       std::accumulate
In file included from /usr/include/c++/14/numeric:62,
                 from a.cc:3:
/usr/include/c++/14/bits/stl_numeric.h:161:5: note: 'std::accumulate' declared here
  161 |     accumulate(_InputIterator __first, _InputIterator __last, _Tp __init,
      |     ^~~~~~~~~~
Language: C++

#include "cstdio"
#include <algorithm>
#include <numeric>

using namaspace std;

int main(){
int n,mx,mn,sum;
scanf("%d",&n);
int A[n];
for(int i=0;i<n;i++){
scanf("%d",&A[i]);
}
mx = max_element(A,SIZE(A));
mn = min_element(A,SIZE(A));
sum = accumulate(A,SIZE(A),0);
printf("%d %d %d",mn,mx,sum);
}

Compiler output:
a.cc:5:7: error: expected nested-name-specifier before 'namaspace'
    5 | using namaspace std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:14:20: error: 'SIZE' was not declared in this scope
   14 | mx = max_element(A,SIZE(A));
      |                    ^~~~
a.cc:14:6: error: 'max_element' was not declared in this scope; did you mean 'std::max_element'?
   14 | mx = max_element(A,SIZE(A));
      |      ^~~~~~~~~~~
      |      std::max_element
In file included from /usr/include/c++/14/algorithm:86,
                 from a.cc:2:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:528:1: note: 'std::max_element' declared here
  528 | max_element(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last);
      | ^~~~~~~~~~~
a.cc:15:6: error: 'min_element' was not declared in this scope; did you mean 'std::min_element'?
   15 | mn = min_element(A,SIZE(A));
      |      ^~~~~~~~~~~
      |      std::min_element
/usr/include/c++/14/pstl/glue_algorithm_defs.h:520:1: note: 'std::min_element' declared here
  520 | min_element(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last);
      | ^~~~~~~~~~~
a.cc:16:7: error: 'accumulate' was not declared in this scope; did you mean 'std::accumulate'?
   16 | sum = accumulate(A,SIZE(A),0);
      |       ^~~~~~~~~~
      |       std::accumulate
In file included from /usr/include/c++/14/numeric:62,
                 from a.cc:3:
/usr/include/c++/14/bits/stl_numeric.h:161:5: note: 'std::accumulate' declared here
  161 |     accumulate(_InputIterator __first, _InputIterator __last, _Tp __init,
      |     ^~~~~~~~~~
Language: C++

#include "cstdio"
#include <algorithm>
#include <numeric>

int main(){
int n,mx,mn;
long sum;
scanf("%d",&n);
int A[n];
for(int i=0;i<n;i++){
scanf("%d",&A[i]);
}
mx = std::max_element(A,A+n);
mn = std::min_element(A,A+n);
sum = std::accumulate(A,A+n,0);
printf("%d %d %l",mn,mx,sum);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:22: error: invalid conversion from 'int*' to 'int' [-fpermissive]
   13 | mx = std::max_element(A,A+n);
      |      ~~~~~~~~~~~~~~~~^~~~~~~
      |                      |
      |                      int*
a.cc:14:22: error: invalid conversion from 'int*' to 'int' [-fpermissive]
   14 | mn = std::min_element(A,A+n);
      |      ~~~~~~~~~~~~~~~~^~~~~~~
      |                      |
      |                      int*
Language: C++

#include "cstdio"

using namespace std;

int main(){
int n,mx,mn;
long sum;
scanf("%d",&n);
int a;
for(int i=0;i<n;i++){
scanf("%d",&a);
mx = max(mx,a);
mn = min(mn,a);
sum += a;
}

printf("%d %d %l",mn,mx,sum);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:6: error: 'max' was not declared in this scope; did you mean 'mx'?
   12 | mx = max(mx,a);
      |      ^~~
      |      mx
a.cc:13:6: error: 'min' was not declared in this scope; did you mean 'mn'?
   13 | mn = min(mn,a);
      |      ^~~
      |      mn
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:19: error: expected initializer before '.' token
    4 |    int n, a[10000]. min, max, sum, i;
      |                   ^
a.cc:5:4: error: 'i' was not declared in this scope
    5 |    i = 0;
      |    ^
a.cc:7:16: error: 'a' was not declared in this scope
    7 |    scanf("%d", a[i]);
      |                ^
a.cc:8:4: error: 'max' was not declared in this scope
    8 |    max = min = sum =a[i];
      |    ^~~
a.cc:8:10: error: 'min' was not declared in this scope; did you mean 'main'?
    8 |    max = min = sum =a[i];
      |          ^~~
      |          main
a.cc:8:16: error: 'sum' was not declared in this scope
    8 |    max = min = sum =a[i];
      |                ^~~
a.cc:13:9: error: 'elseif' was not declared in this scope
   13 |       } elseif(a[i] > max) {
      |         ^~~~~~
Language: C++

#include <stdio.h>

int main(){
  int n,i,t;
  int tmax,tmin;
  long long int tsum;
  scanf("%d\n",&n);
  for(i=o,tsum=o,tmax=-1000000,tmin=1000000;i<n;i++){
    scanf("%d",&t);
    tsum += t;
    if(tmax<t)tmax=t;
    if(tmin>t)tmin=t;
  }
  printf("%d %d %d\n",tmin,tmax,tsum);
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'o' was not declared in this scope
    8 |   for(i=o,tsum=o,tmax=-1000000,tmin=1000000;i<n;i++){
      |         ^
Language: C++

#include <stdio.h>

int main(){
  int n,i,t;
  int tmax,tmin;
  long long int tsum;
  scanf("%d\n",&n);
  for(i=0,tsum=0,tmax=-100000000,tmin=100000000;i<n;i++){
    scanf("%d",&t);
    tsum += t;
    if(tmax=<t)tmax=t;
    if(tmin>=t)tmin=t;
  }
  printf("%d %d %d\n",tmin,tmax,tsum);
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:13: error: expected primary-expression before '<' token
   11 |     if(tmax=<t)tmax=t;
      |             ^
Language: C++

#include <stdio.h>

int main(){
  int n,i,t;
  int tmax,tmin;
  long long long int tsum;
  scanf("%d\n",&n);
  for(i=0,tsum=0,tmax=-100000000000,tmin=100000000000;i<n;i++){
    scanf("%d",&t);
    tsum += t;
    if(tmax<t)tmax=t;
    if(tmin>t)tmin=t;
  }
  printf("%d %d %d\n",tmin,tmax,tsum);
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:13: error: 'long long long' is too long for GCC
    6 |   long long long int tsum;
      |             ^~~~
a.cc:8:23: warning: overflow in conversion from 'long int' to 'int' changes value from '-100000000000' to '-1215752192' [-Woverflow]
    8 |   for(i=0,tsum=0,tmax=-100000000000,tmin=100000000000;i<n;i++){
      |                       ^~~~~~~~~~~~~
a.cc:8:42: warning: overflow in conversion from 'long int' to 'int' changes value from '100000000000' to '1215752192' [-Woverflow]
    8 |   for(i=0,tsum=0,tmax=-100000000000,tmin=100000000000;i<n;i++){
      |                                          ^~~~~~~~~~~~
Language: C++

#include "cstdio"
#include <algorithm>

using namespace std;

int main (){
    int n,mx=-1000000,mn=1000000
    long sum=0,a;
    scanf("%d",&n);
    for(int i=0;i<n;i++){
        scanf("%d",&a);
        mx = max(mx,a);
        mn = min(mn,a);
        sum += a;
    }
    printf("%d %d %l\n",mn,mx,sum);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: expected ',' or ';' before 'long'
    8 |     long sum=0,a;
      |     ^~~~
a.cc:11:21: error: 'a' was not declared in this scope
   11 |         scanf("%d",&a);
      |                     ^
a.cc:14:9: error: 'sum' was not declared in this scope
   14 |         sum += a;
      |         ^~~
a.cc:16:31: error: 'sum' was not declared in this scope
   16 |     printf("%d %d %l\n",mn,mx,sum);
      |                               ^~~
Language: C++

#include <iostream>
using namespace std;

int mian()
{
	int a[10000],n;
	int max=-1000001,min=1000001;
	int sum=0;
	
	cin>>n;
	for(int i=0;i<n;i++) cin>>a[i];

	for(int i=0;i<n;i++){
		if(max<a[i]) max=a[i];
		else if(min>a[i]) min=a[i];
		sum+=a[i];
	}
	cout<<min<<" "<<max<<" "<<sum<<endl;

	return 0;
}

Compiler output:
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

#include <iostream>
using namespace std;

int main()
{
	int a[10001], n;
	int max = -100001, min = 1000000;
	int sum = 0;

	cin >> n;

	for (int i = 0; i < n; i++) {
		cin >> a[i]
		if (max < a[i]) max = a[i];
		if (min > a[i]) min = a[i];
		sum += a[i];
	}
	cout << min << " " << max << " " << sum << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:28: error: expected ';' before 'if'
   13 |                 cin >> a[i]
      |                            ^
      |                            ;
   14 |                 if (max < a[i]) max = a[i];
      |                 ~~
Language: C++

#include <iostream>
using namespace std;

int main()
{
	int n;
	int a[10001], n;
	int max = -100000, min = 1000000;
	int sum = 0;

	cin >> n;

	for (int i = 0; i < n; i++) {
		cin >> a[i];
		if (max < a[i]) max = a[i];
		if (min > a[i]) min = a[i];
		sum += a[i];
	}
	cout << min << " " << max << " " << sum << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:23: error: redeclaration of 'int n'
    7 |         int a[10001], n;
      |                       ^
a.cc:6:13: note: 'int n' previously declared here
    6 |         int n;
      |             ^
Language: C++

#include <iostream>
#include <iomanip>
#include <cmath>
#include <vector>
#include <numeric>
using namespace std;

int main() {
	int n;
	cin >> n;
	
	vector<int> v(n);
	for(int i=0;i<n;i++){
		cin >> v[i];
	}
	
	int min = *min_element(v.begin() , v.end());
	int max = *max_element(v.begin() , v.end());
	int sum = accumulate(v.begin(), v.end(), 0);
	
	cout << min << ' ' << max << ' ' << sum << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:20: error: 'min_element' was not declared in this scope
   17 |         int min = *min_element(v.begin() , v.end());
      |                    ^~~~~~~~~~~
a.cc:18:20: error: 'max_element' was not declared in this scope
   18 |         int max = *max_element(v.begin() , v.end());
      |                    ^~~~~~~~~~~
Language: C++

#include <iostream>
#include <iomanip>
#include <cmath>
#include <vector>
#include <numeric>
#include <algorithm>
using namespace std;

int main() {
	int n;
	cin >> n;
	
	vector<long long int> v(n);
	for(int i=0;i<n;i++){
		cin >> v[i];
	}
	
	long long int min = *min_element(v.begin() , v.end());
	long long int max = *max_element(v.begin() , v.end());
	
	long long int sum = 0;
	for int (i=0;i<n;i++){
		sum += v[i];
	}
	
	cout << min << ' ' << max << ' ' << sum << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:13: error: expected '(' before 'int'
   22 |         for int (i=0;i<n;i++){
      |             ^~~
      |             (
a.cc:22:18: error: 'i' was not declared in this scope
   22 |         for int (i=0;i<n;i++){
      |                  ^
Language: C++

import java.util.Scanner;


public class Main {

	public static void main(String[] args) {
		Scanner stdin = new Scanner(System.in);
		int num = stdin.nextInt();
		
		long[] numbers = new long[num];
		long max = -1000001;
		long min = 1000001;
		long sum = 0;
	    
		for(int i = 0; i < num; i++) {
			numbers[i] = stdin.nextLong();
	          if(max < numbers[i]) max = numbers[i];
	          if(min > numbers[i]) min = numbers[i];
	          sum = sum + numbers[i];
		}
	
		
		System.out.println(min + max + sum);
		
		stdin.close();
	}

}

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

import java.util.Scanner;

public class Main{

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = Integer.parseInt(scan.nextLine());
		String input = scan.nextLine();
		String[] in = input.split(" ");
		if (n > 0 && n <= 10000) {
			long[] ai = new long[n];
			long minimum = 0;
			long maximum = 0;
			long sum = 0;
			for (int i = 0; i < n; i++) {
				int cktNum = Integer.parseInt(in[i]);
				if (cktNum >= -1000000 && cktNum <= 1000000) {
					ai[i] = cktNum;
					if (i == 0) {
						minimum = ai[i];
						maximum = ai[i];
					}

					sum += ai[i];

					if (maximum < ai[i]) {
						maximum = ai[i];
					}

					if (minimum > ai[i]) {
						minimum = ai[i];
					}
				} else {
					minimum = -1000001;
					maximum = 1000001;
					sum = 0;
					break;
				}
			}
			System.out.print(minimum + " ");
			System.out.print(maximum + " ");
			System.out.println(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++

import java.util.Scanner; 
 class HelloWorld {

	public static void main(String[] args){
		Scanner stdIn=new Scanner(System.in);
		int a=stdIn.nextInt();
		int b=0;
		int c=0,x=10000000,y=-10000000,z=0;
		while(c<a){
			b=stdIn.nextInt();
			if(b<=x)
				x=b;
			if(b>=y)
				y=b;
			z+=b;
			c++;
		}
		System.out.println(x+" "+y+" "+z);
	}

}

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:4:15: error: expected ':' before 'static'
    4 |         public static void main(String[] args){
      |               ^~~~~~~
      |               :
a.cc:4:33: error: 'String' has not been declared
    4 |         public static void main(String[] args){
      |                                 ^~~~~~
a.cc:4:42: error: expected ',' or '...' before 'args'
    4 |         public static void main(String[] args){
      |                                          ^~~~
a.cc:21:2: error: expected ';' after class definition
   21 | }
      |  ^
      |  ;
a.cc: In static member function 'static void HelloWorld::main(int*)':
a.cc:5:17: error: 'Scanner' was not declared in this scope
    5 |                 Scanner stdIn=new Scanner(System.in);
      |                 ^~~~~~~
a.cc:6:23: error: 'stdIn' was not declared in this scope; did you mean 'std'?
    6 |                 int a=stdIn.nextInt();
      |                       ^~~~~
      |                       std
a.cc:18:17: error: 'System' was not declared in this scope
   18 |                 System.out.println(x+" "+y+" "+z);
      |                 ^~~~~~
a.cc:18:43: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+'
   18 |                 System.out.println(x+" "+y+" "+z);
      |                                    ~~~~~~~^~~~
      |                                         |  |
      |                                         |  const char [2]
      |                                         const char*
Language: C++

#include <iostream>

int main()
{
	int n, min {1000000}, max {0}, sum;
	cin >> n;
	int a[n];
	for (int i=0; i!=n; ++i) {
		cin >> a[i];
		min = a[i] < min ? a[i] : min;
		max = a[i] > max ? a[i] : max;
		sum += a[i];
	}
	cout << min << ' ' << max << ' ' << sum << '\n';
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |         cin >> n;
      |         ^~~
      |         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:14:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   14 |         cout << min << ' ' << max << ' ' << sum << '\n';
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include <iostream>
using namespace std;
??
int main()
{
????????int n = 0, a = 0, min = 1000001, max = -1000001, ttl = 0;
??
????????cin >> n;
??
????????for (int i = 0; i < n; i++) {
????????????????cin >> a;
????????????????if (min > a)
????????????????????????min = a;
????????????????if (max < a)
????????????????????????max = a;
????????????????ttl += a;
????????}
??
????????cout << min << " " << max << " " << ttl << endl;
??
????????return 0;
}

Compiler output:
a.cc:3:1: error: expected unqualified-id before '?' token
    3 | ??
      | ^
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int main(){
    int n;
    cin >> n;
    
    long minV = 1000000;
    long maxV = -1000000;
    long sum = 0;
    int a;
    for(int i = 0; i < n; i++){
        cin >> a
        sum += a;
        if (a > maxV) maxV = a;
        if (a < minV) minV = a;
    }
    cout << minV << " " << maxV << " " << sum << endl;;

return 0;
}
    

Compiler output:
a.cc: In function 'int main()':
a.cc:14:17: error: expected ';' before 'sum'
   14 |         cin >> a
      |                 ^
      |                 ;
   15 |         sum += a;
      |         ~~~
Language: C++

import sys
x = sys.stdin.readlines()
a = list(map(int, x[1].strip())
min_num = min(a)
max_num = max(a)
sum_num = sum(a)
print("{} {} {}".format(min_num, max_num, sum_num))

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import sys
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

import sys
x = sys.stdin.readlines()
a = list(map(int, x[1].strip()))
min_num = min(a)
max_num = max(a)
sum_num = sum(a)
print("{} {} {}".format(min_num, max_num, sum_num))

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import sys
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

input()
A = list(map(int, input().split())
min_num = min(A)
max_num = max(A)
sum_num = sum(A)
print("{} {} {}".format(min_num, max_num, sum_num))

Compiler output:
a.cc:2:1: error: expected constructor, destructor, or type conversion before 'A'
    2 | A = list(map(int, input().split())
      | ^
Language: C++

#include <iostream>
#include <stdio.h>

int main() {
    int n;
    long min = 1000000;
    long max = -1000000;
    long sum = 0;

    scanf("%d", &n);
    for (int i = 0; i < n; i++) {
        int tmp;
        std::cin >> tmp;
        sum += tmp;
        if (min > tmp) min = tmp;
        if (max < tmp) max = tmp;
    }
    
    std::cout << min << " " << max << " " << sum << endl;
    
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:53: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   19 |     std::cout << min << " " << max << " " << sum << endl;
      |                                                     ^~~~
      |                                                     std::endl
In file included from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <algorithm>
#include <cstdio>
#include <vector>
using namespace std;

int main ()
{
  int n, x;
  int min, max;
  int sum = 0;
  vector<int> data(10000);

  for (int i = 0; i < n; i++) {
    scanf("%d", &x);
    data[i] = x;
    sum += x;
  }

  min = min(data);
  max = max(data);

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

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:12: error: 'min' cannot be used as a function
   19 |   min = min(data);
      |         ~~~^~~~~~
a.cc:20:12: error: 'max' cannot be used as a function
   20 |   max = max(data);
      |         ~~~^~~~~~
Language: C++

#include <algorithm>
#include <cstdio>
#include <vector>
using namespace std;

int main ()
{
  int n, x;
  int min, max;
  int sum = 0;
  vector<int> data(10000);

  scanf("%d", &n);
  for (int i = 0; i < n; i++) {
    scanf("%d", &x);
    data[i] = x;
    sum += x;
  }

  min = min(data);
  max = max(data);

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

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:12: error: 'min' cannot be used as a function
   20 |   min = min(data);
      |         ~~~^~~~~~
a.cc:21:12: error: 'max' cannot be used as a function
   21 |   max = max(data);
      |         ~~~^~~~~~
Language: C++

#include <algorithm>
#include <cstdio>
#include <vector>
using namespace std;

int main ()
{
  int n, x;
  int min, max;
  int sum = 0;
  vector<int> data(10000);

  scanf("%d", &n);
  for (int i = 0; i < n; i++) {
    scanf("%d", &x);
    data[i] = x;
    sum += x;
  }

  min = min_element(data.begin(), data.end());
  max = max_element(data.begin(), data.end());

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

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:20: error: cannot convert '__gnu_cxx::__normal_iterator<int*, std::vector<int> >' to 'int' in assignment
   20 |   min = min_element(data.begin(), data.end());
      |         ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
      |                    |
      |                    __gnu_cxx::__normal_iterator<int*, std::vector<int> >
a.cc:21:20: error: cannot convert '__gnu_cxx::__normal_iterator<int*, std::vector<int> >' to 'int' in assignment
   21 |   max = max_element(data.begin(), data.end());
      |         ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
      |                    |
      |                    __gnu_cxx::__normal_iterator<int*, std::vector<int> >
Language: C++

#include<bits/stdc++.h>
#define ll long long int
#define FOR(i,a,b) for(ll i=(ll)(a);i<(ll)(b);i++)
#define REP(i,n) FOR(i,0,n)
#define REP1(i,n) FOR(i,1,n)

int main() {
  int n, a, min, max, sum;
  min = 1000001;
  max = -1000001;
  sum = 0;
  cin >> n;
  REP(i, n) {
    cin >> a;
    if (a < min) min = a;
    else if (a > max) max = a;
    sum += a;
  }
  cout << min << " " << max << " " << sum << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   12 |   cin >> n;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 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:19:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   19 |   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:19:46: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   19 |   cout << min << " " << max << " " << sum << endl;
      |                                              ^~~~
      |                                              std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/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(void)
{
    int n;
    cin >> n;
    int max_n = INT_MIN;
    int min_n = INT_MAX;
    int sum = 0;
    for (int i = 0; i < n; i++)
    {
        int x;
        cin >> x;
        if (min_n > x)
            min_n = x;
        if (max_n < x)
            max_n = x;
        sum += x;
    }
    cout << min_n << ' ' << max_n << ' ' << sum << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:17: error: 'INT_MIN' was not declared in this scope
    8 |     int max_n = INT_MIN;
      |                 ^~~~~~~
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 | using namespace std;
a.cc:9:17: error: 'INT_MAX' was not declared in this scope
    9 |     int min_n = INT_MAX;
      |                 ^~~~~~~
a.cc:9:17: note: 'INT_MAX' is defined in header '<climits>'; this is probably fixable by adding '#include <climits>'
Language: C++

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

Compiler output:
a.cc:1:20: warning: extra tokens at end of #include directive
    1 | # include <stdio.h><font></font>
      |                    ^~~~~~
a.cc:2:1: error: expected unqualified-id before '<' token
    2 | <font></font>
      | ^
a.cc:22:2: error: expected unqualified-id before '<' token
   22 | }<font></font>
      |  ^
Language: C++

#include <stdio.h>
#include <math.h>
#include <stdlib.h>

int main(){
int max,min,i,n,a[10000];
long long long sum;

sum=0;

scanf("%d",&n);

for(i=0;i<n;i++){
    scanf("%d",&a[i]);
   }

max=min=a[0];

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

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

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: 'long long long' is too long for GCC
    7 | long long long sum;
      |           ^~~~
Language: C++

#include <stdio.h>
#include <math.h>
#include <stdlib.h>

int main(){
int max,min,i,n,a[10000];
long long long int sum;

sum=0;

scanf("%d",&n);

for(i=0;i<n;i++){
    scanf("%d",&a[i]);
   }

max=min=a[0];

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

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

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: 'long long long' is too long for GCC
    7 | long long long int sum;
      |           ^~~~
Language: C++

#include<vector>
#include<iostream>
#include<algorithm>
using namespace std;
int main() {
	int n;
	cin >> n;
	vector<int>v(n);
	for (int i = 0;i < n;i++) {
		cin >> v[i];
	}
	sort(v.begin(), v.end());
	int sum=0;
	for (int i = 0;i < n;i++) {
		sum=sum+v[i]
	}
	cout << v[0] << " " << v[n] << " " << sum << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:29: error: expected ';' before '}' token
   15 |                 sum=sum+v[i]
      |                             ^
      |                             ;
   16 |         }
      |         ~
Language: C++

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

int main() {
	int n, max, min, sum;
	cin >> n;
	vector<int> a(n);
	for (int i = 0; i <= n - 1; i++) {
		cin >> a[n];
	}
	min = min_element(a.begin(), a.end());
	max = max_element(a.begin(), a.end());
	sum = accumulate((a.begin(), a.end());
	cout << min << " " << max << " " << sum << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:26: error: cannot convert '__gnu_cxx::__normal_iterator<int*, std::vector<int> >' to 'int' in assignment
   13 |         min = min_element(a.begin(), a.end());
      |               ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
      |                          |
      |                          __gnu_cxx::__normal_iterator<int*, std::vector<int> >
a.cc:14:26: error: cannot convert '__gnu_cxx::__normal_iterator<int*, std::vector<int> >' to 'int' in assignment
   14 |         max = max_element(a.begin(), a.end());
      |               ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
      |                          |
      |                          __gnu_cxx::__normal_iterator<int*, std::vector<int> >
a.cc:15:34: warning: ignoring return value of 'std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::begin() [with _Tp = int; _Alloc = std::allocator<int>; iterator = std::vector<int>::iterator]', declared with attribute 'nodiscard' [-Wunused-result]
   15 |         sum = accumulate((a.begin(), a.end());
      |                           ~~~~~~~^~
In file included from /usr/include/c++/14/vector:66,
                 from a.cc:2:
/usr/include/c++/14/bits/stl_vector.h:873:7: note: declared here
  873 |       begin() _GLIBCXX_NOEXCEPT
      |       ^~~~~
a.cc:15:46: error: expected ')' before ';' token
   15 |         sum = accumulate((a.begin(), a.end());
      |                         ~                    ^
      |                                              )
Language: C++

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

int main() {
	int n, min, max, sum;
	cin >> n;
	int a[n];
	for (int i = 0; i <= n - 1; i++) {
		cin >> a[n];
	}
	min = min_element(a.begin(), a.end());
	max = max_element(a.begin(), a.end());
	sum = accumulate((a.begin(), a.end());
	cout << min << " " << max << " " << sum << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:29: error: request for member 'begin' in 'a', which is of non-class type 'int [n]'
   12 |         min = min_element(a.begin(), a.end());
      |                             ^~~~~
a.cc:12:40: error: request for member 'end' in 'a', which is of non-class type 'int [n]'
   12 |         min = min_element(a.begin(), a.end());
      |                                        ^~~
a.cc:13:29: error: request for member 'begin' in 'a', which is of non-class type 'int [n]'
   13 |         max = max_element(a.begin(), a.end());
      |                             ^~~~~
a.cc:13:40: error: request for member 'end' in 'a', which is of non-class type 'int [n]'
   13 |         max = max_element(a.begin(), a.end());
      |                                        ^~~
a.cc:14:29: error: request for member 'begin' in 'a', which is of non-class type 'int [n]'
   14 |         sum = accumulate((a.begin(), a.end());
      |                             ^~~~~
a.cc:14:40: error: request for member 'end' in 'a', which is of non-class type 'int [n]'
   14 |         sum = accumulate((a.begin(), a.end());
      |                                        ^~~
Language: C++

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

int main() {
	int n, min, max, sum;
	cin >> n;
	int a[n];
	for (int i = 0; i <= n - 1; i++) {
		cin >> a[n];
	}
	min = min_element(a.begin(), a.end());
	max = max_element(a.begin(), a.end());
	sum = accumulate(a.begin(), a.end());
	cout << min << " " << max << " " << sum << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:29: error: request for member 'begin' in 'a', which is of non-class type 'int [n]'
   12 |         min = min_element(a.begin(), a.end());
      |                             ^~~~~
a.cc:12:40: error: request for member 'end' in 'a', which is of non-class type 'int [n]'
   12 |         min = min_element(a.begin(), a.end());
      |                                        ^~~
a.cc:13:29: error: request for member 'begin' in 'a', which is of non-class type 'int [n]'
   13 |         max = max_element(a.begin(), a.end());
      |                             ^~~~~
a.cc:13:40: error: request for member 'end' in 'a', which is of non-class type 'int [n]'
   13 |         max = max_element(a.begin(), a.end());
      |                                        ^~~
a.cc:14:28: error: request for member 'begin' in 'a', which is of non-class type 'int [n]'
   14 |         sum = accumulate(a.begin(), a.end());
      |                            ^~~~~
a.cc:14:39: error: request for member 'end' in 'a', which is of non-class type 'int [n]'
   14 |         sum = accumulate(a.begin(), a.end());
      |                                       ^~~
a.cc:14:15: error: 'accumulate' was not declared in this scope
   14 |         sum = accumulate(a.begin(), a.end());
      |               ^~~~~~~~~~
Language: C++

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

int main() {
	int n;
	int min = INT_MAX;
	int max = INT_MIN;
	int sum;
	cin >> n;
	vector<int> a;
	a.resize(n);
	for (int i = 0; i <= n - 1; i++) {
		cin >> a[n];
	}
	for (int i = 0; i <= a.size(); ++i) {
		if (a[i] > max) {
			max = a[i];
		}
		if (a[i] < min) {
			min = a[i];
		}
		sum += a[i]
	}
	cout << min << " " << max << " " << sum << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:19: error: 'INT_MAX' was not declared in this scope
    7 |         int min = INT_MAX;
      |                   ^~~~~~~
a.cc:3:1: note: 'INT_MAX' is defined in header '<climits>'; this is probably fixable by adding '#include <climits>'
    2 | #include <vector>
  +++ |+#include <climits>
    3 | using namespace std;
a.cc:8:19: error: 'INT_MIN' was not declared in this scope
    8 |         int max = INT_MIN;
      |                   ^~~~~~~
a.cc:8:19: note: 'INT_MIN' is defined in header '<climits>'; this is probably fixable by adding '#include <climits>'
a.cc:23:28: error: expected ';' before '}' token
   23 |                 sum += a[i]
      |                            ^
      |                            ;
   24 |         }
      |         ~
Language: C++

input()
b=[int(a) for a in input().split()]
print(min(b),max(b),sum(b)')

Compiler output:
a.cc:3:27: warning: missing terminating ' character
    3 | print(min(b),max(b),sum(b)')
      |                           ^
a.cc:3:27: error: missing terminating ' character
    3 | print(min(b),max(b),sum(b)')
      |                           ^~
a.cc:2:1: error: expected constructor, destructor, or type conversion before 'b'
    2 | b=[int(a) for a in input().split()]
      | ^
Language: C++

#include <iostream>
#include <cstdio>

int main() {
int n;
int min = INT_MAX;
int max = INT_MIN;
long long sum = 0;
long long* a = new long long[n];

std::cin >> n;
for(int i = 0; i < n; i++) {
std::cin >> a[i];
if(min > a[i]) {
min = a[i];
}
if(max < a[i]) {
max = a[i];
}
sum += a[i];
}
std::cout << min << ' ' << max << ' ' << sum << std::endl;
}

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