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

// ConsoleApplication7.cpp : ??????????????? ??¢????????±????????§????????¨????????? ?????????????????????????????????
//

#include <stdio.h>
#include <limits.h>

using namespace std;

int _tmain(int argc, _TCHAR* argv[])
{
	int n, cn;
	int min = INT_MAX, max = INT_MIN, sum = 0;

	cin >> n;

	for (int i = 0; i < n; i++) {
		cin >> a >> op >> b;
		min = std::min(min, cn);
		max = std::min(min, cn);
		sum += cn;
	}
	cout << min << " " << max << " " << sum << endl;

	return 0;
}

Compiler output:
a.cc:9:22: error: '_TCHAR' has not been declared
    9 | int _tmain(int argc, _TCHAR* argv[])
      |                      ^~~~~~
a.cc: In function 'int _tmain(int, int**)':
a.cc:14:9: error: 'cin' was not declared in this scope
   14 |         cin >> n;
      |         ^~~
a.cc:6:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    5 | #include <limits.h>
  +++ |+#include <iostream>
    6 | 
a.cc:17:24: error: 'a' was not declared in this scope
   17 |                 cin >> a >> op >> b;
      |                        ^
a.cc:17:29: error: 'op' was not declared in this scope
   17 |                 cin >> a >> op >> b;
      |                             ^~
a.cc:17:35: error: 'b' was not declared in this scope
   17 |                 cin >> a >> op >> b;
      |                                   ^
a.cc:18:28: error: 'min' is not a member of 'std'
   18 |                 min = std::min(min, cn);
      |                            ^~~
a.cc:19:28: error: 'min' is not a member of 'std'
   19 |                 max = std::min(min, cn);
      |                            ^~~
a.cc:22:9: error: 'cout' was not declared in this scope
   22 |         cout << min << " " << max << " " << sum << endl;
      |         ^~~~
a.cc:22:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:22:52: error: 'endl' was not declared in this scope
   22 |         cout << min << " " << max << " " << sum << endl;
      |                                                    ^~~~
a.cc:6:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    5 | #include <limits.h>
  +++ |+#include <ostream>
    6 |
Language: C++

// ConsoleApplication7.cpp : ??????????????? ??¢????????±????????§????????¨????????? ?????????????????????????????????
//

#include <stdio.h>
#include <limits.h>

using namespace std;

int main(int argc, char* argv[])
{
	int n, cn;
	int min = INT_MAX, max = INT_MIN, sum = 0;

	cin >> n;

	for (int i = 0; i < n; i++) {
		cin >> a >> op >> b;
		min = std::min(min, cn);
		max = std::min(min, cn);
		sum += cn;
	}
	cout << min << " " << max << " " << sum << endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:14:9: error: 'cin' was not declared in this scope
   14 |         cin >> n;
      |         ^~~
a.cc:6:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    5 | #include <limits.h>
  +++ |+#include <iostream>
    6 | 
a.cc:17:24: error: 'a' was not declared in this scope
   17 |                 cin >> a >> op >> b;
      |                        ^
a.cc:17:29: error: 'op' was not declared in this scope
   17 |                 cin >> a >> op >> b;
      |                             ^~
a.cc:17:35: error: 'b' was not declared in this scope
   17 |                 cin >> a >> op >> b;
      |                                   ^
a.cc:18:28: error: 'min' is not a member of 'std'
   18 |                 min = std::min(min, cn);
      |                            ^~~
a.cc:19:28: error: 'min' is not a member of 'std'
   19 |                 max = std::min(min, cn);
      |                            ^~~
a.cc:22:9: error: 'cout' was not declared in this scope
   22 |         cout << min << " " << max << " " << sum << endl;
      |         ^~~~
a.cc:22:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:22:52: error: 'endl' was not declared in this scope
   22 |         cout << min << " " << max << " " << sum << endl;
      |                                                    ^~~~
a.cc:6:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    5 | #include <limits.h>
  +++ |+#include <ostream>
    6 |
Language: C++

// ConsoleApplication7.cpp : ??????????????? ??¢????????±????????§????????¨????????? ?????????????????????????????????
//

#include <stdio.h>
#include <limits.h>
#include <bits/stdc++.h>

using namespace std;

int main(int argc, char* argv[])
{
	int n, cn;
	int min = INT_MAX, max = INT_MIN, sum = 0;

	cin >> n;

	for (int i = 0; i < n; i++) {
		cin >> a >> op >> b;
		min = std::min(min, cn);
		max = std::min(min, cn);
		sum += cn;
	}
	cout << min << " " << max << " " << sum << endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:18:24: error: 'a' was not declared in this scope
   18 |                 cin >> a >> op >> b;
      |                        ^
a.cc:18:29: error: 'op' was not declared in this scope
   18 |                 cin >> a >> op >> b;
      |                             ^~
a.cc:18:35: error: 'b' was not declared in this scope
   18 |                 cin >> a >> op >> b;
      |                                   ^
Language: C++

// ConsoleApplication7.cpp : ??????????????? ??¢????????±????????§????????¨????????? ?????????????????????????????????
//

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

using namespace std;

int main(int argc, char* argv[])
{
	int n, cn;
	int min = INT_MAX, max = INT_MIN, sum = 0;

	cin >> n;

	for (int i = 0; i < n; i++) {
		cin >> cn;
		min = std::min(min, cn);
		max = std::min(min, cn);
		sum += cn;
	}
	cout << min << " " << max << " " << sum << endl;

	return 0;
}

Compiler output:
a.cc:5:10: fatal error: limit.h: No such file or directory
    5 | #include <limit.h>
      |          ^~~~~~~~~
compilation terminated.
Language: C++

#include <bits/stdc++.h>
using namespace std;

int n;
int i;

int main() {
  cin >> i;
  int b = 0;
  int a[i];
  for (; b < i; ++b) {
    cin >> a[b];
  }
  sort(a,a+i);
  int d;
  for (int c = 0; c < i; ++c) {
    d = d + a[c];
  }
  cout << a[0] << a[c] << d << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:21: error: 'c' was not declared in this scope
   19 |   cout << a[0] << a[c] << d << endl;
      |                     ^
Language: C++

#include <bits/stdc++.h>
using namespace std;

int n;
int i;

int main() {
  cin >> i;
  int b = 0;
  int a[i];
  for (; b < i; ++b) {
    cin >> a[b];
  }
  sort(a,a+i);
  int d;
  int e;
  for (int c = 0; c < i; ++c) {
    d = d + a[c];
    e = c
  }
  cout << a[0] << a[e] << d << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:10: error: expected ';' before '}' token
   19 |     e = c
      |          ^
      |          ;
   20 |   }
      |   ~
Language: C++

# include<iostream>

using namespace std;
int main(){
	int n;
	int a[11000];
	int max = -1000000;
	int mi = 1000000;
	int to = 0;
	cin >> n;javascript:void(0)
	for (int i = 0; i < n; i++){
		cin >> a[i];
		if (a[i]>max){
			max = a[i];
		}
		if (a[i] < mi){
			mi = a[i];
		}
		to = to + a[i];
	}
	cout << mi << " " << max << " " << to << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:36: error: expected ';' before 'for'
   10 |         cin >> n;javascript:void(0)
      |                                    ^
      |                                    ;
   11 |         for (int i = 0; i < n; i++){
      |         ~~~                         
a.cc:11:25: error: 'i' was not declared in this scope; did you mean 'mi'?
   11 |         for (int i = 0; i < n; i++){
      |                         ^
      |                         mi
Language: C++

#include <bits/stdc++.h>
using namespace std;

int n;
int sum;
int a[10000];
int b = 0;
int c = 0;

int main() {
  cin >> n;
  for (; b < n; ++b ) {
    cin >> a[b];
  }

  sort(a;a+n);

  for (; c < n; ++c ) {
    sum = sum + a[c];
  }

  cout << a[0] << " " << a[b] << " " << sum << endl;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:9: error: expected ')' before ';' token
   16 |   sort(a;a+n);
      |       ~ ^
      |         )
a.cc:16:13: error: expected ';' before ')' token
   16 |   sort(a;a+n);
      |             ^
      |             ;
Language: C++

#include<iostream>
using namespace std;
int main(){
	int n;
	cin >> n;
	int a[10000] = { 0 };
	int b[10000] = { 0 };
	int temp;
	int M=0

	for (int i = 0; i < n; i++){
		cin >> a[i];
		b[i] = a[i];
	}

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

	for (int i = 0; i < n; i++){
		for (int i = 0; i < n; i++){
			if (a[i]>a[i + 1]){
				temp = a[i];
				a[i] = a[i + 1];
				a[i + 1] = temp;
			}
		}
	}

	cout << a[0] << " ";

	for (int i = 0; i < n; i++){
		for (int i = 0; i < n; i++){
			if (b[i] < b[i + 1]){
				temp = b[i];
				b[i] = b[i + 1];
				b[i + 1] = temp;
			}
		}
	}
	cout << b[0] << " " << M << endl;
	return 0;
}

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

p#include<iostream>
using namespace std;
int main(){
	int n;
	cin >> n;
	int a[10000] = { 0 };
	int b[10000] = { 0 };
	long int M = 0;

	for (int i = 0; i < n; i++){
		cin >> a[i];
	}

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

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

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

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

Compiler output:
a.cc:1:2: error: stray '#' in program
    1 | p#include<iostream>
      |  ^
a.cc:1:1: error: 'p' does not name a type
    1 | p#include<iostream>
      | ^
a.cc: In function 'int main()':
a.cc:5:9: error: 'cin' was not declared in this scope
    5 |         cin >> n;
      |         ^~~
a.cc:36:9: error: 'cout' was not declared in this scope
   36 |         cout << max << " "<< min << " " << M << endl;
      |         ^~~~
a.cc:36:49: error: 'endl' was not declared in this scope
   36 |         cout << max << " "<< min << " " << M << endl;
      |                                                 ^~~~
Language: C++

#include <iostream>
using namespace std;

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

  cin >> n;
  while (n > 0) {
    cin >> a;
    sum += a;
    if (a > max) max = a;
    if (a < min) min = a;
    n--;
  }

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

  return 0;
}
uuu

Compiler output:
a.cc:20:1: error: 'uuu' does not name a type
   20 | uuu
      | ^~~
Language: C++

#include<iostream>
using namespace std;

int main(){
 int n;
 long long a;
 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:10:2: error: expected ',' or ';' before 'cin'
   10 |  cin >> n;
      |  ^~~
a.cc:19:48: error: expected primary-expression before '=' token
   19 |  cout << minValue << " " << maxValue << " " << = sum << endl;
      |                                                ^
a.cc:19:54: error: invalid operands of types 'long long int' and '<unresolved overloaded function type>' to binary 'operator<<'
   19 |  cout << minValue << " " << maxValue << " " << = sum << endl;
      |                                                  ~~~~^~~~~~~
Language: C++

#include<iostream>
using namespace std;

int main(){
 int n;
 long long a;
 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:11:2: error: expected ',' or ';' before 'cin'
   11 |  cin >> n;
      |  ^~~
Language: C++

#include <iostream>
#include <algorithm>

using namespace std;

int main(void)
{
	int n;
	int *a;
	int mi, ma;
	int sum;

	cin >> n;
	a = new int[n];

	mi = ma = sum = a[0];
	for (int i = 1, i < n && cin >> a[i]; cin >> a[i]; i++) {
		mi = min(a[i], mi);
		ma = max(a[i], ma);
		sum += a[i];
	}	

	cout << mi << ' ' << ma << ' ' << sum << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:26: error: expected ';' before '<' token
   17 |         for (int i = 1, i < n && cin >> a[i]; cin >> a[i]; i++) {
      |                          ^~
      |                          ;
a.cc:17:27: error: expected primary-expression before '<' token
   17 |         for (int i = 1, i < n && cin >> a[i]; cin >> a[i]; i++) {
      |                           ^
a.cc:17:58: error: expected ')' before ';' token
   17 |         for (int i = 1, i < n && cin >> a[i]; cin >> a[i]; i++) {
      |             ~                                            ^
      |                                                          )
a.cc:17:60: error: 'i' was not declared in this scope; did you mean 'mi'?
   17 |         for (int i = 1, i < n && cin >> a[i]; cin >> a[i]; i++) {
      |                                                            ^
      |                                                            mi
Language: C++

#include <iostream>
using namespace std;

int main() {
	int n=0;
	cin>>n;
	int a[10001];
	int g=0;
	int ma=0;
	int mi=0;
	for(int i=0;i<10001;i++){
		a[i]=0;
	}
	for(int i=0;i<n;i++){
		cin>>a[i];
	}
	for(int i=0;i<n;i++){
		g=g+a[i];
	}
	int ma=a[0];
	int mi=a[0];
	for(int i=1;i<n;i++){
		if(ma<a[i]){
			ma=a[i];
		}
		if(mi>a[i]){
			mi=a[i];
		}
	}
	cout<<g<<" "<<ma<<" "<<mi<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:13: error: redeclaration of 'int ma'
   20 |         int ma=a[0];
      |             ^~
a.cc:9:13: note: 'int ma' previously declared here
    9 |         int ma=0;
      |             ^~
a.cc:21:13: error: redeclaration of 'int mi'
   21 |         int mi=a[0];
      |             ^~
a.cc:10:13: note: 'int mi' previously declared here
   10 |         int mi=0;
      |             ^~
Language: C++

#include<stdio.h>
int main(void){
	int a[10000]={0},i,k,max,small,gou;
        man=0;
        small=0;
	scanf("%d",&i);
	for(k=0;k<=i;k++){
		scanf("%d",&a[k]);
	}
	max=a[0];
	small=a[0];
	for(k=0;k<=i;k++){
	
		if(max<a[k]){
		max=a[k];
		}
		
		if(small>a[k]){
		small=a[k];
		}
		gou+=a[k];
		
	}
	
	printf("%d %d %d\n",small,max,gou);
	
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: 'man' was not declared in this scope; did you mean 'max'?
    4 |         man=0;
      |         ^~~
      |         max
Language: C++

#include <iostream>
#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];

	sort(V.begin(),V.end());

	cout << V[0] << " " << V[n-1] << " " << accumulate(V.begin(), V.end(), 0) << endl;
	
	return 0;
}

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

#include<iostream>

int main(){
  int n, min, max, sum;
  std::vector<int> v;
  std::cin >> n;
  for(int i = 0; i < n; i++){
    std::cin >> v[i];
  }
  min = v[0];
  max = v[0];
  sum = 0;
   for(int j = 0; j < n; J++){
     if (v[i] < min) {
       min = v[i];
     }
     if (max < v[i]) {
       max = v[i];
     }
     sum += v[i];
   }
   std::cout << min << " " << max << " " << sum << std::endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:8: error: 'vector' is not a member of 'std'
    5 |   std::vector<int> v;
      |        ^~~~~~
a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    1 | #include<iostream>
  +++ |+#include <vector>
    2 | 
a.cc:5:15: error: expected primary-expression before 'int'
    5 |   std::vector<int> v;
      |               ^~~
a.cc:8:17: error: 'v' was not declared in this scope
    8 |     std::cin >> v[i];
      |                 ^
a.cc:10:9: error: 'v' was not declared in this scope
   10 |   min = v[0];
      |         ^
a.cc:13:26: error: 'J' was not declared in this scope
   13 |    for(int j = 0; j < n; J++){
      |                          ^
a.cc:14:12: error: 'i' was not declared in this scope
   14 |      if (v[i] < min) {
      |            ^
a.cc:17:18: error: 'i' was not declared in this scope
   17 |      if (max < v[i]) {
      |                  ^
a.cc:20:15: error: 'i' was not declared in this scope
   20 |      sum += v[i];
      |               ^
Language: C++

#include<iostream>
#include<vector>

int main(){
  int n, min, max, sum;
  std::vector<int> v;
  std::cin >> n;
  for(int i = 0; i < n; i++){
    std::cin >> v[i];
  }
  min = v[0];
  max = v[0];
  sum = 0;
   for(int j = 0; j < n; J++){
     if (v[i] < min) {
       min = v[i];
     }
     if (max < v[i]) {
       max = v[i];
     }
     sum += v[i];
   }
   std::cout << min << " " << max << " " << sum << std::endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:26: error: 'J' was not declared in this scope
   14 |    for(int j = 0; j < n; J++){
      |                          ^
a.cc:15:12: error: 'i' was not declared in this scope
   15 |      if (v[i] < min) {
      |            ^
a.cc:18:18: error: 'i' was not declared in this scope
   18 |      if (max < v[i]) {
      |                  ^
a.cc:21:15: error: 'i' was not declared in this scope
   21 |      sum += v[i];
      |               ^
Language: C++

#include<iostream>
#include<vector>

int main(){
  int n, min, max, sum;
  std::vector<int> v;
  std::cin >> n;
  for(int i = 0; i < n; i++){
    std::cin >> v[i];
  }
  min = v[0];
  max = v[0];
  sum = 0;
   for(int j = 0; j < n; j++){
     if (v[i] < min) {
       min = v[i];
     }
     if (max < v[i]) {
       max = v[i];
     }
     sum += v[i];
   }
   std::cout << min << " " << max << " " << sum << std::endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:12: error: 'i' was not declared in this scope
   15 |      if (v[i] < min) {
      |            ^
a.cc:18:18: error: 'i' was not declared in this scope
   18 |      if (max < v[i]) {
      |                  ^
a.cc:21:15: error: 'i' was not declared in this scope
   21 |      sum += v[i];
      |               ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:15:37: error: 'num' was not declared in this scope; did you mean 'sum'?
   15 |         printf("%d %d %d\n",min,Max,num);
      |                                     ^~~
      |                                     sum
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:25: error: invalid types 'int[int]' for array subscript
    9 |                 if(Max<x[i]){
      |                         ^
Language: C++

#include <iostream>
#include <cstdio>
#include <cmath>
using namespace std;

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

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

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'INT_MIN' was not declared in this scope
    8 |   max = INT_MIN;
      |         ^~~~~~~
a.cc:4:1: note: 'INT_MIN' is defined in header '<climits>'; this is probably fixable by adding '#include <climits>'
    3 | #include <cmath>
  +++ |+#include <climits>
    4 | using namespace std;
a.cc:9:9: error: 'INT_MAX' was not declared in this scope
    9 |   min = INT_MAX;
      |         ^~~~~~~
a.cc:9:9: note: 'INT_MAX' is defined in header '<climits>'; this is probably fixable by adding '#include <climits>'
Language: C++

#include<iostream>
#include<stdio.h>
int main(){
int c,x,y,s,t,u;
y=0;
s=0;
t=0;
cin>>x;
int a[x];
long b[x-1];
while(y==x){
cin>>a[y];
y++;
}
while(t==x){
u=0;
while(u==t+1){
if(a[u]>a[t])break;
else
c=a[t];
u++;
}
t++;
}
while(v==x){
w=0;
while(w==v+1){
if(a[w]<a[v])break;
else
c=a[v];
w++;
}
v++;
}
while(s+2==x){
a[0]+a[1]=b[0];
b[s+1]=b[s]+a[s+2];
s++;
}
cout<<a[t]<<" "<<a[w]<<" "<<b[s+1]<<endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    8 | cin>>x;
      | ^~~
      | 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:25:7: error: 'v' was not declared in this scope
   25 | while(v==x){
      |       ^
a.cc:26:1: error: 'w' was not declared in this scope
   26 | w=0;
      | ^
a.cc:36:5: error: lvalue required as left operand of assignment
   36 | a[0]+a[1]=b[0];
      | ~~~~^~~~~
a.cc:40:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   40 | cout<<a[t]<<" "<<a[w]<<" "<<b[s+1]<<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:40:20: error: 'w' was not declared in this scope
   40 | cout<<a[t]<<" "<<a[w]<<" "<<b[s+1]<<endl;
      |                    ^
a.cc:40:37: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   40 | cout<<a[t]<<" "<<a[w]<<" "<<b[s+1]<<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<stdio.h>
int main(){
int c,x,y,s,t,u;
y=0;
s=0;
t=0;
cin>>x;
int a[x];
long b[x-1];
while(y==x){
cin>>a[y];
y++;
}
while(t==x){
u=0;
while(u==t+1){
if(a[u]>a[t])break;
else
a[t];
u++;
}
t++;
}
while(v==x){
w=0;
while(w==v+1){
if(a[w]<a[v])break;
else
a[v];
w++;
}
v++;
}
while(s+2==x){
a[0]+a[1]=b[0];
b[s+1]=b[s]+a[s+2];
s++;
}
cout<<a[t]<<" "<<a[v]<<" "<<b[s+1]<<endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    8 | cin>>x;
      | ^~~
      | 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:25:7: error: 'v' was not declared in this scope
   25 | while(v==x){
      |       ^
a.cc:26:1: error: 'w' was not declared in this scope
   26 | w=0;
      | ^
a.cc:36:5: error: lvalue required as left operand of assignment
   36 | a[0]+a[1]=b[0];
      | ~~~~^~~~~
a.cc:40:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   40 | cout<<a[t]<<" "<<a[v]<<" "<<b[s+1]<<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:40:20: error: 'v' was not declared in this scope
   40 | cout<<a[t]<<" "<<a[v]<<" "<<b[s+1]<<endl;
      |                    ^
a.cc:40:37: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   40 | cout<<a[t]<<" "<<a[v]<<" "<<b[s+1]<<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<stdio.h>
int main(){
int x,y,s,t,u;
y=0;
s=0;
t=0;
cin>>x;
int a[x];
long b[x-1];
while(y==x){
cin>>a[y];
y++;
}
while(t==x){
u=0;
while(u==t+1){
if(a[u]>a[t])break;
else
a[t];
u++;
}
t++;
}
while(v==x){
w=0;
while(w==v+1){
if(a[w]<a[v])break;
else
a[v];
w++;
}
v++;
}
while(s+2==x){
a[0]+a[1]=b[0];
b[s+1]=b[s]+a[s+2];
s++;
}
cout<<a[t]<<" "<<a[v]<<" "<<b[s+1]<<endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    8 | cin>>x;
      | ^~~
      | 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:25:7: error: 'v' was not declared in this scope
   25 | while(v==x){
      |       ^
a.cc:26:1: error: 'w' was not declared in this scope
   26 | w=0;
      | ^
a.cc:36:5: error: lvalue required as left operand of assignment
   36 | a[0]+a[1]=b[0];
      | ~~~~^~~~~
a.cc:40:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   40 | cout<<a[t]<<" "<<a[v]<<" "<<b[s+1]<<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:40:20: error: 'v' was not declared in this scope
   40 | cout<<a[t]<<" "<<a[v]<<" "<<b[s+1]<<endl;
      |                    ^
a.cc:40:37: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   40 | cout<<a[t]<<" "<<a[v]<<" "<<b[s+1]<<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<stdio.h>
using namespace std;
int main(){
int x,y,s,t,u,v,w;
y=0;
s=0;
t=0;
cin>>x;
int a[x];
long b[x-1];
while(y==x){
cin>>a[y];
y++;
}
while(t==x){
u=0;
while(u==t+1){
if(a[u]>a[t])break;
else
a[t];
u++;
}
t++;
}
while(v==x){
w=0;
while(w==v+1){
if(a[w]<a[v])break;
else
a[v];
w++;
}
v++;
}
while(s+2==x){
a[0]+a[1]=b[0];
b[s+1]=b[s]+a[s+2];
s++;
}
cout<<a[t]<<" "<<a[v]<<" "<<b[s+1]<<endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:37:5: error: lvalue required as left operand of assignment
   37 | a[0]+a[1]=b[0];
      | ~~~~^~~~~
Language: C++

#include<iostream>
#include<stdio.h>
using namespace std;

int main()
{
    long int num;
    long int sum = 0;
    cin >> num;
    int box[num];
    for(int i=0; i<num; i++){
        cin >> box[i];
        sum += box[i];
    }
    for(int i=0; i<num-1; i++){
        for(int j=s+1; j<num; j++){
            if(box[i] > box[j]){
                int tmp = box[i];
                box[i] = box[j];
                box[j] = tmp;
            }
        }
    }
    cout << box[0] << ' ' << box[num-1] << ' ' << sum << endl;
    
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:19: error: 's' was not declared in this scope
   16 |         for(int j=s+1; j<num; j++){
      |                   ^
Language: C++

#include <iostream>
using namespace std;
int main(){
    int n;
    long long a;
    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)macValue=a;
        sum+=a;
    }
    cout<<minValue<<" "<<maxValue<<" "<<sum<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:23: error: 'macValue' was not declared in this scope; did you mean 'maxValue'?
   13 |         if(a>maxValue)macValue=a;
      |                       ^~~~~~~~
      |                       maxValue
Language: C++

#include <iostream>
using namespace std;
int main()
{
 int x, n, min, max, total;
 cin >> n;
 min = 1000000;
 max = -1000000;
 total = 0;

 for (int i=0; i<n; ++i)
 {
  cin >> x;
  total += x;
  max = std::max(max, x);
  min = std::min(min, x);
 }
 cout << min << " " << max << " " << sum << endl;
 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:38: error: 'sum' was not declared in this scope
   18 |  cout << min << " " << max << " " << sum << endl;
      |                                      ^~~
Language: C++

#include<iostream>

using namespace std;

int main()
{
	int n;
	cin >> n;
	long int max, min, sum;
	max = INT16_MIN; min = INT16_MAX; sum = 0;

	for (int i = 0; i < n; i++)
	{
		if (i != 0)
			cout << " ";

		long int num;
		cin >> num;
		
		if (max < num)
			max = num;

		if (min > num)
			min = num;

		sum += num;
	}

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

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

#include<iostream>

using namespace std;

int main()
{
	int n;
	cin >> n;
	long int max, min, sum;
	max = LONG_MIN; min = LONG_MAX; sum = 0;

	for (int i = 0; i < n; i++)
	{
		if (i != 0)
			cout << " ";

		long int num;
		cin >> num;
		
		if (max < num)
			max = num;

		if (min > num)
			min = num;

		sum += num;
	}

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

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

#include<iostream>

using namespace std;

int main()
{
	int n;
	cin >> n;
	long int max, min, sum;
	max = LONG_MIN; min = LONG_MAX; sum = 0;
	long int num;

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

		if (min > num)
			min = num;

		sum += num;
	}

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

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

#include <iostream>
using namespace std;

int main() {
  int n, a, nmin = INT_MAX, nmax = -1, sum = 0;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> a;
    nmax = max(a, nmax);
    nmin = min(a, nmin);
    sum += a;
  }
  cout << nmin << " " << nmax << " " << sum << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:20: error: 'INT_MAX' was not declared in this scope
    5 |   int n, a, nmin = INT_MAX, nmax = -1, sum = 0;
      |                    ^~~~~~~
a.cc:2:1: note: 'INT_MAX' 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:5: error: 'nmax' was not declared in this scope
    9 |     nmax = max(a, nmax);
      |     ^~~~
a.cc:11:5: error: 'sum' was not declared in this scope
   11 |     sum += a;
      |     ^~~
a.cc:13:26: error: 'nmax' was not declared in this scope
   13 |   cout << nmin << " " << nmax << " " << sum << endl;
      |                          ^~~~
a.cc:13:41: error: 'sum' was not declared in this scope
   13 |   cout << nmin << " " << nmax << " " << sum << endl;
      |                                         ^~~
Language: C++

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

int main() {
  int n, a, nmin = INT_MAX, nmax = -1, sum = 0;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> a;
    nmax = max(a, nmax);
    nmin = min(a, nmin);
    sum += a;
  }
  cout << nmin << " " << nmax << " " << sum << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:20: error: 'INT_MAX' was not declared in this scope
    6 |   int n, a, nmin = INT_MAX, nmax = -1, sum = 0;
      |                    ^~~~~~~
a.cc:3:1: note: 'INT_MAX' is defined in header '<climits>'; this is probably fixable by adding '#include <climits>'
    2 | #include <limits>
  +++ |+#include <climits>
    3 | using namespace std;
a.cc:10:5: error: 'nmax' was not declared in this scope
   10 |     nmax = max(a, nmax);
      |     ^~~~
a.cc:12:5: error: 'sum' was not declared in this scope
   12 |     sum += a;
      |     ^~~
a.cc:14:26: error: 'nmax' was not declared in this scope
   14 |   cout << nmin << " " << nmax << " " << sum << endl;
      |                          ^~~~
a.cc:14:41: error: 'sum' was not declared in this scope
   14 |   cout << nmin << " " << nmax << " " << sum << endl;
      |                                         ^~~
Language: C++

int main(){
    int n, i, mx, mn, sum;
    scanf("%d", &n);
    int a[1000];
    for (i = 0; i < n; i++){
        scanf("%d", &a[i]);
    }
    sum = a[0], mn = a[0], mx = a[0]; 
    for (i = 1; i < n; i++){
        if (a[i] > mx){
            mx = a[i];
        }
        else if (a[i] < mn){
            mn = a[i];
        }
        sum += a[i];
    }
    printf("%d %d %d\n", mn, mx, sum);
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:5: error: 'scanf' was not declared in this scope
    3 |     scanf("%d", &n);
      |     ^~~~~
a.cc:18:5: error: 'printf' was not declared in this scope
   18 |     printf("%d %d %d\n", mn, mx, sum);
      |     ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main(){
Language: C++

int main(){
int a[10000],i,n,max,min,s=0;
scanf("%d",&n);
for(i=1;i<=n;i++){
scanf("%d",&a[i]);
}
max=a[1];
for(i=2;i<=n;i++){
if(a[i]>max){
max=a[i];
}
}
min=a[1];
for(i=2;i<=n;i++){
if(a[i]<min){
min=a[i];
}
}
for(i=1; i<=n; i++){
s += a[i];
}
printf("%d %d %d",min,max,s);
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:1: error: 'scanf' was not declared in this scope
    3 | scanf("%d",&n);
      | ^~~~~
a.cc:22:1: error: 'printf' was not declared in this scope
   22 | printf("%d %d %d",min,max,s);
      | ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main(){
Language: C++

int main(){
int a[10000],i,n,max,min,s=0;
scanf("%d",&n);
for(i=1;i<=n;i++){
scanf("%d",&a[i]);
}
for(i=1; i<=n; i++){
s += a[i];
//printf("%d\n",s);
}
max=a[1];
for(i=2;i<=n;i++){
if(a[i]>max){
max=a[i];
}
}
min=a[1];
for(i=2;i<=n;i++){
if(a[i]<min){
min=a[i];
}
}
printf("%d %d %d\n",min,max,s);
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:1: error: 'scanf' was not declared in this scope
    3 | scanf("%d",&n);
      | ^~~~~
a.cc:23:1: error: 'printf' was not declared in this scope
   23 | printf("%d %d %d\n",min,max,s);
      | ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main(){
Language: C++

#include <stdio.h>
??
int main(){
????int n,a[10001],i;
????int min,max;
????long long sum=0;
????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++){
????????if(min>a[i])min=a[i];
????????if(max<a[i])max=a[i];
????????sum+=a[i];
????}
????printf("%d %d %ld\n",min,max,sum);
????return 0;
}

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

#include <iostream>
#include <vector>

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

  int min = INT_MAX ;
  int max = -INT_MAX ;
  int sum = 0 ;

  for ( int i = 0 ; i < num ; ++i ) {
    int val ;
    std::cin >> val ;
    if ( min > val )
      min = val ;
    if ( max < val )
      max = val ;
    sum += val ;
  }

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

  return 0 ;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: error: 'INT_MAX' was not declared in this scope
    9 |   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 |
Language: C++

#include <iostream>
using namespace std;

int main(){
	long n,i,x[10000] mi,ma,l;
	l=0;
	cin >> n;
	mi = 1000000;
	ma = -1000000;
	for( i=0 ; i<n ; i++ ){
		cin >> x[i];
		ma=max(ma,x[i]);
		mi=min(mi,x[i]);
		l += x[i];
	}
	cout << mi <<' '<< ma <<' '<< l << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:27: error: expected initializer before 'mi'
    5 |         long n,i,x[10000] mi,ma,l;
      |                           ^~
a.cc:6:9: error: 'l' was not declared in this scope
    6 |         l=0;
      |         ^
a.cc:8:9: error: 'mi' was not declared in this scope; did you mean 'i'?
    8 |         mi = 1000000;
      |         ^~
      |         i
a.cc:9:9: error: 'ma' was not declared in this scope
    9 |         ma = -1000000;
      |         ^~
a.cc:11:24: error: 'x' was not declared in this scope
   11 |                 cin >> x[i];
      |                        ^
Language: C++

#include <iostream>
using namespace std;

int main()
{
    int iSize=0;
    //???????????????????????????
    cin>>iSize;
    
    //????????????????¢????
    int*Array=new int [iSize];
    
    for (int i=0:Array)
    {
        cin>>Array[i];
    }
    //??£??\??????
    //?????????????????????????????§????°??????¨?????????
    //???????????°Sum????????????????????????????????????Array[0]??????????????§?¨?????????§??????
    int Max,Min,Sum=Array[0];
    for(int i=1:i<iSize;i++)
    {
       if(Max<Array[i])
       {
            Max=Array[i];
       }
       else if(Min>Array[i])
       {
           Min=Array[i] 
       }
       Sum+=Array[i]
    }
    cout<<Min<<" "<<Max<<" "<<Sum<<endl;
    delete[] Array;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:15: error: initializer in range-based 'for' loop
   13 |     for (int i=0:Array)
      |               ^
a.cc:21:14: error: initializer in range-based 'for' loop
   21 |     for(int i=1:i<iSize;i++)
      |              ^
a.cc:21:24: error: expected ')' before ';' token
   21 |     for(int i=1:i<iSize;i++)
      |        ~               ^
      |                        )
a.cc:21:25: error: 'i' was not declared in this scope
   21 |     for(int i=1:i<iSize;i++)
      |                         ^
Language: C++

#include <iostream>
using namespace std;

int main()
{
    int iSize=0;
    //???????????????????????????
    cin>>iSize;
    
    //????????????????¢????
    int*Array=new int [iSize];
    
    for (int i=0:Array)
    {
        cin>>Array[i];
    }
    //??£??\??????
    //?????????????????????????????§????°??????¨?????????
    //???????????°Sum????????????????????????????????????Array[0]??????????????§?¨?????????§??????
    int Max,Min,Sum=Array[0];
    for(int i=1:i<iSize;i++)
    {
       if(Max<Array[i])
       {
            Max=Array[i];
       }
       else if(Min>Array[i])
       {
           Min=Array[i] 
       }
       Sum+=Array[i]
    }
    cout<<Min<<" "<<Max<<" "<<Sum<<endl;
    delete[]
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:15: error: initializer in range-based 'for' loop
   13 |     for (int i=0:Array)
      |               ^
a.cc:21:14: error: initializer in range-based 'for' loop
   21 |     for(int i=1:i<iSize;i++)
      |              ^
a.cc:21:24: error: expected ')' before ';' token
   21 |     for(int i=1:i<iSize;i++)
      |        ~               ^
      |                        )
a.cc:21:25: error: 'i' was not declared in this scope
   21 |     for(int i=1:i<iSize;i++)
      |                         ^
a.cc:35:5: error: expected primary-expression before 'return'
   35 |     return 0;
      |     ^~~~~~
Language: C++

#include <iostream>
using namespace std;

int main()
{
    int iSize=0;
    //???????????????????????????
    cin>>iSize;
    
    //????????????????¢????
    int*Array=new int [iSize];
    
    for (int i=0;i<iSize;i++)
    {
        cin>>Array[i];
    }
    //??£??\??????
    //?????????????????????????????§????°??????¨?????????
    //???????????°Sum????????????????????????????????????Array[0]??????????????§?¨?????????§??????
    int Max,Min,Sum=Array[0];
    for(int i=1;i<iSize;i++)
    {
       if(Max<Array[i])
       {
            Max=Array[i];
       }
       else if(Min>Array[i])
       {
           Min=Array[i] 
       }
       Sum+=Array[i]
    }
    cout<<Min<<" "<<Max<<" "<<Sum<<endl;
    delete[]
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:29:24: error: expected ';' before '}' token
   29 |            Min=Array[i]
      |                        ^
      |                        ;
   30 |        }
      |        ~                
a.cc:31:21: error: expected ';' before '}' token
   31 |        Sum+=Array[i]
      |                     ^
      |                     ;
   32 |     }
      |     ~                
a.cc:35:5: error: expected primary-expression before 'return'
   35 |     return 0;
      |     ^~~~~~
Language: C++

#include <iostream>
using namespace std;
 
int main()
{
    int iSize=0;
    //???????????????????????????
    cin>>iSize;
     
    //?????????????????¢????
    int*Array=new int [iSize];
     
    for (int i=0;i<iSize;i++)
    {
        cin>>Array[i];
    }
    //???£??\??????
    //??????????????????????????????§?????°???????¨?????????
    //????????????°Sum????????????????????????????????????Array[0]???????????????§??¨??????????§??????
    int Max,Min,Sum=Array[0];
    for(int i=1;i<iSize;i++)
    {
       if(Max<Array[i])
       {
            Max=Array[i];
       }
       else if(Min>Array[i])
       {
           Min=Array[i] 
       }
       Sum+=Array[i];
    }
    cout<<Min<<" "<<Max<<" "<<Sum<<endl;
    delete[]
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:29:24: error: expected ';' before '}' token
   29 |            Min=Array[i]
      |                        ^
      |                        ;
   30 |        }
      |        ~                
a.cc:35:5: error: expected primary-expression before 'return'
   35 |     return 0;
      |     ^~~~~~
Language: C++

#include <iostream>
using namespace std;

int main()
{
    int iSize=0;
    //???????????????????????????
    cin>>iSize;
    
    //????????????????¢????
    int*Array=new int [iSize];
    
    for (int i=0;i<iSize;i++)
    {
        cin>>Array[i];
    }
    //??£??\??????
    //?????????????????????????????§????°??????¨?????????
    //???????????°Sum????????????????????????????????????Array[0]??????????????§?¨?????????§??????
    int Max,Min,Sum=Array[0];
    for(int i=1:i<iSize;i++)
    {
       if(Max<Array[i])
       {
            Max=Array[i];
       }
       else if(Min>Array[i])
       {
           Min=Array[i]; 
       }
       Sum+=Array[i];
    }
    cout<<Min<<" "<<Max<<" "<<Sum<<endl;
    delete[] Array;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:14: error: initializer in range-based 'for' loop
   21 |     for(int i=1:i<iSize;i++)
      |              ^
a.cc:21:24: error: expected ')' before ';' token
   21 |     for(int i=1:i<iSize;i++)
      |        ~               ^
      |                        )
a.cc:21:25: error: 'i' was not declared in this scope
   21 |     for(int i=1:i<iSize;i++)
      |                         ^
Language: C++

#include <iostream>
using namespace std;
int main(){
  int a, n;
  x = -1000000;
  y = 1000000;
  int z = 0;
  cin >> n;
for(int h=0; h<n; h++){
  cin >> a;
  z += a;
  x = min(a,x);
  y = max(a,y);
}
cout << x << ' ' << y << ' ' << z << endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'x' was not declared in this scope
    5 |   x = -1000000;
      |   ^
a.cc:6:3: error: 'y' was not declared in this scope
    6 |   y = 1000000;
      |   ^
Language: C++

int max(int x, int y)
{
	if (x > y)
		return x;
	else
		return y;
}

int min(int x, int y)
{

	if (x < y)
		return x;
	else
		return y;
}

int main()
{
	int n=0, num=0,sum1=n+1,sum2=0,sum3=0;
	cin >> n;
	cout << n << '\n';

	for (int i = 0; i < n; i++) {
		cin >> num;
		sum3 += num;
		sum1 = min(num, sum1);
		sum2 = max(num, sum2);
	}
	cout << sum1 << ' ' << sum2 << ' ' << sum3 << '\n';
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:9: error: 'cin' was not declared in this scope; did you mean 'min'?
   21 |         cin >> n;
      |         ^~~
      |         min
a.cc:22:9: error: 'cout' was not declared in this scope
   22 |         cout << n << '\n';
      |         ^~~~
Language: C++

int main()
{
	int n=0, num=0,sum1=n+1,sum2=0,sum3=0;
	cin >> n;
	cout << n << '\n';

	for (int i = 0; i < n; i++) {
		cin >> num;
		sum3 += num;
		sum1 = min(num, sum1);
		sum2 = max(num, sum2);
	}
	cout << sum1 << ' ' << sum2 << ' ' << sum3 << '\n';
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: 'cin' was not declared in this scope
    4 |         cin >> n;
      |         ^~~
a.cc:5:9: error: 'cout' was not declared in this scope
    5 |         cout << n << '\n';
      |         ^~~~
a.cc:10:24: error: 'min' was not declared in this scope; did you mean 'main'?
   10 |                 sum1 = min(num, sum1);
      |                        ^~~
      |                        main
a.cc:11:24: error: 'max' was not declared in this scope
   11 |                 sum2 = max(num, sum2);
      |                        ^~~
Language: C++

#include <iostream>
using namespace std;

int main(){
 int n,min,max,a;
 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:13:6: error: 'i' was not declared in this scope
   13 |  for(i=1;i<n;i++){
      |      ^
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);
      |       ~~~^~~~~~~