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

using System;
using System.Linq;
namespace _0001
{
    class Program
    {
        static void Main(string[] args)
        {
            int[] a = Console.ReadLine().Split().Select(int.Parse).ToArray();       
                int[] mountain = new int[] { a[0],a[1],a[2] };
            Array.Sort(mountain);
            Console.WriteLine(mountain[0]+" "+mountain[1]+" "+mountain[2]);
        }
    }
}

Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:2:7: error: expected nested-name-specifier before 'System'
    2 | using System.Linq;
      |       ^~~~~~
a.cc:7:26: error: 'string' has not been declared
    7 |         static void Main(string[] args)
      |                          ^~~~~~
a.cc:7:35: error: expected ',' or '...' before 'args'
    7 |         static void Main(string[] args)
      |                                   ^~~~
a.cc:14:6: error: expected ';' after class definition
   14 |     }
      |      ^
      |      ;
a.cc: In static member function 'static void _0001::Program::Main(int*)':
a.cc:9:16: error: structured binding declaration cannot have type 'int'
    9 |             int[] a = Console.ReadLine().Split().Select(int.Parse).ToArray();
      |                ^~
a.cc:9:16: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:9:16: error: empty structured binding declaration
a.cc:9:19: error: expected initializer before 'a'
    9 |             int[] a = Console.ReadLine().Split().Select(int.Parse).ToArray();
      |                   ^
a.cc:10:20: error: structured binding declaration cannot have type 'int'
   10 |                 int[] mountain = new int[] { a[0],a[1],a[2] };
      |                    ^~
a.cc:10:20: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:10:20: error: empty structured binding declaration
a.cc:10:23: error: expected initializer before 'mountain'
   10 |                 int[] mountain = new int[] { a[0],a[1],a[2] };
      |                       ^~~~~~~~
a.cc:11:13: error: 'Array' was not declared in this scope
   11 |             Array.Sort(mountain);
      |             ^~~~~
a.cc:11:24: error: 'mountain' was not declared in this scope
   11 |             Array.Sort(mountain);
      |                        ^~~~~~~~
a.cc:12:13: error: 'Console' was not declared in this scope
   12 |             Console.WriteLine(mountain[0]+" "+mountain[1]+" "+mountain[2]);
      |             ^~~~~~~
Language: C++

#include<iostream>
using namespace std;
int main() {
	typedef unsigned short int mew;
	mew mountain[10];
	for (int i = 0; i < 10; i++) {
		cin >> mountain[i];
	}

	mew taller[3];
	mew a, b, c;

	a = mountain[0];
	b = mountain[1];
	c = mountain[2];

	for (int y = 3; y <= 9; y++) {
		if (a<=b){
			if (a<=c){
				if (a < mountain[y]) {
				???a = mountain[y];}
			}
			else{
				if (c < mountain[y]) {
					c = mountain[y];}
			}
		}
		else if (b<=c)
		{
			if (b < mountain[y]) {
				b = mountain[y];}
		}
	}

	//biggest->taller[0],bigger->taller[1],taller[2]
	{
		if (a >= b&&a >= c)
		{
			taller[0] = a;
			if (b >= c)
			{
				taller[1] = b;
				taller[2] = c;
			}
			else {
				taller[1] = c;
				taller[2] = b;
			}
		}
		if (b >= a&&b >= c)
		{
			taller[0] = b;
			if (a >= c)
			{
				taller[1] = a;
				taller[2] = c;
			}
			else {
				taller[1] = c;
				taller[2] = a;
			}
		}
		if (c >= b&&c >= a)
		{
			taller[0] = c;
			if (b >= a)
			{
				taller[1] = b;
				taller[2] = a;
			}
			else {
				taller[1] = a;
				taller[2] = b;
			}
		}
	} 

	cout << taller[0] << endl;
	cout << taller[1] << endl;
	cout << taller[2] << endl;

        char a____;
        cin>>a____;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:33: error: expected primary-expression before '?' token
   21 |                                 ???a = mountain[y];}
      |                                 ^
a.cc:21:34: error: expected primary-expression before '?' token
   21 |                                 ???a = mountain[y];}
      |                                  ^
a.cc:21:35: error: expected primary-expression before '?' token
   21 |                                 ???a = mountain[y];}
      |                                   ^
a.cc:21:51: error: expected ':' before ';' token
   21 |                                 ???a = mountain[y];}
      |                                                   ^
      |                                                   :
a.cc:21:51: error: expected primary-expression before ';' token
a.cc:21:51: error: expected ':' before ';' token
   21 |                                 ???a = mountain[y];}
      |                                                   ^
      |                                                   :
a.cc:21:51: error: expected primary-expression before ';' token
a.cc:21:51: error: expected ':' before ';' token
   21 |                                 ???a = mountain[y];}
      |                                                   ^
      |                                                   :
a.cc:21:51: error: expected primary-expression before ';' token
Language: C++

int main() {
	typedef unsigned short int mew;
	mew mountain[10];
	for (int i = 0; i < 10; i++) {
		cin >> mountain[i];
	}

	mew taller[3];
	mew a, b, c;

	a = mountain[0];
	b = mountain[1];
	c = mountain[2];

	for (int y = 3; y <= 9; y++) {
		if (a<=b){
			if (a<=c){
				if (a < mountain[y]) {
				???a = mountain[y];}
			}
			else{
				if (c < mountain[y]) {
					c = mountain[y];}
			}
		}
		else if (b<=c)
		{
			if (b < mountain[y]) {
				b = mountain[y];}
		}
	}

	//biggest->taller[0],bigger->taller[1],taller[2]
	{
		if (a >= b&&a >= c)
		{
			taller[0] = a;
			if (b >= c)
			{
				taller[1] = b;
				taller[2] = c;
			}
			else {
				taller[1] = c;
				taller[2] = b;
			}
		}
		if (b >= a&&b >= c)
		{
			taller[0] = b;
			if (a >= c)
			{
				taller[1] = a;
				taller[2] = c;
			}
			else {
				taller[1] = c;
				taller[2] = a;
			}
		}
		if (c >= b&&c >= a)
		{
			taller[0] = c;
			if (b >= a)
			{
				taller[1] = b;
				taller[2] = a;
			}
			else {
				taller[1] = a;
				taller[2] = b;
			}
		}
	} 

	cout << taller[0] << endl;
	cout << taller[1] << endl;
	cout << taller[2] << endl;

        char a____;
	cin >> a____;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:17: error: 'cin' was not declared in this scope
    5 |                 cin >> mountain[i];
      |                 ^~~
a.cc:19:33: error: expected primary-expression before '?' token
   19 |                                 ???a = mountain[y];}
      |                                 ^
a.cc:19:34: error: expected primary-expression before '?' token
   19 |                                 ???a = mountain[y];}
      |                                  ^
a.cc:19:35: error: expected primary-expression before '?' token
   19 |                                 ???a = mountain[y];}
      |                                   ^
a.cc:19:51: error: expected ':' before ';' token
   19 |                                 ???a = mountain[y];}
      |                                                   ^
      |                                                   :
a.cc:19:51: error: expected primary-expression before ';' token
a.cc:19:51: error: expected ':' before ';' token
   19 |                                 ???a = mountain[y];}
      |                                                   ^
      |                                                   :
a.cc:19:51: error: expected primary-expression before ';' token
a.cc:19:51: error: expected ':' before ';' token
   19 |                                 ???a = mountain[y];}
      |                                                   ^
      |                                                   :
a.cc:19:51: error: expected primary-expression before ';' token
a.cc:76:9: error: 'cout' was not declared in this scope
   76 |         cout << taller[0] << endl;
      |         ^~~~
a.cc:76:30: error: 'endl' was not declared in this scope
   76 |         cout << taller[0] << endl;
      |                              ^~~~
a.cc:81:9: error: 'cin' was not declared in this scope
   81 |         cin >> a____;
      |         ^~~
Language: C++

#include<iostream>

using namespace std;

int main() {
  int a[10];
  for (int i = 0; i < 10; i++ ) {
    cin >> a[i];
  }
  sort(a, a+ 9);
  printf("%d\n", a[9]);
  printf("%d\n", a[8]);
  printf("%d\n", a[7]);
}

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

#include<iostream>
using namespace std;
int main(){
  int n[10];
    for(int i=0;i<10;i++)
      cin>>n[i];
  sort(n,n+10);
  for(int i=9;i>=7;i--){
    cout<<n[i]<<endl;
  }
  return 0;
}

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

#include <iostream>
using namespace std;

int main(){
	const int N=10;
	int date[N];
	int tmp;

	for(int i=0;i<N;i++) cin>>data[i];
	for(int i=1;i<=3;i++){
		for(int j=0;j<N-i;j++){
			if(data[j]>data[j+1]){
				tmp=data[j];
				data[j]=data[j+1];
				data[j+1]=tmp;
			}
		}
	}
	cout<<data[N-1]<<endl<<data[N-2]<<endl<<data[N-3]<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:39: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
    9 |         for(int i=0;i<N;i++) cin>>data[i];
      |                                       ^
a.cc:12:32: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   12 |                         if(data[j]>data[j+1]){
      |                                ^
a.cc:12:40: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   12 |                         if(data[j]>data[j+1]){
      |                                        ^
a.cc:13:41: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   13 |                                 tmp=data[j];
      |                                         ^
a.cc:14:37: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   14 |                                 data[j]=data[j+1];
      |                                     ^
a.cc:14:45: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   14 |                                 data[j]=data[j+1];
      |                                             ^
a.cc:15:37: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   15 |                                 data[j+1]=tmp;
      |                                     ^
a.cc:19:19: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   19 |         cout<<data[N-1]<<endl<<data[N-2]<<endl<<data[N-3]<<endl;
      |                   ^
a.cc:19:36: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   19 |         cout<<data[N-1]<<endl<<data[N-2]<<endl<<data[N-3]<<endl;
      |                                    ^
a.cc:19:53: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   19 |         cout<<data[N-1]<<endl<<data[N-2]<<endl<<data[N-3]<<endl;
      |                                                     ^
Language: C++

#include <iostream>
using namespace std;

int main(){
	const int N=10;
	int date[N];
	int tmp;

	for(int i=0;i<N;i++) cin>>data[i];
	for(int i=1;i<=3;i++){
		for(int j=0;j<N-i;j++){
			if(data[j]>data[j+1]){
				tmp=data[j];
				data[j]=data[j+1];
				data[j+1]=tmp;
			}
		}
	}
	cout<<data[N-1]<<endl<<data[N-2]<<endl<<data[N-3]<<endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:39: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
    9 |         for(int i=0;i<N;i++) cin>>data[i];
      |                                       ^
a.cc:12:32: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   12 |                         if(data[j]>data[j+1]){
      |                                ^
a.cc:12:40: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   12 |                         if(data[j]>data[j+1]){
      |                                        ^
a.cc:13:41: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   13 |                                 tmp=data[j];
      |                                         ^
a.cc:14:37: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   14 |                                 data[j]=data[j+1];
      |                                     ^
a.cc:14:45: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   14 |                                 data[j]=data[j+1];
      |                                             ^
a.cc:15:37: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   15 |                                 data[j+1]=tmp;
      |                                     ^
a.cc:19:19: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   19 |         cout<<data[N-1]<<endl<<data[N-2]<<endl<<data[N-3]<<endl;
      |                   ^
a.cc:19:36: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   19 |         cout<<data[N-1]<<endl<<data[N-2]<<endl<<data[N-3]<<endl;
      |                                    ^
a.cc:19:53: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   19 |         cout<<data[N-1]<<endl<<data[N-2]<<endl<<data[N-3]<<endl;
      |                                                     ^
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>

int main(){
  int array[10];
  
  for(int i=0; i<10; i++){
    std::cin >> array[i];
  }
  std::sort(array.begin(), array.end());
  
  for(int i=0; i<3; i++){
    std::cout << array[i] << std::endl;
  }
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:19: error: request for member 'begin' in 'array', which is of non-class type 'int [10]'
   11 |   std::sort(array.begin(), array.end());
      |                   ^~~~~
a.cc:11:34: error: request for member 'end' in 'array', which is of non-class type 'int [10]'
   11 |   std::sort(array.begin(), array.end());
      |                                  ^~~
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>

int main(){
  int array[10];
  
  for(int i=0; i<10; i++){
    std::cin >> array[i];
  }
  
  std::vector<int> vector(array, array+10)
  std::sort(vector.begin(), vector.end());
  for(int i=0; i<3; i++){
    std::cout << vector[i] << std::endl;
  }
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:3: error: expected ',' or ';' before 'std'
   13 |   std::sort(vector.begin(), vector.end());
      |   ^~~
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>

int main(){
  int array[10];
  
  for(int i=0; i<10; i++){
    std::cin >> array[i];
  }
  
  std::vector<int> vector(array, array+10);
  std::sort(vector.begin(), vector.end(), >);
  for(int i=0; i<3; i++){
    std::cout << vector[i] << std::endl;
  }
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:43: error: expected primary-expression before '>' token
   13 |   std::sort(vector.begin(), vector.end(), >);
      |                                           ^
a.cc:13:44: error: expected primary-expression before ')' token
   13 |   std::sort(vector.begin(), vector.end(), >);
      |                                            ^
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>

int main(){
  int array[10];
  
  for(int i=0; i<10; i++){
    std::cin >> array[i];
  }
  
  std::vector<int> vector(array, array+10);
  std::sort(vector.begin(), vector.end(), std::greater<int>);
  for(int i=0; i<3; i++){
    std::cout << vector[i] << std::endl;
  }
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:60: error: expected primary-expression before ')' token
   13 |   std::sort(vector.begin(), vector.end(), std::greater<int>);
      |                                                            ^
Language: C++

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

int main(){
    vector<int> v(10);
    int index = 0;  
    for(int i = 0; i< 10; i++){
        cin >> v[i];
    }
    cout << *max_element(v.begin(),v.end()) << endl;
    index = distance(v.begin(),max_element(v.begin(),v.end()));
    v[index] = 0;
    cout << *max_element(v.begin(),v.end()) << endl;
    index = distance(v.begin(),max_element(v.begin(),v.end()));
    v[index] = 0;
    cout << *max_element(v.begin(),v.end()) << endl;
    index = distance(v.begin(),max_element(v.begin(),v.end()));
    v[index] = 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'vector' was not declared in this scope
    6 |     vector<int> v(10);
      |     ^~~~~~
a.cc:3:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    2 | #include <algorithm>
  +++ |+#include <vector>
    3 | using namespace std;
a.cc:6:12: error: expected primary-expression before 'int'
    6 |     vector<int> v(10);
      |            ^~~
a.cc:9:16: error: 'v' was not declared in this scope
    9 |         cin >> v[i];
      |                ^
a.cc:11:26: error: 'v' was not declared in this scope
   11 |     cout << *max_element(v.begin(),v.end()) << endl;
      |                          ^
Language: C++

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

int main(){
    vector<int> v(10);
    int index = 0;  
    for(int i = 0; i< 10; i++){
        cin >> v[i];
    }
    cout << *max_element(v.begin(),v.end()) << endl;
    index = distance(v.begin(),max_element(v.begin(),v.end()));
    v[index] = 0;
    cout << *max_element(v.begin(),v.end()) << endl;
    index = distance(v.begin(),max_element(v.begin(),v.end()));
    v[index] = 0;
    cout << *max_element(v.begin(),v.end()) << endl;
    index = distance(v.begin(),max_element(v.begin(),v.end()));
    v[index] = 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'vector' was not declared in this scope
    7 |     vector<int> v(10);
      |     ^~~~~~
a.cc:4:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    3 | #include <algorithm>
  +++ |+#include <vector>
    4 | using namespace std;
a.cc:7:12: error: expected primary-expression before 'int'
    7 |     vector<int> v(10);
      |            ^~~
a.cc:10:16: error: 'v' was not declared in this scope
   10 |         cin >> v[i];
      |                ^
a.cc:12:26: error: 'v' was not declared in this scope
   12 |     cout << *max_element(v.begin(),v.end()) << endl;
      |                          ^
Language: C++

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

int main(){
    vector<int> v(10);
    for(int i = 0; i< 10; i++){
        cin >> v[i];
    }
   sort(v.begin(),v.end());
   cout << v[0] << endl;
   cout << v[1] << endl;
   cout << v[2] << endl;
}

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

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

int main(){
    vector<int> v(9);
    for(int i = 0; i< 10; i++){
        cin >> v[i];
    }
   sort(v.begin(),v.end());
   cout << v[0] << endl;
   cout << v[1] << endl;
   cout << v[2] << endl;
}

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

#include<iostream>
#include<algorithm>
using namespace std;
int a[10];
int main(){
for(int i=0;i<10;i++){
cin>>a[i];
}
soft(a[0],a[9]);
cout<<a[0]<<a[1]<<a[2]<<endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:1: error: 'soft' was not declared in this scope
    9 | soft(a[0],a[9]);
      | ^~~~
Language: C++

#include<iostream>
#include<algorithm>
using namespace std;
int a[10];
int main(){
for(int i=0;i<9;i++){
cin>>a[i];
}
soft(a[0],a[9]);
cout<<a[0]<<a[1]<<a[2]<<endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:1: error: 'soft' was not declared in this scope
    9 | soft(a[0],a[9]);
      | ^~~~
Language: C++

#include <iostream>
#include <string>
#include <cstring>
#include <fstream>
#include <algorithm>
#include <iomanip>
#include <vector>
#include <stack>
#include <queue>
#include <deque>
#include <map>
#include <list>
#include <set>
#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <bitset>
#include <functional>

using namespace std;

#define FOR(i,n) 		for(int(i)=0;(i)<(int)(n);(i)++)
#define FORN(i,a,b,c) 	for(int(i)=a;i<(int)(b);i+=(c))
#define RES(x,nilai)	memset(x,nilai,sizeof(x));
#define pb              push_back
#define mp              make_pair
#define INF				1000000000

typedef long long ll;
typedef pair<int, int> ii;
typedef vector<int> vi;
typedef vector<ii> vii;

inline string IS(int a){
    char x[100];
    sprintf(x,"%d",a); string s = x;
    return s;
}

inline int SI(string a){
    char x[100]; int res;
    strcpy(x,a.c_str()); sscanf(x,"%d",&res);
    return res;
}

//==============================================

bool cmp(int x,int y) {return x>y;}

int arr[100];

int main() {
	//freopen("in.txt","r",stdin);
	//freopen("13.txt","w",stdout);
	ios_base::sync_with_stdio(false); cin.tie(NULL);
	
	for(int i =0 ;i < 10; i++) cin >> arr[i];
	sort(arr,arr+10)
	cout << arr[9] << endl << arr[8] << endl << arr[7] << endl;
		
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:58:25: error: expected ';' before 'cout'
   58 |         sort(arr,arr+10)
      |                         ^
      |                         ;
   59 |         cout << arr[9] << endl << arr[8] << endl << arr[7] << endl;
      |         ~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int n[17];

int main(){
	for(int i=0; i<10; i++){
		cin>>n[i];
	}
	sort(n,n+10);
	for(int i=9; i>6; i--x){
		cout<<n[i]<<endl;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:30: error: expected ')' before 'x'
   10 |         for(int i=9; i>6; i--x){
      |            ~                 ^
      |                              )
a.cc:10:30: error: 'x' was not declared in this scope
Language: C++

#include <iostream>


void Sort(int* a){
int tmp;
for(int i=0;i<10;i++){
for(int j=0;j<9;j++){
if(a[j]<a[j+1]){
tmp = a[j+1];
a[j+1]=a[j];
a[j] = tmp;
}
}
}
}



int main(){

int a[10];

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

std::cout << a[0] << std::endl;
std::cout << a[1] << std::endl;
std::cout << a[2] << std::endl;


}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   24 | cin >> a[i];
      | ^~~
      | 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
      |                  ^~~
Language: C++

import java.util.*;

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

        int[] h = new int[10]; //10??¶????????±?????\??????????????????????????£?¨?

        Scanner s = new Scanner(System.in);
        for(int i = 0; i < h.length; i++){
            h[i] = s.nextInt();
        }

        Arrays.sort(h);

        for(int i = 9; i >= 7; i--){
            System.out.println(h[i]);
        }

    }
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.*;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:11: error: expected ':' before 'static'
    4 |     public static void main(String[] a){
      |           ^~~~~~~
      |           :
a.cc:4:29: error: 'String' has not been declared
    4 |     public static void main(String[] a){
      |                             ^~~~~~
a.cc:4:38: error: expected ',' or '...' before 'a'
    4 |     public static void main(String[] a){
      |                                      ^
a.cc:20:2: error: expected ';' after class definition
   20 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Main::main(int*)':
a.cc:6:12: error: structured binding declaration cannot have type 'int'
    6 |         int[] h = new int[10]; //10??¶????????±?????\??????????????????????????£?¨?
      |            ^~
a.cc:6:12: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:6:12: error: empty structured binding declaration
a.cc:6:15: error: expected initializer before 'h'
    6 |         int[] h = new int[10]; //10??¶????????±?????\??????????????????????????£?¨?
      |               ^
a.cc:8:9: error: 'Scanner' was not declared in this scope
    8 |         Scanner s = new Scanner(System.in);
      |         ^~~~~~~
a.cc:9:28: error: 'h' was not declared in this scope
    9 |         for(int i = 0; i < h.length; i++){
      |                            ^
a.cc:10:20: error: 's' was not declared in this scope
   10 |             h[i] = s.nextInt();
      |                    ^
a.cc:13:9: error: 'Arrays' was not declared in this scope
   13 |         Arrays.sort(h);
      |         ^~~~~~
a.cc:13:21: error: 'h' was not declared in this scope
   13 |         Arrays.sort(h);
      |                     ^
a.cc:16:13: error: 'System' was not declared in this scope
   16 |             System.out.println(h[i]);
      |             ^~~~~~
Language: C++

class Main {
	public static void main(String[] args) {
		int a = 0,b = 0,c = 0,i,j;
		for(i = 0; i < 10; i++) {
				j = new java.util.Scanner(System.in).nextInt();
				if(0 <= j && j <= 10000) {
					if(j > a) {
						c = b;
						b = a;
						a = j;
					} else if(j > b) {
						c = b;
						b = j;
					} else if(j > c) {
						c = j;
					}
				} else {
					i--;
				}
		}
		System.out.println(a);
		System.out.println(b);
		System.out.println(c);
	}
}

Compiler output:
a.cc:2:15: error: expected ':' before 'static'
    2 |         public static void main(String[] args) {
      |               ^~~~~~~
      |               :
a.cc:2:33: error: 'String' has not been declared
    2 |         public static void main(String[] args) {
      |                                 ^~~~~~
a.cc:2:42: error: expected ',' or '...' before 'args'
    2 |         public static void main(String[] args) {
      |                                          ^~~~
a.cc:25:2: error: expected ';' after class definition
   25 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Main::main(int*)':
a.cc:5:41: error: 'java' does not name a type
    5 |                                 j = new java.util.Scanner(System.in).nextInt();
      |                                         ^~~~
a.cc:21:17: error: 'System' was not declared in this scope
   21 |                 System.out.println(a);
      |                 ^~~~~~
Language: C++

import java.util.*;

public class Main{
    
    public static void main(String[] args){
        
        int[] hill={0,0,0,0,0,0,0,0,0,0};
        
        for(int j=0;j<=9;j++){
            hill[j]=new Scanner(System.in).nextInt();
        }
        
        int key;
        int flag;
        
        for(key=9;key>=0;key--){
            
            for(int i=0;i<=key-1;i++){
                if(hill[i]>hill[i+1]){
                    flag=hill[i];hill[i]=hill[i+1];hill[i+1]=flag;
                }
            }
            
        }
        
        System.out.println(hill[9]);
        System.out.println(hill[8]);
        System.out.println(hill[7]);
        
        
        
    }
    
}

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

#include<iostream>
using namespace std;

int main(){

	int hill[15];

	for(int j=0;j<=8;j++){
		cin>>hill[j];
	}

	int key;
	int flag;
	
	sort(hill,hill+10);

	//sort
	/*for(key=9;key>=0;key--){

		for(int i=0;i<=key;i++){
			if(hill[i]>hill[i+1]){
				flag=hill[i];hill[i]=hill[i+1];hill[i+1]=flag;
			}
		}

	}*/

	cout<<hill[9]<<"\n"<<hill[8]<<"\n"<<hill[7]<<endl;

	return 0;

}

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

#include<iostream>
int main(){
	int a[10];
	for(int i=0;i<10;i++){
		scanf("%d",&a[i]);
		}
		int first=-1;
		int second=-1;
		int third=-1;
		for(int j=0;j<10;j++){
			if(a[j]>first){
				first=a[j];
			}
			else if(a[j]>second){
				second=a[j];
			}
			else if(a[j]>third){
				third=a[j];
			}
			cout<<first<<endl;
			cout<<second<<endl;
			cout<<third<<endl;
		}
		return 0;
}
		

Compiler output:
a.cc: In function 'int main()':
a.cc:20:25: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   20 |                         cout<<first<<endl;
      |                         ^~~~
      |                         std::cout
In file included from a.cc:1:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:20:38: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   20 |                         cout<<first<<endl;
      |                                      ^~~~
      |                                      std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

include<iostream>
using namespace std;

int main(){
  int tall[10],no1=0,no2=0,no3=0,i=0;
  for(i=0;i<=9;i++){
    cin>>tall[i];
  }
  for(i=0;i<=9;i++){
    if(tall[i]>=no1){
      no3=no2;
      no2=no1;
      no1=tall[i];
    }
    if(tall[i]>=no2&&tall[i]<no1){
      no3=no2;
      no2=tall[i];
    }
    if(tall[i]>=no3&&tall[i]<no2){
      no3=tall[i];
    }
  }
  cout<<endl<<no1<<endl<<no2<<endl<<no3<<endl;

  return 0;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:7:5: error: 'cin' was not declared in this scope
    7 |     cin>>tall[i];
      |     ^~~
a.cc:23:3: error: 'cout' was not declared in this scope
   23 |   cout<<endl<<no1<<endl<<no2<<endl<<no3<<endl;
      |   ^~~~
a.cc:23:9: error: 'endl' was not declared in this scope
   23 |   cout<<endl<<no1<<endl<<no2<<endl<<no3<<endl;
      |         ^~~~
Language: C++

#include<stdio.h>
??
void swap(int *x,int *y){
????????????????int temp;
??
????????????????temp=*x;
????????????????*x=*y;
????????????????*y=temp;
??
}
??
int main(void){
????????????????int i,j,k;
????????????????int height[10];
??
????????????????i=0;
??
????????????????while(scanf("%d",&height[i])==1){
????????????????????????????????i++;
????????????????????????????????if(i==10) break;
????????????????}
??
??
????????????????for(j=0;j<10;j++){
????????????????????????????????if(height[j]<0 || height[j]>10000){
????????????????????????????????????????????????height[j]=0;
????????????????????????????????}
????????????????}
??
??
??
????????????????for(i=0;i<10;i++){
????????????????????????????????for(j=0;j<10;j++){
????????????????????????????????????????????????if(height[i]<height[j]){
????????????????????????????????????????????????swap(&height[i],&height[j]);
????????????????????????????????????????????????}
????????????????????????????????}
????????????????}???????????? /*sort*/
??
????????????????printf("\n");
??
????????????????k=9;
??
??
????????????????while(1){
????????????????????????????????printf("%d\n",height[k]);
????????????????????????????????k--;
????????????????????????????????if(k==6) break;
????????????????}
??
??
??
??
????????????????return 0;
}

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

#include<iostream>
#include<algorithm>
??
using namespace std;
??
??
int main(){
????????int a[10];
????????for(int i=0;i<10;i++){
????????????????cin>>a[i];
????????}
????????sort(a,a+10);
??
????????cout<<a[9]<<endl<<a[8]<<endl<<a[7]<<endl;
??
}

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


#include "stdafx.h" 
#include <iostream>
#include <algorithm>
#include <vector>
using namespace std;

int main()
{
	vector<int> heights;
	for (int i = 0; i < 10; i++) {
		int height;
		cin >> height;
		heights.push_back(height);
	}
	sort(heights.rbegin(), heights.rend());
	for (int i = 0; i < 3; i++) {
		cout << heights[i] << endl;
	}
}

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

#include<iostream>
using namespace std;

int main(){
    array<int,10> h{};
    int in{};
    for(int i=0;i<10;i++){
        cin>>in;
        h[i]=in;
    }
    sort(h.begin(),h.end());
    cout<<h[9]<<endl;cout<<h[8]<<endl;cout<<h[7]<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:19: error: variable 'std::array<int, 10> h' has initializer but incomplete type
    5 |     array<int,10> h{};
      |                   ^
a.cc:2:1: note: 'std::array' is defined in header '<array>'; this is probably fixable by adding '#include <array>'
    1 | #include<iostream>
  +++ |+#include <array>
    2 | using namespace std;
a.cc:11:5: error: 'sort' was not declared in this scope; did you mean 'short'?
   11 |     sort(h.begin(),h.end());
      |     ^~~~
      |     short
Language: C++

#include<iostream>
#include<vector>
#include<algorithm>
using namespace std;
  
int main(){
    vector<int> h();
    int in{};
    for(int i=0;i<10;i++){
        cin>>in;
        h.push_back(in);
    }
    sort(h.begin(),h.end());
    cout<<h[9]<<endl;cout<<h[8]<<endl;cout<<h[7]<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:18: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
    7 |     vector<int> h();
      |                  ^~
a.cc:11:11: error: request for member 'push_back' in 'h', which is of non-class type 'std::vector<int>()'
   11 |         h.push_back(in);
      |           ^~~~~~~~~
a.cc:13:12: error: request for member 'begin' in 'h', which is of non-class type 'std::vector<int>()'
   13 |     sort(h.begin(),h.end());
      |            ^~~~~
a.cc:13:22: error: request for member 'end' in 'h', which is of non-class type 'std::vector<int>()'
   13 |     sort(h.begin(),h.end());
      |                      ^~~
a.cc:14:14: warning: pointer to a function used in arithmetic [-Wpointer-arith]
   14 |     cout<<h[9]<<endl;cout<<h[8]<<endl;cout<<h[7]<<endl;
      |              ^
a.cc:14:31: warning: pointer to a function used in arithmetic [-Wpointer-arith]
   14 |     cout<<h[9]<<endl;cout<<h[8]<<endl;cout<<h[7]<<endl;
      |                               ^
a.cc:14:48: warning: pointer to a function used in arithmetic [-Wpointer-arith]
   14 |     cout<<h[9]<<endl;cout<<h[8]<<endl;cout<<h[7]<<endl;
      |                                                ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  vector<int> v;
  int h;
  while (cin >> h) {
    v.push_back(h);
  }
  sort(v.begin, v.end);
  int s = v.size();
  cout << v[s-1] << endl << v[s-2] << endl << v[s-3] << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:7: error: no matching function for call to 'sort(<unresolved overloaded function type>, <unresolved overloaded function type>)'
    9 |   sort(v.begin, v.end);
      |   ~~~~^~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:61,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algo.h:4762:5: note: candidate: 'template<class _RAIter> void std::sort(_RAIter, _RAIter)'
 4762 |     sort(_RandomAccessIterator __first, _RandomAccessIterator __last)
      |     ^~~~
/usr/include/c++/14/bits/stl_algo.h:4762:5: note:   template argument deduction/substitution failed:
a.cc:9:7: note:   couldn't deduce template parameter '_RAIter'
    9 |   sort(v.begin, v.end);
      |   ~~~~^~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4793:5: note: candidate: 'template<class _RAIter, class _Compare> void std::sort(_RAIter, _RAIter, _Compare)'
 4793 |     sort(_RandomAccessIterator __first, _RandomAccessIterator __last,
      |     ^~~~
/usr/include/c++/14/bits/stl_algo.h:4793:5: note:   candidate expects 3 arguments, 2 provided
In file included from /usr/include/c++/14/algorithm:86:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:292:1: note: candidate: 'template<class _ExecutionPolicy, class _RandomAccessIterator, class _Compare> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> std::sort(_ExecutionPolicy&&, _RandomAccessIterator, _RandomAccessIterator, _Compare)'
  292 | sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp);
      | ^~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:292:1: note:   candidate expects 4 arguments, 2 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:296:1: note: candidate: 'template<class _ExecutionPolicy, class _RandomAccessIterator> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> std::sort(_ExecutionPolicy&&, _RandomAccessIterator, _RandomAccessIterator)'
  296 | sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last);
      | ^~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:296:1: note:   candidate expects 3 arguments, 2 provided
Language: C++

import java.util.List;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Scanner;

public class Main {
	public static void main(String[]args){
		ListOfTop3Hills();
	}
	
	public static void QQ(){
		for(int i=1;i<10;i++){
			for(int j=1;j<10;j++)System.out.println(i+"x"+j+"="+(i*j));
		}
	}
	
	public static void ListOfTop3Hills(){
		Scanner scan = new Scanner(System.in);
		List<Integer> list = new ArrayList<Integer>();
		
		for(int i=0;i<10;i++)list.add(scan.nextInt());
		Collections.sort(list);
		System.out.print(list.get(9)+"\n"+list.get(8)+"\n"+list.get(7));
	}
}

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

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

int main(){
	int a,b,c,d,e,f,g,h,i,j;
	int yama[10] = { a, b, c, d, e, f, g, h, i, j}
	sort(yama, yama+10)
	cout << yama[0] << endl;
	cout << yama[1] << endl;
	cout << yama[2] << endl;
	
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: expected ',' or ';' before 'sort'
    8 |         sort(yama, yama+10)
      |         ^~~~
Language: C++

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

int main(){
  array<int,10> xs;
  for(int i=0;i<10;++i)scanf("%d",&xs[i]);
  sort(xs.begin(),xs.end(),greater<int>());
  for(int i=0;i<3;++i)printf("%d",xs[i]);
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:28: error: 'greater' was not declared in this scope
    9 |   sort(xs.begin(),xs.end(),greater<int>());
      |                            ^~~~~~~
a.cc:9:36: error: expected primary-expression before 'int'
    9 |   sort(xs.begin(),xs.end(),greater<int>());
      |                                    ^~~
Language: C++

#include <stdio.h>
??
int main(void)
{
????????int yama[10],i,j;
????????for(i=0;i<10;i++){
????????????????scanf("%d",&yamja[i]);
????????}
????????for(i=0;i<10;i++){
????????????????for(j=0;j<10;j++){
????????????????????????if(yama[i]<yama[j]){
????????????????????????????????a=yama[i];
????????????????????????????????????????????????????????????????yama[i]=yama[j];
????????????????????????????????????????????????????????????????yama[j]=a;
}
}
}
for(i=0;i<3;i++){
printf("%d\n",yama[i]);
}
}

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

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

int main(int argc, const char * argv[]) {
    
    // input from txt
    string filename = "input.txt";
    ifstream fin(filename);
    
    if(fin.fail()){
        cout << "load fail...";
    }
    
    vector<int> heights(10);
    for (int i=0; i<10; i++){
        cin >> heights[i];
    }
    sort(heights.begin(), heights.end(), greater<int>());
    
    for (int i=0; i<3; i++){
        cout << heights[i] << endl;
    }
    
    return 0;
}

Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:20:5: error: 'sort' was not declared in this scope; did you mean 'short'?
   20 |     sort(heights.begin(), heights.end(), greater<int>());
      |     ^~~~
      |     short
Language: C++

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

int main(int argc, const char * argv[]) {
    
    if(fin.fail()){
        cout << "load fail...";
    }
    
    vector<int> heights(10);
    for (int i=0; i<10; i++){
        cin >> heights[i];
    }
    sort(heights.begin(), heights.end(), greater<int>());
    
    for (int i=0; i<3; i++){
        cout << heights[i] << endl;
    }
    
    return 0;
}

Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:8:8: error: 'fin' was not declared in this scope
    8 |     if(fin.fail()){
      |        ^~~
a.cc:16:5: error: 'sort' was not declared in this scope; did you mean 'short'?
   16 |     sort(heights.begin(), heights.end(), greater<int>());
      |     ^~~~
      |     short
Language: C++

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

int main(int argc, const char * argv[]) {
    
    if(fin.fail()){
        cout << "load fail...";
    }
    
    vector<int> heights(10);
    for (int i=0; i<10; i++){
        cin >> heights[i];
    }
    sort(heights.begin(), heights.end(), greater<int>());
    
    for (int i=0; i<3; i++){
        cout << heights[i] << endl;
    }
    
    return 0;
}

Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:9:8: error: 'fin' was not declared in this scope
    9 |     if(fin.fail()){
      |        ^~~
Language: C++

#include <iostream>
using namespace std;

class top3
{
private:
	int idx;
	int x;
	int y;
	int hill[10];
	int top[3];
public:
	void empty(){
		idx=0;
		y=0;
		x=10;
	}
	void push(int v){
		hill[idx++]=v;
	}
	int pop(){
		int i;
		top[y]=hill[i];
		for(i=0;i<x;i++){
			
			if(hill[i]>top[y]) {top[y]=hill[i];
		}
		x--;
		return top[y++];
	
	};
	
};
int main(){

	top3 a;
	int n,v;
	cin>>n;
	a.empty();
	for(int i=0;i<n;i++){
		cin>>v;
		a.push(v);
	}
	for(int i=0;i<n;i++){
		cout<<a.pop()<<endl;
	}
	return 0;
}	

Compiler output:
a.cc:48:8: error: expected '}' at end of input
   48 | }
      |  ^      
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
a.cc:48:8: error: expected unqualified-id at end of input
   48 | }
      |  ^
Language: C++

#include <iostream>
#include <cstdlib>
#include <fstream>

int main(int argc, char *argv[]){
	//	std::ifstream datafile(argv[1]); //input datafile
	std::string str;
	int mt_height[10] = {}; //height of mountain
	int ans[3] = {}; // top 3 height of mountain. 0 -> no.1 1 -> no.2 2 -> no.3

	if(datafile.fail()){
		std::cout << "error : can't open this file." << std::endl;
		exit(1);
	}

	//input 10 height of mountain
	for(size_t i = 0; i < 10; i++){
		std::getline(std::cin, str);
		sscanf(str.c_str(), "%d", &mt_height[i]);

		if((mt_height[i] < 0) || (mt_height[i] > 10000)){
			std::cout << "error : out of constraints" << std::endl;
			exit(1);
		}
	}

	//select top 3 height of mountain and sort ans[]
	for(size_t i = 0; i < 10; i++){
		if(ans[0] < mt_height[i]){
			ans[2] = ans[1];
			ans[1] = ans[0];
			ans[0] = mt_height[i];
		}else if(ans[1] < mt_height[i]){
			ans[2] = ans[1];
			ans[1] = mt_height[i];
		}else if(ans[2] < mt_height[i]){
			ans[2] = mt_height[i];
		}
	}

	//output ans[]
	for(size_t i = 0; i < 3; i++){
		std::cout << ans[i] << std::endl;
	}

	return 0;
}

Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:11:12: error: 'datafile' was not declared in this scope
   11 |         if(datafile.fail()){
      |            ^~~~~~~~
Language: C++

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

int mountain[12]

int main() {
  for (int i = 0; i < 10; ++i){
    cin >> mountain[i];
  }
  sort(mountain,mountain+10)

  cout << mountain[9] << endl
  << mountain[8] << endl
  << mountain[7] << endl;
}

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

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

int mountain[12]

int main() {
  for (int i = 0; i < 10; ++i){
    cin >> mountain[i];
  }
  sort(mountain,mountain+10)

  cout << mountain[9] << endl
  << mountain[8] << endl
  << mountain[7] << endl;
}

Compiler output:
a.cc:6:1: error: expected initializer before 'int'
    6 | int main() {
      | ^~~