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

#include <stdio.h> 
void qsort(int *data,int size);
void swap(int *a,int *b);
int main(void){
int i;
int data[5];
for(i=0;i<5;i++) scanf("%d",&data[i]);
qsort(data,5);
for(i=0;i<5;i++) printf("%d ",data[i]);
return o;
}
void qsort(int *data,int size){
int i,last=1;
if(size<2)return;
for(i=1;i<size;i++){
if(data[0]<data[i]){ swap(&data[last],&data[i]);
last++;
}
}
swap(&data[0],&data[last-1]);
qsort(data,last);
qsort(data+last,size-last);
}
void swap(int *a,int *b){
int work;
work=a[0];
a[0]=b[0];
b[0]=work;
}

Compiler output:
main.c: In function 'main':
main.c:10:8: error: 'o' undeclared (first use in this function)
   10 | return o;
      |        ^
main.c:10:8: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

int main(){
	
	int i;
	vector<int> vec(5.0);
	
	
	for(i = 0 ; i<5 ; i++){
		cin >> vec[i];
	}
	
	
	
	sort(vec.begin() , vec.end() );
	
	for(i = 4; i>=0 ; i--){
		
		
		
		if(i == 0)  cout << vec[i] << endl;
		
		else    cout << vec[i] <<" ";
		
	}
	
	return 0;
	
}

Compiler output:
main.c:1:9: fatal error: iostream: No such file or directory
    1 | #include<iostream>
      |         ^~~~~~~~~~
compilation terminated.
Language: C

include <stdio.h>

int main(void)
{
	int p[5];
	int n=5;
	int i,j,temp;
	for(i=0;i<5;i++){
	scanf("%d",&p[i]);
	}
	for(i=0;i<n-1;i++){
		for(j=n-1;j>i;j--){
			if(p[j-1]>p[j]){
				temp=p[j];
				p[j]=p[j-1];
				p[j-1]=temp;
			}
		}
	}
	for(i=0;i<5;i++){
	printf("%d",p[i]);
		if(i<4){
			printf(" ");
		}
		else{
			printf("\n");
		}
	}
	return 0;
}

Compiler output:
main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include <stdio.h>
      |         ^
Language: C

include <stdio.h>

int main(void)
{
	int p[5];
	int n=5;
	int i,j,temp;
	for(i=0;i<5;i++){
	scanf("%d",&p[i]);
	}
	for(i=0;i<n-1;i++){
		for(j=n-1;j>i;j--){
			if(p[j-1]>p[j]){
				temp=p[j];
				p[j]=p[j-1];
				p[j-1]=temp;
			}
		}
	}
	for(i=0;i<5;i++){
	printf("%d",p[i]);
		if(i<4){
			printf(" ");
		}
	}
	return 0;
}

Compiler output:
main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include <stdio.h>
      |         ^
Language: C

#include <stdio.h>

int main()
{
	int i,j,a[5];
	
	scanf("%d %d %d %d %d",a,a+1,a+2,a+3,a+4);
	for(i=0;i<5;i++){
		for(j=i+1;j<5;j++){
			if(a[i]<a[j]){
				t=a[i];a[i]=a[j];a[j]=t;
			}
		}
	}
	
	printf("%d %d %d %d %d\n",a[0],a[1],a[2],a[3],a[4]);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:33: error: 't' undeclared (first use in this function)
   11 |                                 t=a[i];a[i]=a[j];a[j]=t;
      |                                 ^
main.c:11:33: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include <iostream>
#include <memory>

using namespace std;

namespace sorting_five_numbers
{
    class SortingFiveNumbers
    {
    private:
        //! データサイズ
        static const int Size = 5;

        //! 入力値
        int dataList[Size];

    public:
        /**
        * @brief コンストラクタ
        */
        SortingFiveNumbers(int target[]) {
            memset(dataList, 0, Size);

            for (int i = 0; i < Size; i++) {
                dataList[i] = target[i];
            }
        }

        /**
        * @fn int* createDescendingList()
        * @brief 降順にソートしたリストを生成する
        * @return int* ソート済みリスト
        */
        int* createDescendingList();
    };

    class Control
    {
    private:
        //! データサイズ
        static const int Size = 5;

    public:
        /**
        * @fn bool executeEx()
        * @brief 5つの整数を読み込み、降順に整列し出力する
        * @return bool 入力値が範囲内ならtrueを、そうでなければfalseを返す
        */
        bool executeEx();

    private:
        /**
        * @fn void read(int target[])
        * @brief 標準入力から読み込む
        * @param[out] target 入力データ
        */
        void read(int target[]);

        /**
        * @fn void write(int target[])
        * @brief 標準出力に書き込む
        * @param[in] target 出力データ
        */
        void write(int target[]);

        /**
        * @fn bool check(int target[])
        * @brief 入力データが範囲内か調べる
        * @param[in] target 調査対象
        * @return bool 入力データが範囲内ならtrueを、そうでなければfalseを返す
        */
        bool check(int target[]);
    };
}

using namespace sorting_five_numbers;

int* SortingFiveNumbers::createDescendingList()
{
    for (int i = 0; i < Size - 1; i++) {
        int max = i;
        for (int j = i + 1; j < Size; j++) {
            if (dataList[max] < dataList[j]) {
                max = j;
            }
        }
        int t = dataList[i];
        dataList[i] = dataList[max];
        dataList[max] = t;
    }

    return dataList;
}

bool Control::executeEx()
{
    int input[Size] = { 0 };
    int* output = NULL;

    read(input);

    if (!check(input))
        return false;

    SortingFiveNumbers list(input);

    output = list.createDescendingList();

    write(output);

    return true;
}

void Control::read(int target[])
{
    for (int i = 0; i < Size; i++)
        cin >> target[i];
}

void Control::write(int target[])
{
    for (int i = 0; i < Size; i++) {
        (i != Size) ? cout << target[i] << " " : cout << target[i] << endl;
    }
}

bool Control::check(int target[])
{
    static const int Min = -100000;
    static const int Max = 100000;

    for (int i = 0; i < Size; i++) {
        if (Min > target[i] || Max < target[i])
            return false;
    }

    return true;
}

int main()
{
    if (!Control().executeEx())
        return 1;
}



Compiler output:
a.cc: In constructor 'sorting_five_numbers::SortingFiveNumbers::SortingFiveNumbers(int*)':
a.cc:22:13: error: 'memset' was not declared in this scope
   22 |             memset(dataList, 0, Size);
      |             ^~~~~~
a.cc:3:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    2 | #include <memory>
  +++ |+#include <cstring>
    3 |
Language: C++

#include <iostream>
#include <cstdlib>

using namespace std;

namespace sorting_five_numbers
{
    class SortingFiveNumbers
    {
    private:
        //! データサイズ
        static const int Size = 5;

        //! 入力値
        int dataList[Size];

    public:
        /**
        * @brief コンストラクタ
        */
        SortingFiveNumbers(int target[]) {
            memset(dataList, 0, Size);

            for (int i = 0; i < Size; i++) {
                dataList[i] = target[i];
            }
        }

        /**
        * @fn int* createDescendingList()
        * @brief 降順にソートしたリストを生成する
        * @return int* ソート済みリスト
        */
        int* createDescendingList();
    };

    class Control
    {
    private:
        //! データサイズ
        static const int Size = 5;

    public:
        /**
        * @fn bool executeEx()
        * @brief 5つの整数を読み込み、降順に整列し出力する
        * @return bool 入力値が範囲内ならtrueを、そうでなければfalseを返す
        */
        bool executeEx();

    private:
        /**
        * @fn void read(int target[])
        * @brief 標準入力から読み込む
        * @param[out] target 入力データ
        */
        void read(int target[]);

        /**
        * @fn void write(int target[])
        * @brief 標準出力に書き込む
        * @param[in] target 出力データ
        */
        void write(int target[]);

        /**
        * @fn bool check(int target[])
        * @brief 入力データが範囲内か調べる
        * @param[in] target 調査対象
        * @return bool 入力データが範囲内ならtrueを、そうでなければfalseを返す
        */
        bool check(int target[]);
    };
}

using namespace sorting_five_numbers;

int* SortingFiveNumbers::createDescendingList()
{
    for (int i = 0; i < Size - 1; i++) {
        int max = i;
        for (int j = i + 1; j < Size; j++) {
            if (dataList[max] < dataList[j]) {
                max = j;
            }
        }
        int t = dataList[i];
        dataList[i] = dataList[max];
        dataList[max] = t;
    }

    return dataList;
}

bool Control::executeEx()
{
    int input[Size] = { 0 };
    int* output = NULL;

    read(input);

    if (!check(input))
        return false;

    SortingFiveNumbers list(input);

    output = list.createDescendingList();

    write(output);

    return true;
}

void Control::read(int target[])
{
    for (int i = 0; i < Size; i++)
        cin >> target[i];
}

void Control::write(int target[])
{
    for (int i = 0; i < Size; i++) {
        (i != Size) ? cout << target[i] << " " : cout << target[i] << endl;
    }
}

bool Control::check(int target[])
{
    static const int Min = -100000;
    static const int Max = 100000;

    for (int i = 0; i < Size; i++) {
        if (Min > target[i] || Max < target[i])
            return false;
    }

    return true;
}

int main()
{
    if (!Control().executeEx())
        return 1;
}



Compiler output:
a.cc: In constructor 'sorting_five_numbers::SortingFiveNumbers::SortingFiveNumbers(int*)':
a.cc:22:13: error: 'memset' was not declared in this scope
   22 |             memset(dataList, 0, Size);
      |             ^~~~~~
a.cc:3:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    2 | #include <cstdlib>
  +++ |+#include <cstring>
    3 |
Language: C++

require 'set'

class PriorityQueue < SortedSet
  @@id = 0

  def << obj
    add obj
  end

  def add obj
    super([obj,@@id])
    @@id+=1
  end

  def at idx
    super idx
  end

  def top
    self.min[0]
  end

  def pop
    self.delete(self.min)
  end
end

s = PriorityQueue.new

input = gets.split(' ').map(&:to_i)

for i in input
  s << i
end

arr = []
5.times do
  arr << s.top
  s.pop
end

puts arr.reverse.join(' ')

Compiler output:
a.cc:1:9: warning: multi-character character constant [-Wmultichar]
    1 | require 'set'
      |         ^~~~~
a.cc:4:3: error: stray '@' in program
    4 |   @@id = 0
      |   ^
a.cc:4:4: error: stray '@' in program
    4 |   @@id = 0
      |    ^
a.cc:11:16: error: stray '@' in program
   11 |     super([obj,@@id])
      |                ^
a.cc:11:17: error: stray '@' in program
   11 |     super([obj,@@id])
      |                 ^
a.cc:12:5: error: stray '@' in program
   12 |     @@id+=1
      |     ^
a.cc:12:6: error: stray '@' in program
   12 |     @@id+=1
      |      ^
a.cc:1:1: error: 'require' does not name a type
    1 | require 'set'
      | ^~~~~~~
Language: C++

#include <cstdio>
#include <algorithm>
#define SWAP(a,b) { a += b, b = a - b, a -= b; }
using namespace std;

int main()
{
    int n[5];
    for(int i=0;i<5;++i) scanf("%d",&n[i]);
    sort(n,n+5);
    for(int i=0;i<2;++i) { SWAP(n[i],n[4-i]); }
    for(int i=0;i<4;++i) printf("%d ",n[i]);
    printf("%d\n",n[4]);
    return 0
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:13: error: expected ';' before '}' token
   14 |     return 0
      |             ^
      |             ;
   15 | }
      | ~
Language: C++

#include <iostream>
#include <vector>
#include <stack>
#include <queue>
#include <map>
#include <set>
#include <string>
#include <math.h>

typedef long long Int;
#define REP(i,n) for(int i = 0 ; i < n ; ++i)
using namespace std;

int main(){
	int n = 5;

	vector<int> aa;

	REP(i, n){
		int a;
		cin >> a;
		aa.push_back(a);
	}

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

	int i(0);
	for (auto x : aa){
		cout << x;
		if (i != 4){
			cout << " ";
		}
		++i;
	}
	cout << endl;

	return 0;
}

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

#include<cstdio>
#include<algorithm>

using namespace std;

int main(){
  int a[5],i,j,min,min_n;

  for(i=0:i<5;i++)
    scanf("%d",&a[i]);

  for(i=0;i<5;i++){
    min=a[i]; min_n=i;
    for(j=i+1;j<5;j++){
      if(min>a[j]){
        min=a[j]; min_n=j;
      }
    swap(a[i],a[min]);
    printf( i<4 ? "%d " : "%d\n",a[i]);
   }

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:10: error: expected ';' before ':' token
    9 |   for(i=0:i<5;i++)
      |          ^
      |          ;
a.cc:9:18: error: expected ';' before ')' token
    9 |   for(i=0:i<5;i++)
      |                  ^
      |                  ;
a.cc:23:2: error: expected '}' at end of input
   23 | }
      |  ^
a.cc:6:11: note: to match this '{'
    6 | int main(){
      |           ^
Language: C++

#include<cstdio>
#include<algorithm>

using namespace std;

int main(){
  int a[5],i,j,min,min_n;

  for(i=0:i<5;i++)
    scanf("%d",&a[i]);

  for(i=0;i<5;i++){
    min=a[i]; min_n=i;
    for(j=i+1;j<5;j++){
      if(min>a[j]){
        min=a[j]; min_n=j;
      }
    }
  swap(a[i],a[min]);
  printf( i<4 ? "%d " : "%d\n",a[i]);
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:10: error: expected ';' before ':' token
    9 |   for(i=0:i<5;i++)
      |          ^
      |          ;
a.cc:9:18: error: expected ';' before ')' token
    9 |   for(i=0:i<5;i++)
      |                  ^
      |                  ;
Language: C++

#include<cstdio>
#include<algorithm>

using namespace std;

int main(){
  int a[5],i,j,min,min_n;

  for(i=0:i<5;i++)
    scanf("%d",&a[i]);

  for(i=0;i<5;i++){
    min=a[i]; min_n=i;
    for(j=i+1;j<5;j++){
      if(min<a[j]){
        min=a[j]; min_n=j;
      }
    }
  swap(a[i],a[min]);
  printf( i<4 ? "%d " : "%d\n",a[i]);
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:10: error: expected ';' before ':' token
    9 |   for(i=0:i<5;i++)
      |          ^
      |          ;
a.cc:9:18: error: expected ';' before ')' token
    9 |   for(i=0:i<5;i++)
      |                  ^
      |                  ;
Language: C++

#include<iostream>
#include<algorithm>
int main(){
	int a[5];
	for(int i=0;i<5;++i){
		std::cin>>a[i];
	}
	std::sort(a,a+5,greater<int>());
	for(int i=0;i<5;++i){
		std::cout<<a[i]<<' ';
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:25: error: 'greater' was not declared in this scope; did you mean 'std::greater'?
    8 |         std::sort(a,a+5,greater<int>());
      |                         ^~~~~~~
      |                         std::greater
In file included from /usr/include/c++/14/string:49,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_function.h:353:12: note: 'std::greater' declared here
  353 |     struct greater;
      |            ^~~~~~~
a.cc:8:33: error: expected primary-expression before 'int'
    8 |         std::sort(a,a+5,greater<int>());
      |                                 ^~~
Language: C++

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

int main(){
	vector<int> v(5);
	for(int i = 0; i < 5; i++){
		scanf("%d",&v[i]);
	}
	sort(v.rbegin(), v.rend());
	for(int i = 0; i < 5; i++){
		printf("%d ", v[i]);
	}
	printf("\n");
	return 0;
}

Compiler output:
a.cc:2:2: error: invalid preprocessing directive #Include; did you mean #include?
    2 | #Include <algorithm>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:11:9: error: 'sort' was not declared in this scope; did you mean 'short'?
   11 |         sort(v.rbegin(), v.rend());
      |         ^~~~
      |         short
Language: C++

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

for(int i=0;i<5;i++)
{if(i>0)printf(" ");
printf("%d",n[i]);}
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:48: error: expected ';' before '}' token
   10 | if(n[j]>n[j-1]){int t=n[j-1];n[j-1]=n[j];n[j]=t}
      |                                                ^
      |                                                ;
Language: C++

#include<istream>
using namespace std

int main () {
    int i,j,s,w,a[5];
    for(i=0;i<5;i++)
    cin >> a[i];
    for(j=0;j<5;j++) {
        s = a[0];
        for(i=1;i<5;i++) {
            if(s > a[i]) {w = a[i]; a[i] = s; s = w;}  
        }
    }
    for(i=0;i<5;i++) {
        cout << a[i]
        if(i!=4) cout << " ";
        else cout << endl;
    }
}

Compiler output:
a.cc:2:20: error: expected ';' before 'int'
    2 | using namespace std
      |                    ^
      |                    ;
    3 | 
    4 | int main () {
      | ~~~                 
a.cc: In function 'int main()':
a.cc:7:5: error: 'cin' was not declared in this scope
    7 |     cin >> a[i];
      |     ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include<istream>
  +++ |+#include <iostream>
    2 | using namespace std
a.cc:15:9: error: 'cout' was not declared in this scope
   15 |         cout << a[i]
      |         ^~~~
a.cc:15:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:17:9: error: 'else' without a previous 'if'
   17 |         else cout << endl;
      |         ^~~~
Language: C++

#include<iostream>
using namespace std

int main () {
    int i,j,s,w,a[5];
    for(i=0;i<5;i++)
    cin >> a[i];
    for(j=0;j<5;j++) {
        s = a[0];
        for(i=1;i<5;i++) {
            if(s > a[i]) {w = a[i]; a[i] = s; s = w;}  
        }
    }
    for(i=0;i<5;i++) {
        cout << a[i];
        if(i!=4) cout << " ";
        else cout << endl;
    }
}

Compiler output:
a.cc:2:20: error: expected ';' before 'int'
    2 | using namespace std
      |                    ^
      |                    ;
    3 | 
    4 | int main () {
      | ~~~
Language: C++

#include<iostream>
using namespace std;

int main () {
    int i,j,s,w,a[5];
    for(i=0;i<5;i++)
    cin >> a[i];
    t = 0;
    for(j=0;j<5;j++) {
        s = a[0];
        for(i=1;i<5;i++) {
            if(s > a[i]) {w = a[i]; a[i] = s; s = w;a[t] = s;t = i;}  
        }
    }
    for(i=0;i<5;i++) {
        cout << a[i];
        if(i!=4) cout << " ";
        else cout << endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: 't' was not declared in this scope
    8 |     t = 0;
      |     ^
Language: C++

#include<iostream>
using namespace std;
int main()
{
	int a, b, c, d, e, a[6], i, j;
	cin >> a >> b >> c >> d >> e;
	a[0] = a;
	a[1] = b;
	a[2] = c;
	a[3] = d;
	a[4] = e;
	for ( j = 0;j < 5; j++)
	{	for ( i = 0;i < 5; i++)
		{
			if (a[i] >= a[i + 1])a[i + 1] = a[i];
		}
	}
	cout << a[0] << " " <<a[1] << " " << a[2] << " " << a[3] << " " << a[4] << endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:28: error: conflicting declaration 'int a [6]'
    5 |         int a, b, c, d, e, a[6], i, j;
      |                            ^
a.cc:5:13: note: previous declaration as 'int a'
    5 |         int a, b, c, d, e, a[6], i, j;
      |             ^
a.cc:7:10: error: invalid types 'int[int]' for array subscript
    7 |         a[0] = a;
      |          ^
a.cc:8:10: error: invalid types 'int[int]' for array subscript
    8 |         a[1] = b;
      |          ^
a.cc:9:10: error: invalid types 'int[int]' for array subscript
    9 |         a[2] = c;
      |          ^
a.cc:10:10: error: invalid types 'int[int]' for array subscript
   10 |         a[3] = d;
      |          ^
a.cc:11:10: error: invalid types 'int[int]' for array subscript
   11 |         a[4] = e;
      |          ^
a.cc:15:30: error: invalid types 'int[int]' for array subscript
   15 |                         if (a[i] >= a[i + 1])a[i + 1] = a[i];
      |                              ^
a.cc:15:38: error: invalid types 'int[int]' for array subscript
   15 |                         if (a[i] >= a[i + 1])a[i + 1] = a[i];
      |                                      ^
a.cc:15:47: error: invalid types 'int[int]' for array subscript
   15 |                         if (a[i] >= a[i + 1])a[i + 1] = a[i];
      |                                               ^
a.cc:15:58: error: invalid types 'int[int]' for array subscript
   15 |                         if (a[i] >= a[i + 1])a[i + 1] = a[i];
      |                                                          ^
a.cc:18:18: error: invalid types 'int[int]' for array subscript
   18 |         cout << a[0] << " " <<a[1] << " " << a[2] << " " << a[3] << " " << a[4] << endl;
      |                  ^
a.cc:18:32: error: invalid types 'int[int]' for array subscript
   18 |         cout << a[0] << " " <<a[1] << " " << a[2] << " " << a[3] << " " << a[4] << endl;
      |                                ^
a.cc:18:47: error: invalid types 'int[int]' for array subscript
   18 |         cout << a[0] << " " <<a[1] << " " << a[2] << " " << a[3] << " " << a[4] << endl;
      |                                               ^
a.cc:18:62: error: invalid types 'int[int]' for array subscript
   18 |         cout << a[0] << " " <<a[1] << " " << a[2] << " " << a[3] << " " << a[4] << endl;
      |                                                              ^
a.cc:18:77: error: invalid types 'int[int]' for array subscript
   18 |         cout << a[0] << " " <<a[1] << " " << a[2] << " " << a[3] << " " << a[4] << endl;
      |                                                                             ^
Language: C++

#include<iostream>
using namespace std;

int main()
{
	int a, b, c, d, e, a[6], i, j;
	cin >> a >> b >> c >> d >> e;
	a[0] = a;
	a[1] = b;
	a[2] = c;
	a[3] = d;
	a[4] = e;
	for ( j = 0;j < 5; j++)
	{	for ( i = 0;i < 5; i++)
		{
			if (a[i] >= a[i + 1])a[i + 1] = a[i];
		}
	}
	cout << a[0] << " " <<a[1] << " " << a[2] << " " << a[3] << " " << a[4] << endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:28: error: conflicting declaration 'int a [6]'
    6 |         int a, b, c, d, e, a[6], i, j;
      |                            ^
a.cc:6:13: note: previous declaration as 'int a'
    6 |         int a, b, c, d, e, a[6], i, j;
      |             ^
a.cc:8:10: error: invalid types 'int[int]' for array subscript
    8 |         a[0] = a;
      |          ^
a.cc:9:10: error: invalid types 'int[int]' for array subscript
    9 |         a[1] = b;
      |          ^
a.cc:10:10: error: invalid types 'int[int]' for array subscript
   10 |         a[2] = c;
      |          ^
a.cc:11:10: error: invalid types 'int[int]' for array subscript
   11 |         a[3] = d;
      |          ^
a.cc:12:10: error: invalid types 'int[int]' for array subscript
   12 |         a[4] = e;
      |          ^
a.cc:16:30: error: invalid types 'int[int]' for array subscript
   16 |                         if (a[i] >= a[i + 1])a[i + 1] = a[i];
      |                              ^
a.cc:16:38: error: invalid types 'int[int]' for array subscript
   16 |                         if (a[i] >= a[i + 1])a[i + 1] = a[i];
      |                                      ^
a.cc:16:47: error: invalid types 'int[int]' for array subscript
   16 |                         if (a[i] >= a[i + 1])a[i + 1] = a[i];
      |                                               ^
a.cc:16:58: error: invalid types 'int[int]' for array subscript
   16 |                         if (a[i] >= a[i + 1])a[i + 1] = a[i];
      |                                                          ^
a.cc:19:18: error: invalid types 'int[int]' for array subscript
   19 |         cout << a[0] << " " <<a[1] << " " << a[2] << " " << a[3] << " " << a[4] << endl;
      |                  ^
a.cc:19:32: error: invalid types 'int[int]' for array subscript
   19 |         cout << a[0] << " " <<a[1] << " " << a[2] << " " << a[3] << " " << a[4] << endl;
      |                                ^
a.cc:19:47: error: invalid types 'int[int]' for array subscript
   19 |         cout << a[0] << " " <<a[1] << " " << a[2] << " " << a[3] << " " << a[4] << endl;
      |                                               ^
a.cc:19:62: error: invalid types 'int[int]' for array subscript
   19 |         cout << a[0] << " " <<a[1] << " " << a[2] << " " << a[3] << " " << a[4] << endl;
      |                                                              ^
a.cc:19:77: error: invalid types 'int[int]' for array subscript
   19 |         cout << a[0] << " " <<a[1] << " " << a[2] << " " << a[3] << " " << a[4] << endl;
      |                                                                             ^
Language: C++

#include<iostream>
using namespace std;

int main(){
int num[5];
int M1 = 0, M2 = 0, M3= 0 , M4= 0 , M5 = 0;
int I1 = 0, I2 = 0, I3= 0 , I4= 0 , I5 = 0 ;
cin >> num[0] >> num[1] >> num[2] >> num[3] >> num[4] ;

for(int i=0 ; i < 5; i++){
if(M1 < nim[i]) {
M1 = num[i];
I1 = i;
}
}

for(int i=0 ; i < 5; i++){
if(i == I1 ) continue;
if(M2 < nim[i]) {
M2 = num[i];
I2 = i
}
}

for(int i=0 ; i < 5; i++){
if(i == I1 || i == I2 ) continue;
if(M3 < nim[i]) {
M3 = num[i];
I3 = i
}
}

for(int i=0 ; i < 5; i++){
if( i == I1 || i == I2 || i == I3 ) continue;
if(M4 < nim[i]) {
M4 = num[i];
I4 = i
}
}

for(int i=0 ; i < 5; i++){
if( i == I1 || i == I2 || i == i3 || i == I4 ) continue;
if(M5 < nim[i]) {
M5 = num[i];
I5 = i
}
}

cout << M1 << " " << M2 << " " << M3 << " " << M4 << " " << M5 << endl;

return 0 ;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: error: 'nim' was not declared in this scope; did you mean 'num'?
   11 | if(M1 < nim[i]) {
      |         ^~~
      |         num
a.cc:19:9: error: 'nim' was not declared in this scope; did you mean 'num'?
   19 | if(M2 < nim[i]) {
      |         ^~~
      |         num
a.cc:21:7: error: expected ';' before '}' token
   21 | I2 = i
      |       ^
      |       ;
   22 | }
      | ~      
a.cc:27:9: error: 'nim' was not declared in this scope; did you mean 'num'?
   27 | if(M3 < nim[i]) {
      |         ^~~
      |         num
a.cc:29:7: error: expected ';' before '}' token
   29 | I3 = i
      |       ^
      |       ;
   30 | }
      | ~      
a.cc:35:9: error: 'nim' was not declared in this scope; did you mean 'num'?
   35 | if(M4 < nim[i]) {
      |         ^~~
      |         num
a.cc:37:7: error: expected ';' before '}' token
   37 | I4 = i
      |       ^
      |       ;
   38 | }
      | ~      
a.cc:42:32: error: 'i3' was not declared in this scope; did you mean 'I3'?
   42 | if( i == I1 || i == I2 || i == i3 || i == I4 ) continue;
      |                                ^~
      |                                I3
a.cc:43:9: error: 'nim' was not declared in this scope; did you mean 'num'?
   43 | if(M5 < nim[i]) {
      |         ^~~
      |         num
a.cc:45:7: error: expected ';' before '}' token
   45 | I5 = i
      |       ^
      |       ;
   46 | }
      | ~
Language: C++

#include<iostream>
using namespace std;

int main(){
   int num[5];
   int M1 = 0, M2 = 0, M3= 0 , M4= 0 , M5 = 0;
   int I1 = 0, I2 = 0, I3= 0 , I4= 0 , I5 = 0 ;
   cin >> num[0] >> num[1] >> num[2] >> num[3] >> num[4] ;

   for(int i=0 ; i < 5; i++){
      if(M1 < nim[i]) {
          M1 = num[i];
          I1 = i;
       }
    }

    for(int i=0 ; i < 5; i++){
        if(i == I1 ) continue;
        if(M2 < nim[i]) {
           M2 = num[i];
           I2 = i;
        }
     }

for(int i=0 ; i < 5; i++){
if(i == I1 || i == I2 ) continue;
if(M3 < nim[i]) {
M3 = num[i];
I3 = i;
}
}

for(int i=0 ; i < 5; i++){
if( i == I1 || i == I2 || i == I3 ) continue;
if(M4 < nim[i]) {
M4 = num[i];
I4 = i;
}
}

for(int i=0 ; i < 5; i++){
if( i == I1 || i == I2 || i == i3 || i == I4 ) continue;
if(M5 < nim[i]) {
M5 = num[i];
I5 = i;
}
}

cout << M1 << " " << M2 << " " << M3 << " " << M4 << " " << M5 << endl;

return 0 ;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:15: error: 'nim' was not declared in this scope; did you mean 'num'?
   11 |       if(M1 < nim[i]) {
      |               ^~~
      |               num
a.cc:19:17: error: 'nim' was not declared in this scope; did you mean 'num'?
   19 |         if(M2 < nim[i]) {
      |                 ^~~
      |                 num
a.cc:27:9: error: 'nim' was not declared in this scope; did you mean 'num'?
   27 | if(M3 < nim[i]) {
      |         ^~~
      |         num
a.cc:35:9: error: 'nim' was not declared in this scope; did you mean 'num'?
   35 | if(M4 < nim[i]) {
      |         ^~~
      |         num
a.cc:42:32: error: 'i3' was not declared in this scope; did you mean 'I3'?
   42 | if( i == I1 || i == I2 || i == i3 || i == I4 ) continue;
      |                                ^~
      |                                I3
a.cc:43:9: error: 'nim' was not declared in this scope; did you mean 'num'?
   43 | if(M5 < nim[i]) {
      |         ^~~
      |         num
Language: C++

#include<iostream>
using namespace std;

int main(){
   int num[5];
   int M1 = 0, M2 = 0, M3= 0 , M4= 0 , M5 = 0;
   int I1 = 0, I2 = 0, I3= 0 , I4= 0 , I5 = 0 ;
   cin >> num[0] >> num[1] >> num[2] >> num[3] >> num[4] ;

   for(int i=0 ; i < 5; i++){
      if(M1 < nim[i]) {
          M1 = num[i];
          I1 = i;
       }
    }

    for(int i=0 ; i < 5; i++){
        if(i == I1 ) continue;
        if(M2 < nim[i]) {
           M2 = num[i];
           I2 = i;
        }
     }

for(int i=0 ; i < 5; i++){
if(i == I1 || i == I2 ) continue;
if(M3 < nim[i]) {
M3 = num[i];
I3 = i;
}
}

for(int i=0 ; i < 5; i++){
if( i == I1 || i == I2 || i == I3 ) continue;
if(M4 < nim[i]) {
M4 = num[i];
I4 = i;
}
}

for(int i=0 ; i < 5; i++){
if( i == I1 || i == I2 || i == I3 || i == I4 ) continue;
if(M5 < nim[i]) {
M5 = num[i];
I5 = i;
}
}

cout << M1 << " " << M2 << " " << M3 << " " << M4 << " " << M5 << endl;

return 0 ;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:15: error: 'nim' was not declared in this scope; did you mean 'num'?
   11 |       if(M1 < nim[i]) {
      |               ^~~
      |               num
a.cc:19:17: error: 'nim' was not declared in this scope; did you mean 'num'?
   19 |         if(M2 < nim[i]) {
      |                 ^~~
      |                 num
a.cc:27:9: error: 'nim' was not declared in this scope; did you mean 'num'?
   27 | if(M3 < nim[i]) {
      |         ^~~
      |         num
a.cc:35:9: error: 'nim' was not declared in this scope; did you mean 'num'?
   35 | if(M4 < nim[i]) {
      |         ^~~
      |         num
a.cc:43:9: error: 'nim' was not declared in this scope; did you mean 'num'?
   43 | if(M5 < nim[i]) {
      |         ^~~
      |         num
Language: C++

import std.stdio;
import std.string;
import std.math;
import std.conv;
import std.algorithm;
import std.bigint;

int[] a;

void main(){

    auto s = split(readln());
    int temp;
    for(int i=0;i<5;i++){
	a ~= to!int(s[i]);;
    }
    sort!("a > b")(a);
    writef("%d %d %d %d %d\n",a[0],a[1],a[2],a[3],a[4]);

}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import std.stdio;
      | ^~~~~~
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 std.string;
      | ^~~~~~
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 std.math;
      | ^~~~~~
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 std.conv;
      | ^~~~~~
a.cc:4:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:5:1: error: 'import' does not name a type
    5 | import std.algorithm;
      | ^~~~~~
a.cc:5:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:6:1: error: 'import' does not name a type
    6 | import std.bigint;
      | ^~~~~~
a.cc:6:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:8:4: error: structured binding declaration cannot have type 'int'
    8 | int[] a;
      |    ^~
a.cc:8:4: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:8:4: error: empty structured binding declaration
a.cc:8:7: error: expected initializer before 'a'
    8 | int[] a;
      |       ^
a.cc:10:1: error: '::main' must return 'int'
   10 | void main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:12:20: error: 'readln' was not declared in this scope
   12 |     auto s = split(readln());
      |                    ^~~~~~
a.cc:12:14: error: 'split' was not declared in this scope
   12 |     auto s = split(readln());
      |              ^~~~~
a.cc:15:9: error: 'a' was not declared in this scope
   15 |         a ~= to!int(s[i]);;
      |         ^
a.cc:17:5: error: 'sort' was not declared in this scope; did you mean 'short'?
   17 |     sort!("a > b")(a);
      |     ^~~~
      |     short
a.cc:18:31: error: 'a' was not declared in this scope
   18 |     writef("%d %d %d %d %d\n",a[0],a[1],a[2],a[3],a[4]);
      |                               ^
a.cc:18:5: error: 'writef' was not declared in this scope
   18 |     writef("%d %d %d %d %d\n",a[0],a[1],a[2],a[3],a[4]);
      |     ^~~~~~
Language: C++

#include <iostream>

using namespace std;

int main(){
	int a[5];

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

	sort(a, a+3);

	for(int m=4; 0<=m; m--){
		cout << a[m] << " " << endl;
	}
}

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

#include <iomanip>
#include <string>
#include <stack>
using namespace std;

int main(){
	priority_queue<int> q;
	for (int i = 0; i < 5; ++i) {
		int a;
		cin >> a;
		q.push(a);
	}
	for (int i = 0; i < 5; ++i) {
		cout << q.top();
		if (i != 4) cout << ' ';
		q.pop();
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'priority_queue' was not declared in this scope
    7 |         priority_queue<int> q;
      |         ^~~~~~~~~~~~~~
a.cc:4:1: note: 'std::priority_queue' is defined in header '<queue>'; this is probably fixable by adding '#include <queue>'
    3 | #include <stack>
  +++ |+#include <queue>
    4 | using namespace std;
a.cc:7:24: error: expected primary-expression before 'int'
    7 |         priority_queue<int> q;
      |                        ^~~
a.cc:10:17: error: 'cin' was not declared in this scope
   10 |                 cin >> a;
      |                 ^~~
a.cc:4:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    3 | #include <stack>
  +++ |+#include <iostream>
    4 | using namespace std;
a.cc:11:17: error: 'q' was not declared in this scope
   11 |                 q.push(a);
      |                 ^
a.cc:14:17: error: 'cout' was not declared in this scope
   14 |                 cout << q.top();
      |                 ^~~~
a.cc:14:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:14:25: error: 'q' was not declared in this scope
   14 |                 cout << q.top();
      |                         ^
Language: C++

#include <iostream>
#include <algorithm>
using namespace std;
int main() {
  int a, b, c, d, e;
  vector<int> v;
  v.push_back(a);
  v.push_back(b);
  v.push_back(c);
  v.push_back(d);
  v.push_back(e);
  sort(v.begin(), v.end(), greater<int>);
  for (int i = 0; i < v.size(); ++i) {
    cout << v[i];
    if (i < v.size() - 1) {
      cout << " ";
    }
  }
  cout << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'vector' was not declared in this scope
    6 |   vector<int> v;
      |   ^~~~~~
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:10: error: expected primary-expression before 'int'
    6 |   vector<int> v;
      |          ^~~
a.cc:7:3: error: 'v' was not declared in this scope
    7 |   v.push_back(a);
      |   ^
a.cc:12:40: error: expected primary-expression before ')' token
   12 |   sort(v.begin(), v.end(), greater<int>);
      |                                        ^
Language: C++

#include <iostream>
#include <algorithm>
using namespace std;
int main() {
  int a, b, c, d, e;
  vector<int> v;
  scanf("%d %d %d %d %d", &a, &b, &c, &d, &e);
  v.push_back(a);
  v.push_back(b);
  v.push_back(c);
  v.push_back(d);
  v.push_back(e);
  sort(v.begin(), v.end(), greater<int>);
  for (int i = 0; i < v.size(); ++i) {
    cout << v[i];
    if (i < v.size() - 1) {
      cout << " ";
    }
  }
  cout << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'vector' was not declared in this scope
    6 |   vector<int> v;
      |   ^~~~~~
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:10: error: expected primary-expression before 'int'
    6 |   vector<int> v;
      |          ^~~
a.cc:8:3: error: 'v' was not declared in this scope
    8 |   v.push_back(a);
      |   ^
a.cc:13:40: error: expected primary-expression before ')' token
   13 |   sort(v.begin(), v.end(), greater<int>);
      |                                        ^
Language: C++

#include <iostream>

using namespace std;
int main(void){
    // Here your code !
int a[5];

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

sort(a,a+5);

for(int i=4;i>0;i--){
cout<<a[i]<<" ";
}
cout<<a[0];
}

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

#include <iostream>

using namespace std;
int main(void){
    // Here your code !
int a[5];

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

sort(a,a+5);

for(int i=4;i>0;i--){
cout<<a[i]<<" ";
}
cout<<a[0]<<endl;
}

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

??? #include <iostream>
using namespace std;
int main(){
	int number[6] , i , j , ans[6] ;
	for( i=1 ; i<=5 ; i++ )
		cin >> number[i] ;
	for( i=1 ; i<=5 ; i++ ){
		for( j=i ; j<=5 ; j++ ){
			if( number[i] < number[j] )
				swap( number[i] , number[j] );
		}
		ans[i] = number[i];
		cout << ans[i] <<" ";
	}
}

Compiler output:
a.cc:1:5: error: stray '#' in program
    1 | ??? #include <iostream>
      |     ^
a.cc:1:1: error: expected unqualified-id before '?' token
    1 | ??? #include <iostream>
      | ^
a.cc: In function 'int main()':
a.cc:6:17: error: 'cin' was not declared in this scope
    6 |                 cin >> number[i] ;
      |                 ^~~
a.cc:10:33: error: 'swap' was not declared in this scope
   10 |                                 swap( number[i] , number[j] );
      |                                 ^~~~
a.cc:13:17: error: 'cout' was not declared in this scope
   13 |                 cout << ans[i] <<" ";
      |                 ^~~~
Language: C++

#include<iostream>
#include<algorithm>
using namespace std;
int main(){
  int num[5];

  for(int i = 0; i < 5; i++)
    cin >> num[i];

  sort(num, num + 5, greater<int>());

  for(int i = 0; i < 5; i++)
    cout << num[i] << ((i!=4)?'':'\n');

}

Compiler output:
a.cc:13:31: error: empty character constant
   13 |     cout << num[i] << ((i!=4)?'':'\n');
      |                               ^~
Language: C++

#include<iostream>
#include<algorithm>
#define REP(i,n) for(int i = 0; i < n; i++)
using namespace std;
int main(){
  int in[5];
  REP(i,5) cin >> in[i];
  sort(in.begin(), in.end(), greater<int>());
  REP(i,4) cout << in[i] << " ";
  cout << in[4] << "\n";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: request for member 'begin' in 'in', which is of non-class type 'int [5]'
    8 |   sort(in.begin(), in.end(), greater<int>());
      |           ^~~~~
a.cc:8:23: error: request for member 'end' in 'in', which is of non-class type 'int [5]'
    8 |   sort(in.begin(), in.end(), greater<int>());
      |                       ^~~
Language: C++

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

int main() {
    int num[5];
    for(int i=0; i<5; i++) {
        cin>>num[i];
    }
    sort(num,num+5);
    for(int s=4; s>=0; s--) {
        cout<<num[s]<<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 'sqrt'?
   10 |     sort(num,num+5);
      |     ^~~~
      |     sqrt
Language: C++

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

int main() {
    int num[5];
    for(int i=0; i<5; i++) {
        cin>>num[i];
    }
    sort(num,num+5);
    for(int s=4; s>=0; s--) {
        cout<<num[s]<<" ";
    }
    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 'sqrt'?
   10 |     sort(num,num+5);
      |     ^~~~
      |     sqrt
Language: C++

<?php
// Here your code !
$inputs = trim(fgets(STDIN));
$values = explode(' ', $inputs);
rsort($values);

foreach ($values as $value) {
  echo $value . ' ';
}
?>

Compiler output:
a.cc:1:1: error: expected unqualified-id before '<' token
    1 | <?php
      | ^
a.cc:4:1: error: '$values' does not name a type
    4 | $values = explode(' ', $inputs);
      | ^~~~~~~
a.cc:5:6: error: expected constructor, destructor, or type conversion before '(' token
    5 | rsort($values);
      |      ^
a.cc:7:9: error: expected constructor, destructor, or type conversion before '(' token
    7 | foreach ($values as $value) {
      |         ^
a.cc:10:1: error: expected unqualified-id before '?' token
   10 | ?>
      | ^
Language: C++

#include<iostream>
#include<vector>
using namespace std;
int main() {
	int a,i,j,change;
	for(int k=0;k<5;k++){
            cin>>a;
            s.push_back(a);
        }
	for (i = 0; i < 4; i++) {
		for (j = 0; j < 4-i; j++) {
			if (s[j] < s[j + 1]) {
				change = s[j];
				s[j] = s[j+1];
				s[j+1] = change;
			}
		}
    }
	cout << s[0] << " " << s[1] << " " << s[2] << " " << s[3] << " " << s[4];
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: 's' was not declared in this scope
    8 |             s.push_back(a);
      |             ^
a.cc:12:29: error: 's' was not declared in this scope
   12 |                         if (s[j] < s[j + 1]) {
      |                             ^
a.cc:19:17: error: 's' was not declared in this scope
   19 |         cout << s[0] << " " << s[1] << " " << s[2] << " " << s[3] << " " << s[4];
      |                 ^
Language: C++

#include <iostream>
#include <vector>

#define FOR(var, start, end)    for(var = start; var < end; ++var)
#define WHILE(var, end)  while(var != end)
#define SHOW_ALL(a, b, c)    cout << a << endl; \
                                cout << b << endl; \
                                cout << c << endl;

using namespace std;


void BubbleSort(vector <int> &num)
{
      int i, j, flag = 1;    // set flag to 1 to start first pass
      int temp;             // holding variable
      int numLength = num.size( ); 
      for(i = 1; (i <= numLength) && flag; i++)
     {
          flag = 0;
          for (j=0; j < (numLength -1); j++)
         {
               if (num[j+1] > num[j])      // ascending order simply changes to <
              { 
                    temp = num[j];             // swap elements
                    num[j] = num[j+1];
                    num[j+1] = temp;
                    flag = 1;               // indicates that a swap occurred.
               }
          }
     }
     return;   //arrays are passed to functions by address; nothing is returned
}

int main()
{
    int input;
    vector<int> input_array;
    while(cin >> input){
        input_array.push_back(input);
    }
    BubbleSort(input_array);
    printf("%d %d %d %d %d", input_array[0],input_array[1],input_array[2],input_array[3],input_array[4])

    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:43:105: error: expected ';' before '}' token
   43 |     printf("%d %d %d %d %d", input_array[0],input_array[1],input_array[2],input_array[3],input_array[4])
      |                                                                                                         ^
      |                                                                                                         ;
......
   46 | }
      | ~
Language: C++

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

int main() {
  int n[5];

  for (int i = 0; i < 5; i++) {
    cin >> n[i];
  }
  sort(n, n + 5);
  for (int i = 4; i >= 0; i--) {
    cout << n[i], << endl;;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:19: error: expected primary-expression before '<<' token
   13 |     cout << n[i], << endl;;
      |                   ^~
Language: C++

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

int main() {
  int n[5];

  for (int i = 0; i < 5; i++) {
    cin >> n[i];
  }
  sort(n, n + 5);
  for (int i = 4; i >= 0; i--) {
    cout << n[i], << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:19: error: expected primary-expression before '<<' token
   13 |     cout << n[i], << endl;
      |                   ^~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
int a[5];
for( int s = 0; s < 5; s++){
cin >> a[s]
}
sort( a, a + 5, greater<int>());
for(int i = 0; i < 5; i++){
 cout << a[i];
}
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:12: error: expected ';' before '}' token
    6 | cin >> a[s]
      |            ^
      |            ;
    7 | }
      | ~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
int a[5];
for( int s = 0; s < 5; s++){
cin >> a[s]
}
sort( a, a + 5, greater<int>());
for(int i = 0; i < 5; i++){
 cout << a[i] << " ";
}
cout << endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:12: error: expected ';' before '}' token
    6 | cin >> a[s]
      |            ^
      |            ;
    7 | }
      | ~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
int a[5];
for( i = 0; i < 5; i++){
cin >> a[i];
}
sort( a, a + 5, greater<int>());
for(int s = 0; s < 5; s++){
cout << a[s] << " ";
} cout << endl;
return 0;
}

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

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

int main(){
	int a[5];
	for(int S = 0; S < 5; S++){
	cin >> a[S];
	}
	sort(a, a + 5, greater<int>());
	for(int i = 0; i < 5; i++){
		if(i == 4){
			cout << a[i];
		}
		else cout << arr[i] << " ";
	}
	cout << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:30: error: 'arr' was not declared in this scope
   14 |                 else cout << arr[i] << " ";
      |                              ^~~
Language: C++

#include<bits/stdc++.h>;
using namespace std;
int main(){
int a[5];
for( s = 0; s < 5; s++){
 cin >> a[s];
}
sort( a, a + 5, greater<int>());
for(int i = 0; i < 5; i++){
if( i < 4 ){
cout << a[i] << " ";
}else{
cout << a[i] << endl;
}
return 0;
}

Compiler output:
a.cc:1:24: warning: extra tokens at end of #include directive
    1 | #include<bits/stdc++.h>;
      |                        ^
a.cc: In function 'int main()':
a.cc:5:6: error: 's' was not declared in this scope
    5 | for( s = 0; s < 5; s++){
      |      ^
a.cc:16:2: error: expected '}' at end of input
   16 | }
      |  ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

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

int main(){
	int a[5];
	for(int i = 0; i < 5; i++){
	cin >> a[i];
	}
	sort(a, a + 5, greater<int>());
	for(int i = 0; i < 5; i++){
		if(i == 4){
			cout << a[i];
		}
		else cout << arr[i] << " ";
	}
	cout << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:30: error: 'arr' was not declared in this scope
   14 |                 else cout << arr[i] << " ";
      |                              ^~~
Language: C++

#include<iostream>
#include<algorithm>
#include<vector>
using namespace std;
typedef long long ll;
int main(){
    vector<int> vc;
    int x;
    for(int i=0;i<5;i++){
        cin >> x;
        vc.push_back(x);
    }
    rsort(vc.begin(),vc.end());
    for(int i=0;i<vc.size();i++){
        cout << vc[i] << " ";
    }
    cout << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:5: error: 'rsort' was not declared in this scope; did you mean 'qsort'?
   13 |     rsort(vc.begin(),vc.end());
      |     ^~~~~
      |     qsort