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

#include<iostream>
 using namespace std;
int main(){
int input[10];
int first;
int second;
int third;

for(int i,i<10,i++){
cin>>input[i];
if(first<input){
 first = input[i];
}else if(second<input){
 second = input[i];
}else if(third<input){
 third = input[i];
}


}
cout<<first<<endl<<second<<endl<<third<<endl;
return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:12: error: expected ';' before '<' token
    9 | for(int i,i<10,i++){
      |            ^
      |            ;
a.cc:9:12: error: expected primary-expression before '<' token
a.cc:9:19: error: expected ';' before ')' token
    9 | for(int i,i<10,i++){
      |                   ^
      |                   ;
a.cc:11:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 | if(first<input){
      |    ~~~~~^~~~~~
a.cc:13:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   13 | }else if(second<input){
      |          ~~~~~~^~~~~~
a.cc:15:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   15 | }else if(third<input){
      |          ~~~~~^~~~~~
Language: C++

#include<iostream>
 using namespace std;
int main(){
int input[10];
int first;
int second;
int third;
for(int i=0,i<10,i++){
cin>>input[i];
if(first<input){first = input[i];}else 
if(second<input){second = input[i];}else 
if(third<input){third = input[i];}
}
cout<<first<<endl;cout<<second<<endl;cout<<third<<endl;
return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: expected ';' before '<' token
    8 | for(int i=0,i<10,i++){
      |              ^
      |              ;
a.cc:8:14: error: expected primary-expression before '<' token
a.cc:8:21: error: expected ';' before ')' token
    8 | for(int i=0,i<10,i++){
      |                     ^
      |                     ;
a.cc:10:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 | if(first<input){first = input[i];}else
      |    ~~~~~^~~~~~
a.cc:11:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 | if(second<input){second = input[i];}else
      |    ~~~~~~^~~~~~
a.cc:12:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 | if(third<input){third = input[i];}
      |    ~~~~~^~~~~~
Language: C++

#include<iostream>
 using namespace std;
int main(){
int input[10];
int first;
int second;
int third;
for(int i=0,i<10,i++){
cin>>input[i];
if(first<input){first = input[i];}else 
if(second<input){second = input[i];}else 
if(third<input){third = input[i];}
}
cout<<first<<endl;
cout<<second<<endl;
cout<<third<<endl;
return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: expected ';' before '<' token
    8 | for(int i=0,i<10,i++){
      |              ^
      |              ;
a.cc:8:14: error: expected primary-expression before '<' token
a.cc:8:21: error: expected ';' before ')' token
    8 | for(int i=0,i<10,i++){
      |                     ^
      |                     ;
a.cc:10:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 | if(first<input){first = input[i];}else
      |    ~~~~~^~~~~~
a.cc:11:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 | if(second<input){second = input[i];}else
      |    ~~~~~~^~~~~~
a.cc:12:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 | if(third<input){third = input[i];}
      |    ~~~~~^~~~~~
Language: C++

#include<iostream>
using namespace std;
int main(){
int input[10];
int first;
int second;
int third;
for(int i=0,i<10,i++){
cin>>input[i];
if(first<input){first = input[i];}else 
if(second<input){second = input[i];}else 
if(third<input){third = input[i];}
}
cout<<first<<endl;
cout<<second<<endl;
cout<<third<<endl;
return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: expected ';' before '<' token
    8 | for(int i=0,i<10,i++){
      |              ^
      |              ;
a.cc:8:14: error: expected primary-expression before '<' token
a.cc:8:21: error: expected ';' before ')' token
    8 | for(int i=0,i<10,i++){
      |                     ^
      |                     ;
a.cc:10:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 | if(first<input){first = input[i];}else
      |    ~~~~~^~~~~~
a.cc:11:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 | if(second<input){second = input[i];}else
      |    ~~~~~~^~~~~~
a.cc:12:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 | if(third<input){third = input[i];}
      |    ~~~~~^~~~~~
Language: C++

#include<iostream>
 using namespace std;
int main(){
int input[10];
int first;
int second;
int third;
for(int i=0;i<10;i++){
cin>>input[i];
if(first<input){first = input[i];}else 
if(second<input){second = input[i];}else 
if(third<input){third = input[i];}
}
cout<<first<<endl;cout<<second<<endl;cout<<third<<endl;
return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 | if(first<input){first = input[i];}else
      |    ~~~~~^~~~~~
a.cc:11:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 | if(second<input){second = input[i];}else
      |    ~~~~~~^~~~~~
a.cc:12:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 | if(third<input){third = input[i];}
      |    ~~~~~^~~~~~
Language: C++

#include<iostream>
 using namespace std;
int main(){
int input[10];
int first;
int second;
int third;
int i=0
for(;i<10;i++){
cin>>input[i];
if(first<input){first = input[i];}else 
if(second<input){second = input[i];}else 
if(third<input){third = input[i];}
}
cout<<first<<endl;cout<<second<<endl;cout<<third<<endl;
return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:1: error: expected ',' or ';' before 'for'
    9 | for(;i<10;i++){
      | ^~~
a.cc:9:14: error: expected ';' before ')' token
    9 | for(;i<10;i++){
      |              ^
      |              ;
Language: C++

#include<iostream>
 using namespace std;
int main(){
int input[10];
int first;
int second;
int third;
int i=0;
for(;i<10;i++){
cin>>input[i];
if(first<input){first = input[i];}else 
if(second<input){second = input[i];}else 
if(third<input){third = input[i];}
}
cout<<first<<endl;cout<<second<<endl;cout<<third<<endl;
return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 | if(first<input){first = input[i];}else
      |    ~~~~~^~~~~~
a.cc:12:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 | if(second<input){second = input[i];}else
      |    ~~~~~~^~~~~~
a.cc:13:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   13 | if(third<input){third = input[i];}
      |    ~~~~~^~~~~~
Language: C++

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:8: error: 'sort' is not a member of 'std'; did you mean 'qsort'?
   12 |   std::sort(hills.begin(), hills.end(), std::greater<int>());
      |        ^~~~
      |        qsort
Language: C++

#include<iostream>

using namespace std;
 
int main(){
  int x[10],tmp,i,j;

  for(i=0; i<10; ++i)
    cin >> x[i];

  sort(x,x+10,greater<int>());

  /*
  for(i=0; i<10; ++i){
    for(j=i+1; j<10; ++j){
      if(x[i] < x[j]){
	tmp = x[i];
	x[i] = x[j];
	x[j] = tmp;
      }
    }
  */
  }

  for(i=0; i<3; ++i)
    cout << x[i] << "\n";

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:3: error: 'sort' was not declared in this scope; did you mean 'short'?
   11 |   sort(x,x+10,greater<int>());
      |   ^~~~
      |   short
a.cc: At global scope:
a.cc:25:3: error: expected unqualified-id before 'for'
   25 |   for(i=0; i<3; ++i)
      |   ^~~
a.cc:25:12: error: 'i' does not name a type
   25 |   for(i=0; i<3; ++i)
      |            ^
a.cc:25:17: error: expected unqualified-id before '++' token
   25 |   for(i=0; i<3; ++i)
      |                 ^~
a.cc:28:5: error: expected unqualified-id before 'return'
   28 |     return 0;
      |     ^~~~~~
a.cc:29:1: error: expected declaration before '}' token
   29 | }
      | ^
Language: C++

#include<iostream>
#include<algorithm>

using namespace std;
 
int main(){
  int x[10],tmp,i,j;

  for(i=0; i<10; ++i)
    cin >> x[i];

  sort(x,x+10,greater<int>());

  /*
  for(i=0; i<10; ++i){
    for(j=i+1; j<10; ++j){
      if(x[i] < x[j]){
	tmp = x[i];
	x[i] = x[j];
	x[j] = tmp;
      }
    }
  */
  }

  for(i=0; i<3; ++i)
    cout << x[i] << "\n";

    return 0;
}

Compiler output:
a.cc:26:3: error: expected unqualified-id before 'for'
   26 |   for(i=0; i<3; ++i)
      |   ^~~
a.cc:26:12: error: 'i' does not name a type
   26 |   for(i=0; i<3; ++i)
      |            ^
a.cc:26:17: error: expected unqualified-id before '++' token
   26 |   for(i=0; i<3; ++i)
      |                 ^~
a.cc:29:5: error: expected unqualified-id before 'return'
   29 |     return 0;
      |     ^~~~~~
a.cc:30:1: error: expected declaration before '}' token
   30 | }
      | ^
Language: C++


int main(){
	int hight[NUM];	// ??\????????????
	int top[TOP];

	// ?????????????????????
	for(int i=0; i < NUM ; ){
		cin >> hight[i];
		// ?????¶ : 0 <= ?±±????????? <= 10000
		if(hight[i] < 0  ||  hight[i] > 10000){
			continue;
        }
        i++;
	}
    
	// ?????????????????????TOP???????????????
	top[0] = 0;
	for(int i=0; i < NUM ; i++){
		for(int j=0;j<TOP ; j++){
			// ???????????????????????????????????°???hight[i]???top[j]?????????????????\?????????
			if(hight[i] > top[j]){
				for(int k=TOP-1 ; k > j ; k--){
					top[k] = top[k-1];  // <- ????????§?????°?????????
				}
				top[j] = hight[i];
                break;
			}
		}
	}

	// ?????????TOP???????????????
	for(int i=0; i < TOP ; i++ ){
		cout << top[i] << '\n';
	}

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:19: error: 'NUM' was not declared in this scope
    3 |         int hight[NUM]; // ??\????????????
      |                   ^~~
a.cc:4:17: error: 'TOP' was not declared in this scope
    4 |         int top[TOP];
      |                 ^~~
a.cc:8:17: error: 'cin' was not declared in this scope
    8 |                 cin >> hight[i];
      |                 ^~~
a.cc:8:24: error: 'hight' was not declared in this scope
    8 |                 cin >> hight[i];
      |                        ^~~~~
a.cc:17:9: error: 'top' was not declared in this scope
   17 |         top[0] = 0;
      |         ^~~
a.cc:21:28: error: 'hight' was not declared in this scope
   21 |                         if(hight[i] > top[j]){
      |                            ^~~~~
a.cc:33:17: error: 'cout' was not declared in this scope
   33 |                 cout << top[i] << '\n';
      |                 ^~~~
Language: C++

#include<algorithm>
using namespace std;

int main() {

	unsigned int height[10];

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

	sort(height, height + 10);

	cout << height[9] << endl;
	cout << height[8] << endl;
	cout << height[7] << endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:17: error: 'cin' was not declared in this scope
   10 |                 cin >> height[i];
      |                 ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include<algorithm>
  +++ |+#include <iostream>
    2 | using namespace std;
a.cc:15:9: error: 'cout' was not declared in this scope
   15 |         cout << height[9] << endl;
      |         ^~~~
a.cc:15:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:15:30: error: 'endl' was not declared in this scope
   15 |         cout << height[9] << endl;
      |                              ^~~~
a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    1 | #include<algorithm>
  +++ |+#include <ostream>
    2 | using namespace std;
Language: C++

#include<iostream>
#include<queue>
#include<string>
#include<stack>
#include<cstdio>

using namespace std;

int main(void)
{
  int a[10]={};
  int i=0;
  int j=0;

  for(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: In function 'int main()':
a.cc:18:3: error: 'sort' was not declared in this scope; did you mean 'short'?
   18 |   sort(a,a+10);
      |   ^~~~
      |   short
Language: C++

#include<iostream>
using namespace std;
int main(void)
{
  int a[10]={};
  int i=0;
  int j=0;

  for(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: In function 'int main()':
a.cc:12:3: error: 'sort' was not declared in this scope; did you mean 'short'?
   12 |   sort(a,a+10);
      |   ^~~~
      |   short
Language: C++

#include<iostream>
#include<queue>
#include<string>
#include<stack>
#include<cstdio>

using namespace std;

int main(void)
{
  int a[10]={};
  int i=0;
  int j=0;

  for(i=0;i<10;i++)
    cin>>a[i];

  sort(a,a+10);

  cout<<a[9]<<endl<<a[8]<<endl<<a[7]<<endl;
  return 0;
}

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

#include <stdio.h>

int main(){
    
    int a,b,c,d,e,f,g,h,i,j;
    int n1,n2,n3;
    
    scanf("%d",&a);
    scanf("%d",&b);
    
    if(b > a){
        
        n1 = b
        n2 = a;
        
    }else{
        
        n1 = a;
        n2 = b;
        
    }
    
    scanf("%d",&c);
    
    if(c > n1){
        
        n2 = n1;
        n1 = c;
        
    }else if(c > n2){
        
        n3 = n2;
        n2 = c;
        
    }else{
        
        n3 = c;
        
    }
    
    scanf("%d",&d);
    
    if(d > n1){
        
        n3 = n2;
        n2 = n1;
        n1 = d;
        
    }else if(d > n2){
        
        n3 = n2;
        n2 = d;
        
    }else if(d > n3){
        
        n3 = d;
        
    }
    
    scanf("%d",&e);
    
    if(e > n1){
        
        n3 = n2;
        n2 = n1;
        n1 = e;
        
    }else if(e > n2){
        
        n3 = n2;
        n2 = e;
        
    }else if(e > n3){
        
        n3 = e;
        
    }
    
    scanf("%d",&f);
    
    if(f > n1){
        
        n3 = n2;
        n2 = n1;
        n1 = f;
           
    }else if(f > n2){
        
        n3 = n2;
        n2 = f;
        
    }else if(f > n3){
        
        n3 = f;
        
    }
    
    scanf("%d",&g);
    
    if(g > n1){
        
        n3 = n2;
        n2 = n1;
        n1 = g;
        
    }else if(g > n2){
        
        n3 = n2;
        n2 = g;
        
    }else if(g > n3){
        
        n3 = g;
        
    }
    
    scanf("%d",&h);
    
 if(h > n1){
        
        n3 = n2;
        n2 = n1;
        n1 = h;
        
    }else if(h > n2){
        
        n3 = n2;
        n2 = h;
        
    }else if(h > n3){
        
        n3 = h;
        
    }


    scanf("%d",&i);
    
     if(i > n1){
        
        n3 = n2;
        n2 = n1;
        n1 = i;
        
    }else if(i > n2){
        
        n3 = n2;
        n2 = i;
        
    }else if(i > n3){
        
        n3 = i;
        
    }
    
    
    scanf("%d",&j);
    
     if(j > n1){
        
        n3 = n2;
        n2 = n1;
        n1 = j;
        
    }else if(j > n2){
        
        n3 = n2;
        n2 = j;
        
    }else if(j > n3){
        
        n3 = j;
        
    }
    
    
    printf("%d\n",n1);
    printf("%d\n",n2);
    printf("%d\n",n3);
    

    return 0;   
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:15: error: expected ';' before 'n2'
   13 |         n1 = b
      |               ^
      |               ;
   14 |         n2 = a;
      |         ~~
Language: C++

#include<stdio.h>
int main(void) {
	int c[12],top=0,second=0,thread=0;
	for (time_t i = 1; i <= 10; i++)
	{
		scanf("%d", &c[i]);
		if (c[i]>top)
		{
			second = top;
			top = c[i];
		}
		else
		{
			if (c[i]>second)
			{
				thread = second;
				second = c[i];
			}
			else
			{
				if (c[i]>thread)
				{
					thread = c[i];
				}
			}
		}
	}
	printf("%d\n%d\n%d\n", top, second, thread);
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:14: error: 'time_t' was not declared in this scope
    4 |         for (time_t i = 1; i <= 10; i++)
      |              ^~~~~~
a.cc:2:1: note: 'time_t' is defined in header '<ctime>'; this is probably fixable by adding '#include <ctime>'
    1 | #include<stdio.h>
  +++ |+#include <ctime>
    2 | int main(void) {
a.cc:4:28: error: 'i' was not declared in this scope
    4 |         for (time_t i = 1; i <= 10; i++)
      |                            ^
Language: C++

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

Compiler output:
a.cc:1:19: warning: extra tokens at end of #include directive
    1 | #include<iostream>?¬
      |                   ^
a.cc:1:20: error: extended character ¬ is not valid in an identifier
    1 | #include<iostream>?¬
      |                    ^
a.cc:2:25: error: extended character ¬ is not valid in an identifier
    2 |    using namespace std;?¬
      |                         ^
a.cc:3:5: error: extended character ¬ is not valid in an identifier
    3 |    ?¬
      |     ^
a.cc:4:25: error: extended character ¬ is not valid in an identifier
    4 |    const int MAX_N = 9;?¬
      |                         ^
a.cc:5:18: error: extended character ¬ is not valid in an identifier
    5 |    int a[MAX_N];?¬
      |                  ^
a.cc:6:7: error: extended character ¬ is not valid in an identifier
    6 |      ?¬
      |       ^
a.cc:7:16: error: extended character ¬ is not valid in an identifier
    7 |    int main(){?¬
      |                ^
a.cc:8:5: error: extended character ¬ is not valid in an identifier
    8 |    ?¬
      |     ^
a.cc:9:37: error: extended character ¬ is not valid in an identifier
    9 |        for(int i=0; i<=MAX_N; i++){?¬
      |                                     ^
a.cc:10:25: error: extended character ¬ is not valid in an identifier
   10 |            cin >> a[i];?¬
      |                         ^
a.cc:11:10: error: extended character ¬ is not valid in an identifier
   11 |        }?¬
      |          ^
a.cc:12:10: error: extended character ¬ is not valid in an identifier
   12 |         ?¬
      |          ^
a.cc:13:22: error: extended character ¬ is not valid in an identifier
   13 |        sort(a,a+10);?¬
      |                      ^
a.cc:14:62: error: extended character ¬ is not valid in an identifier
   14 |        cout << a[9] << endl << a[8] << endl << a[7] << endl;?¬
      |                                                              ^
a.cc:15:5: error: extended character ¬ is not valid in an identifier
   15 |    ?¬
      |     ^
a.cc:16:18: error: extended character ¬ is not valid in an identifier
   16 |        return 0;?¬
      |                  ^
a.cc:17:6: error: extended character ¬ is not valid in an identifier
   17 |    }?¬
      |      ^
a.cc:2:24: error: expected unqualified-id before '?' token
    2 |    using namespace std;?¬
      |                        ^
a.cc:4:24: error: expected unqualified-id before '?' token
    4 |    const int MAX_N = 9;?¬
      |                        ^
a.cc:5:17: error: expected unqualified-id before '?' token
    5 |    int a[MAX_N];?¬
      |                 ^
a.cc:17:5: error: expected unqualified-id before '?' token
   17 |    }?¬
      |     ^
Language: C++

#include<iostream>
using namespace std;

const int MAX_N = 9;
int a[MAX_N];
  
int main(){

    for(int i=0; i<=MAX_N; i++){
        cin >> a[i];
    }
     
    sort(a,a+10);
    cout << a[9] << endl << a[8] << endl << a[7] << endl;

    return 0;
}

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

#include<iostream>
using namespace std;

const int MAX_N = 9;
int a[MAX_N];
  
int main(){

    for(int i=0; i<=MAX_N; i++){
        cin >> a[i];
    }
     
    std::sort(a,a+10);
    cout << a[9] << endl << a[8] << endl << a[7] << endl;

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:10: error: 'sort' is not a member of 'std'; did you mean 'qsort'?
   13 |     std::sort(a,a+10);
      |          ^~~~
      |          qsort
Language: C++

#include<iostream>
using namespace std;
int main(){
  int a;
  int x=0;
  int y=0;
  int z=0;
  for(int i=1,i<=10,i++){
    cin >> a;
    if(a>x){
      x=a;
    }else if(y<a<=x){
      y=a;
    }else if(z<a<=y){
      z=a;
    }
  }
  cout << x << endl;
  cout << y << endl;
  cout << z << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:16: error: expected ';' before '<=' token
    8 |   for(int i=1,i<=10,i++){
      |                ^~
      |                ;
a.cc:8:16: error: expected primary-expression before '<=' token
    8 |   for(int i=1,i<=10,i++){
      |                ^~
a.cc:8:24: error: expected ';' before ')' token
    8 |   for(int i=1,i<=10,i++){
      |                        ^
      |                        ;
Language: C++

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

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

int main()
{
	int i,j;
	int rank1 = 0;
	int mountain[10] = {0};
	for (i = 0; i < 10; i++) {
		scanf_s("%d", &mountain[i]);
	}



	for (i = 0; i < 10; i++) {
		for (j = i + 1; j < 10; j++) {

			if (mountain[j] > mountain[i])
			{
				rank1 = mountain[i];
				mountain[i] = mountain[j];
				mountain[j] = rank1;
			}
		}
	}

	for (i = 0; i < 3; i++) {
		printf("%d\n", mountain[i]);

		}
	
	


    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:17: error: 'scanf_s' was not declared in this scope
    7 |                 scanf_s("%d", &mountain[i]);
      |                 ^~~~~~~
a.cc:25:17: error: 'printf' was not declared in this scope
   25 |                 printf("%d\n", mountain[i]);
      |                 ^~~~~~
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 i,j;
	int rank1 = 0;
	int mountain[10] = {0};
	for (i = 0; i < 10; i++) {
		scanf("%d", &mountain[i]);
	}



	for (i = 0; i < 10; i++) {
		for (j = i + 1; j < 10; j++) {

			if (mountain[j] > mountain[i])
			{
				rank1 = mountain[i];
				mountain[i] = mountain[j];
				mountain[j] = rank1;
			}
		}
	}

	for (i = 0; i < 3; i++) {
		printf("%d\n", mountain[i]);

		}
	
	


    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:17: error: 'scanf' was not declared in this scope
    7 |                 scanf("%d", &mountain[i]);
      |                 ^~~~~
a.cc:25:17: error: 'printf' was not declared in this scope
   25 |                 printf("%d\n", mountain[i]);
      |                 ^~~~~~
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(void)
{
	int a,b,max= 0,max2=0,max3=0;
	for(a 1;a<=10;a++){
		scanf("%d",&b);
		if(b>max) {
			max=b;
		}
		else if(b>max2){
			max2=b;
		}
		else if(b>max3){
			max3=b;
		}
	}
		printf("%d\n %d\n %d\n",max,max2,max3);
		return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:14: error: expected ';' before numeric constant
    5 |         for(a 1;a<=10;a++){
      |              ^~
      |              ;
Language: C++

num=[]
for i in 0..9
num[i]=gets.to_i
end
for i in 0..2
ans=0
for j in 0..9
if ans<num[j]
ans=num[j]
set=j
end
end
puts ans
num[set]=0
end

Compiler output:
a.cc:2:10: error: too many decimal points in number
    2 | for i in 0..9
      |          ^~~~
a.cc:5:10: error: too many decimal points in number
    5 | for i in 0..2
      |          ^~~~
a.cc:7:10: error: too many decimal points in number
    7 | for j in 0..9
      |          ^~~~
a.cc:1:1: error: 'num' does not name a type; did you mean 'enum'?
    1 | num=[]
      | ^~~
      | enum
Language: C++

#include<stdio.h>
nit mian(void)
{
	int i,j,n[11]
	for(i=0;i<10;i++){
		scanf("%d",n[i]);
	}
	for(i=0;i<10;i++){
		for(j=0;j<=10;j++){
			if(n[j]<=n[i]){
				w=n[i];
				n[i]=n[j];
				n[j]=w;
			}
		}
	}
	for(i=0;i<3;i++){
		printf("%d\n",y[i]);
	}
	return 0;
}

Compiler output:
a.cc:2:1: error: 'nit' does not name a type; did you mean 'int'?
    2 | nit mian(void)
      | ^~~
      | int
Language: C++

#include<stdio.h>
nit mian(void)
{
	int i,j,n[11],w;
	for(i=0;i<10;i++){
		scanf("%d",n[i]);
	}
	for(i=0;i<10;i++){
		for(j=0;j<=10;j++){
			if(n[j]<=n[i]){
				w=n[i];
				n[i]=n[j];
				n[j]=w;
			}
		}
	}
	for(i=0;i<3;i++){
		printf("%d\n",y[i]);
	}
	return 0;
}

Compiler output:
a.cc:2:1: error: 'nit' does not name a type; did you mean 'int'?
    2 | nit mian(void)
      | ^~~
      | int
Language: C++

#include<stdio.h>
int mian(void)
{
	int i,j,n[11],w;
	for(i=0;i<10;i++){
		scanf("%d",n[i]);
	}
	for(i=0;i<10;i++){
		for(j=0;j<=10;j++){
			if(n[j]<=n[i]){
				w=n[i];
				n[i]=n[j];
				n[j]=w;
			}
		}
	}
	for(i=0;i<3;i++){
		printf("%d\n",y[i]);
	}
	return 0;
}	

Compiler output:
a.cc: In function 'int mian()':
a.cc:18:31: error: 'y' was not declared in this scope
   18 |                 printf("%d\n",y[i]);
      |                               ^
Language: C++

#include <studio.h>
#include <iostream>

intmain(){

int 1st, 2nd, 3rd, i, mou[10];

1st = 0;
2nd = 0;
3rd = 0;


for(i=1:i=<10:i++){
	cin >> mou[i];
	if(mou[i] > 1st){
		3rd = 2nd;
		2nd = 1st;
		1st = mou[i];
		break;
	}
	if(mou[i] > 2nd){
		3rd = 2nd;
		2nd = mou[i];
		break;
	}
	if(mou[i] > 3rd){
		3rd = mou[i];
		break;
	}
}

cout << 1st << "\n" << 2nd << "\n" << 3rd << endl;

return 0;
}

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

#include<iostream>
using namespace std;

int main(){
	int num;
	int height[10];
	for(int i=0;i<=9;i++)
		cin>>height[i];

	for(int i=0;i<=9;i++){
		for(int j=i+1;j<=9;j++){
			if(height[i]<=height[j]){
				num=height[i];
				height[i]=height[j];
				height[j]=num;
			}
		}
	}
	for(i=0;i<=2;i++)
		cout<<height[i]<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:13: error: 'i' was not declared in this scope
   19 |         for(i=0;i<=2;i++)
      |             ^
Language: C++

#include<iostream>
using namespace std;

int main(){
    int m[10];
    for(int i=0; i<10; i++){
        cin>>m[i];
    }
    
    sort(m , m+10 ,greater<int>());
    
    for(int i=0; i<3; i++){
        cout << m[i] <<endl;
    }
    
    return 0;
}

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

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

int main(){
    int m[10];
    for(int i=0; i<10; i++){
        cin>>m[i];
    }
    
    sort(m , m+10 ,greater<int>());
    
    for(int i=0; i<3; i++){
        cout << m[i] <<endl;
    }
    
    return 0;
}

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

#include<iostream>
#include<vector>
using namespace std;
int main(){
vector<int> v;
int x;
while(cin>>x){
v.push_back(x);
}
sort(v.begin(),v.end());
cout<<v[0]<<endl;
cout<<v[1]<<endl;
cout<<v[2]<<endl;
reutrn 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:1: error: 'sort' was not declared in this scope; did you mean 'short'?
   10 | sort(v.begin(),v.end());
      | ^~~~
      | short
a.cc:14:1: error: 'reutrn' was not declared in this scope
   14 | reutrn 0;
      | ^~~~~~
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+10);
cout<<a[0]<<endl;
cout<<a[1]<<endl;
cout<<a[2]<<endl;
return 0;
}

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

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:35: error: expected ';' before ')' token
    7 |         for(int i = 0; i < 10, i++){
      |                                   ^
      |                                   ;
a.cc:10:16: error: request for member 'begin' in 'h', which is of non-class type 'int [10]'
   10 |         sort(h.begin(),h.end());
      |                ^~~~~
a.cc:10:26: error: request for member 'end' in 'h', which is of non-class type 'int [10]'
   10 |         sort(h.begin(),h.end());
      |                          ^~~
a.cc:10:9: error: 'sort' was not declared in this scope; did you mean 'short'?
   10 |         sort(h.begin(),h.end());
      |         ^~~~
      |         short
a.cc:12:34: error: expected ';' before ')' token
   12 |         for(int i = 0; i < 3, i++){
      |                                  ^
      |                                  ;
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:35: error: expected ';' before ')' token
    8 |         for(int i = 0; i < 10, i++){
      |                                   ^
      |                                   ;
a.cc:11:16: error: request for member 'begin' in 'h', which is of non-class type 'int [10]'
   11 |         sort(h.begin(),h.end());
      |                ^~~~~
a.cc:11:26: error: request for member 'end' in 'h', which is of non-class type 'int [10]'
   11 |         sort(h.begin(),h.end());
      |                          ^~~
a.cc:13:34: error: expected ';' before ')' token
   13 |         for(int i = 0; i < 3, i++){
      |                                  ^
      |                                  ;
Language: C++

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

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

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

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

int main(){
	int h[10];
	
	for(int i = 0; i < 10; i++){
		cin >> h[i];
	}
	sort(h,h+10,desc);
	
	for(int i = 0; i < 3; i++){
		cout << h[i] << endl;
	}
	
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:21: error: 'desc' was not declared in this scope
   11 |         sort(h,h+10,desc);
      |                     ^~~~
Language: C++

#include <stdio.h>
main(){
  int h[10];
  int st,nd,rd;
  st = 0;
  nd = 0;
  rd = 0;
  for(i=0;i<10;i++){
    scanf("%d",&h[i]);
    if(h[i]>st){
      st = h[i];
    }else if(h[i]>nd){
      nd = h[i];
    }else if(h[i]>rd){
      rd = h[i];
    }
  }
  printf("%d\n%d\n%d\n",st,nd,rd);
} 

Compiler output:
a.cc:2:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    2 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:8:7: error: 'i' was not declared in this scope
    8 |   for(i=0;i<10;i++){
      |       ^
Language: C++

#include<iostream>
#include<algorithm>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'i' was not declared in this scope
    7 | for(i=0;i<10;i++){
      |     ^
Language: C++

#include <stdio.h>
int main(void){
	int d, m1 ,m2 ,m3, i;
	for(i=0;i<10;i++){
		scanf("%d",&d);
		if(d>m1){
		m3=m2 ;
		m2=m1 ;
		m1=d ;
	}else if (d>m2){
		m3=m2 ;
		m2=d ;
	}else if (m3<d){
		m3=d ;
	}
	printf("%d\n%d\n%d\n", m1. m2 ,m3 ) ;
	return 0

Compiler output:
a.cc: In function 'int main()':
a.cc:16:36: error: request for member 'm2' in 'm1', which is of non-class type 'int'
   16 |         printf("%d\n%d\n%d\n", m1. m2 ,m3 ) ;
      |                                    ^~
a.cc:17:17: error: expected ';' at end of input
   17 |         return 0
      |                 ^
      |                 ;
a.cc:17:17: error: expected '}' at end of input
a.cc:4:26: note: to match this '{'
    4 |         for(i=0;i<10;i++){
      |                          ^
a.cc:17:17: error: expected '}' at end of input
   17 |         return 0
      |                 ^
a.cc:2:15: note: to match this '{'
    2 | int main(void){
      |               ^
Language: C++



1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#include<stdio.h>
  
int main(){
    int i,j,t,data[10];
      
    for(i=0;i<10;i++)
    {
        scanf("%d",&data[i]);
    }
      
    for(i=0;i<9;i++)
    {
        for(j=0;j<9-i;j++)
        {
            if(data[j]<data[j+1])
            {
                t=data[j];
                data[j]=data[j+1];
                data[j+1]=t;
            }
        }
    }
    for(i=0;i<3;i++)
    {
        printf("%d\n",data[i]);
    }
  
    return 0;

Compiler output:
a.cc:3:1: error: expected unqualified-id before numeric constant
    3 | 1
      | ^
a.cc: In function 'int main()':
a.cc:39:9: error: 'scanf' was not declared in this scope
   39 |         scanf("%d",&data[i]);
      |         ^~~~~
a.cc:56:9: error: 'printf' was not declared in this scope
   56 |         printf("%d\n",data[i]);
      |         ^~~~~~
a.cc:33:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
   32 | #include<stdio.h>
  +++ |+#include <cstdio>
   33 | 
a.cc:59:14: error: expected '}' at end of input
   59 |     return 0;
      |              ^
a.cc:34:11: note: to match this '{'
   34 | int main(){
      |           ^
Language: C++

Z:\H28\paso2016\toi02

Compiler output:
a.cc:1:3: error: stray '\' in program
    1 | Z:\H28\paso2016\toi02
      |   ^
a.cc:1:7: error: stray '\' in program
    1 | Z:\H28\paso2016\toi02
      |       ^
a.cc:1:16: error: stray '\' in program
    1 | Z:\H28\paso2016\toi02
      |                ^
a.cc:1:2: error: found ':' in nested-name-specifier, expected '::'
    1 | Z:\H28\paso2016\toi02
      |  ^
      |  ::
a.cc:1:1: error: 'Z' does not name a type
    1 | Z:\H28\paso2016\toi02
      | ^
Language: C++

h = []
10.times {h << gets.to_i}
h.sort.reverse.take(3).each{|hh| puts hh} 

Compiler output:
a.cc:1:1: error: 'h' does not name a type
    1 | h = []
      | ^
a.cc:3:1: error: 'h' does not name a type
    3 | h.sort.reverse.take(3).each{|hh| puts hh}
      | ^
Language: C++

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

int main(){
    vecctor<int> v;
    int num;
    for(int i = 0;i<10;i++){
        cin>>num;
        v.push_back(num);
    }

    sort(v.end(),v.begin(),greater<int>());
    


    for(int i = 0;i<3;i++)
        cout<<v.at(i);
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'vecctor' was not declared in this scope
    7 |     vecctor<int> v;
      |     ^~~~~~~
a.cc:7:13: error: expected primary-expression before 'int'
    7 |     vecctor<int> v;
      |             ^~~
a.cc:11:9: error: 'v' was not declared in this scope
   11 |         v.push_back(num);
      |         ^
a.cc:14:10: error: 'v' was not declared in this scope
   14 |     sort(v.end(),v.begin(),greater<int>());
      |          ^
Language: C++

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

using namespace std;

vector<int> heights;
int input;

int main(){
 while(cin >> input) heights.push_back(input);
 sort(input.begin(), input.end());
 auto itr = input.end();
 cout << *itr << "\n" << *(itr-1) << "\n" << *(itr-2) << endl;

 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:13: error: request for member 'begin' in 'input', which is of non-class type 'int'
   12 |  sort(input.begin(), input.end());
      |             ^~~~~
a.cc:12:28: error: request for member 'end' in 'input', which is of non-class type 'int'
   12 |  sort(input.begin(), input.end());
      |                            ^~~
a.cc:13:19: error: request for member 'end' in 'input', which is of non-class type 'int'
   13 |  auto itr = input.end();
      |                   ^~~
Language: C++

//
// Created by tac on 2016/10/27.
//

#include <cstdlib>
#include <functional>
#include <vector>
#include <iostream>

const int N_SIZE = 10000;

int main() {
    std::vector<int> v(N_SIZE);
    int n = 10;
    int s;
    for (int i = 0; i < n; ++i) {
        std::cin >> s;
        v.push_back(s);
    }
    std::sort(v.begin(), v.end(), std::greater<int>());
    for (int j = 0; j < 3; ++j) {
        std::cout << v[j] << std::endl;
    }
    return EXIT_SUCCESS;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:10: error: 'sort' is not a member of 'std'; did you mean 'qsort'?
   20 |     std::sort(v.begin(), v.end(), std::greater<int>());
      |          ^~~~
      |          qsort
Language: C++

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

int main(){
int a[10];

for(int i=0;i<10;i++){
scans(" %d",&a[i]);
}

sort(a,a+10);

for(int i=9;i>=7;i--){
cout << a[i] <<endl;
}

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:1: error: 'scans' was not declared in this scope; did you mean 'scanf'?
   10 | scans(" %d",&a[i]);
      | ^~~~~
      | scanf
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define MOD 1000000007
#define INF 999999999
#define FOR(i,a,b) for (int i=(a);i<(b);i++)
#define FFOR(i,a,b) for (int i=(a);i>(b);i--)
#define REP(i,n) FOR(i,0,n)
#define RREP(i,n) for (int i=(n)-1;i>=0;i--)
#define SORT(c) sort((c).begin(),(c).end())
#define ALL(a) (a).begin(),(a).end()
typedef long long ll;
typedef pair<int,int> P;
typedef vector<int> Vi;
int a[10];
int main(){
  REP(i,10){
	  cin>>a[i];
  }
  SORT(a);
  FFOR(i,9,6){
	  cout<<a[i]<<endl;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:26: error: request for member 'begin' in 'a', which is of non-class type 'int [10]'
    9 | #define SORT(c) sort((c).begin(),(c).end())
      |                          ^~~~~
a.cc:19:3: note: in expansion of macro 'SORT'
   19 |   SORT(a);
      |   ^~~~
a.cc:9:38: error: request for member 'end' in 'a', which is of non-class type 'int [10]'
    9 | #define SORT(c) sort((c).begin(),(c).end())
      |                                      ^~~
a.cc:19:3: note: in expansion of macro 'SORT'
   19 |   SORT(a);
      |   ^~~~
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;

	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++

#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 c_
        cin>>c_

	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
a.cc:83:9: error: expected initializer before 'cin'
   83 |         cin>>c_
      |         ^~~