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

import java.util.Scanner;

public class Main{
	public static void main(String[] args){
	
		Scanner stdin = new Scanner(System.in);
		
		int a = stdin.nextInt();
		int b = stdin.nextInt();
		int c = stdin.nextInt();
		
		int temp;
		
		if(b < a){
			temp = a;
			a = b;
			b = temp;
		} 
			
		if (c < b) {
		temp = b; 
		b = c;
		c = temp;
		}  
		
		if(b < a){
			temp = a;
			a = b;
			b = temp;
		} 
			
		System.out.print(a + " " + b + " " + c);
		
		
		
		stdin.close();
	}
	
}

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

#include <iostream>
#include <utility>

int main()
{
	int a, b, c;
	std::cin >> a >> b >> c;
	if (a > b) swap(a, b);
	if (b > c) swap(b, c);
	if (a > c) swap(a, c);
	std::cout << a << " " << b << " "<< c << '\n';
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:20: error: 'swap' was not declared in this scope
    8 |         if (a > b) swap(a, b);
      |                    ^~~~
a.cc:8:20: note: suggested alternatives:
In file included from /usr/include/c++/14/bits/memory_resource.h:47,
                 from /usr/include/c++/14/string:68,
                 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/tuple:2823:5: note:   'std::swap'
 2823 |     swap(tuple<_Elements...>&, tuple<_Elements...>&) = delete;
      |     ^~~~
In file included from /usr/include/c++/14/bits/exception_ptr.h:41,
                 from /usr/include/c++/14/exception:166,
                 from /usr/include/c++/14/ios:41:
/usr/include/c++/14/bits/move.h:226:5: note:   'std::swap'
  226 |     swap(_Tp& __a, _Tp& __b)
      |     ^~~~
/usr/include/c++/14/bits/move.h:226:5: note:   'std::swap'
/usr/include/c++/14/bits/exception_ptr.h:229:5: note:   'std::__exception_ptr::swap'
  229 |     swap(exception_ptr& __lhs, exception_ptr& __rhs)
      |     ^~~~
a.cc:9:20: error: 'swap' was not declared in this scope
    9 |         if (b > c) swap(b, c);
      |                    ^~~~
a.cc:9:20: note: suggested alternatives:
/usr/include/c++/14/tuple:2823:5: note:   'std::swap'
 2823 |     swap(tuple<_Elements...>&, tuple<_Elements...>&) = delete;
      |     ^~~~
/usr/include/c++/14/bits/move.h:226:5: note:   'std::swap'
  226 |     swap(_Tp& __a, _Tp& __b)
      |     ^~~~
/usr/include/c++/14/bits/move.h:226:5: note:   'std::swap'
/usr/include/c++/14/bits/exception_ptr.h:229:5: note:   'std::__exception_ptr::swap'
  229 |     swap(exception_ptr& __lhs, exception_ptr& __rhs)
      |     ^~~~
a.cc:10:20: error: 'swap' was not declared in this scope
   10 |         if (a > c) swap(a, c);
      |                    ^~~~
a.cc:10:20: note: suggested alternatives:
/usr/include/c++/14/tuple:2823:5: note:   'std::swap'
 2823 |     swap(tuple<_Elements...>&, tuple<_Elements...>&) = delete;
      |     ^~~~
/usr/include/c++/14/bits/move.h:226:5: note:   'std::swap'
  226 |     swap(_Tp& __a, _Tp& __b)
      |     ^~~~
/usr/include/c++/14/bits/move.h:226:5: note:   'std::swap'
/usr/include/c++/14/bits/exception_ptr.h:229:5: note:   'std::__exception_ptr::swap'
  229 |     swap(exception_ptr& __lhs, exception_ptr& __rhs)
      |     ^~~~
Language: C++

#include <iostream>
#include <algorithm>

int main()
{
	int a {3}, a[n];
	for (int i=0; i!=n; ++i) std::cin >> a[i];
	sort(a, a+n);
	std::cout << a[0] << ' ' << a[1] << ' ' << a[2] << '\n';
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:22: error: 'n' was not declared in this scope
    6 |         int a {3}, a[n];
      |                      ^
a.cc:7:47: error: invalid types 'int[int]' for array subscript
    7 |         for (int i=0; i!=n; ++i) std::cin >> a[i];
      |                                               ^
a.cc:8:9: error: 'sort' was not declared in this scope; did you mean 'std::sort'?
    8 |         sort(a, a+n);
      |         ^~~~
      |         std::sort
In file included from /usr/include/c++/14/algorithm:86,
                 from a.cc:2:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:296:1: note: 'std::sort' declared here
  296 | sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last);
      | ^~~~
a.cc:9:23: error: invalid types 'int[int]' for array subscript
    9 |         std::cout << a[0] << ' ' << a[1] << ' ' << a[2] << '\n';
      |                       ^
a.cc:9:38: error: invalid types 'int[int]' for array subscript
    9 |         std::cout << a[0] << ' ' << a[1] << ' ' << a[2] << '\n';
      |                                      ^
a.cc:9:53: error: invalid types 'int[int]' for array subscript
    9 |         std::cout << a[0] << ' ' << a[1] << ' ' << a[2] << '\n';
      |                                                     ^
Language: C++

#include <iostream>
#include <algorithm>

int main()
{
	int n {3}, a[n];
	for (int i=0; i!=n; ++i) std::cin >> a[i];
	sort(a, a+n);
	std::cout << a[0] << ' ' << a[1] << ' ' << a[2] << '\n';
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'sort' was not declared in this scope; did you mean 'std::sort'?
    8 |         sort(a, a+n);
      |         ^~~~
      |         std::sort
In file included from /usr/include/c++/14/algorithm:86,
                 from a.cc:2:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:296:1: note: 'std::sort' declared here
  296 | sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last);
      | ^~~~
Language: C++

#include <algorithm>
#include <iostream>

using namespace std;

int main()
{
  int n[3];
  cin >> n[0] >> n[1] >> n[2];

  sort( n, n + 3 );

  cout << n[ 0 ] << " " << n[ 1 ] << " " << n[ 2 ] << endl;

  return 0;
}
~                   

Compiler output:
a.cc:17:2: error: expected class-name at end of input
   17 | ~
      |  ^
Language: C++

#include <iostream>
#include <cassert>
//#define NDEBUG
int main(void){
    using namespace std;
 
    static const int INPUT_NUM_MIN = 1;
    static const int INPUT_NUM_MAX =  10000;
    int input_num[3];
    int min_num = 10000;
    int midle_num = 0;
    int max_num = 1;
    cin >> input_num[0];
    cin >> input_num[1];
    cin >> input_num[2];
    
    assert(INPUT_NUM_MIN <= input_num[0] && input_num[0] <= INPUT_NUM_MAX); /* Precondition */
    assert(INPUT_NUM_MIN <= input_num[1] && input_num[1] <= INPUT_NUM_MAX); /* Precondition */
    assert(INPUT_NUM_MIN <= input_num[2] && input_num[2] <= INPUT_NUM_MAX); /* Precondition */

    /* Calculatoin */
    for (int i=0; i<3; ++i){
        if(input_num[i] < min_num){              /* Calculatoin Min */
          min_num = input_num[i];
        }
        elseif(min_num < input_num[i]){
          if(input_num[i] < max_num){	        /* Calculatoin Midle */
            midle_num = input_num[i];
          }
          else{             			        /* Calculatoin Max */
            max_num = input_num[i];
          }
        }
    }
    
    cout << min_num << " " << midle_num << " " << max_num << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:26:9: error: 'elseif' was not declared in this scope
   26 |         elseif(min_num < input_num[i]){
      |         ^~~~~~
Language: C++

#include <iostream>
using namespace std;

int main()
{
    int a, b, c, n;

    cin >> a >> b >>c;

    if(a > b) {n = a; a = b; b = n}
    if(b > c) {n = b; b = c; c = n}
    if(a > b) {n = a; a = b; b = n} 

    return 0;           
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:35: error: expected ';' before '}' token
   10 |     if(a > b) {n = a; a = b; b = n}
      |                                   ^
      |                                   ;
a.cc:11:35: error: expected ';' before '}' token
   11 |     if(b > c) {n = b; b = c; c = n}
      |                                   ^
      |                                   ;
a.cc:12:35: error: expected ';' before '}' token
   12 |     if(a > b) {n = a; a = b; b = n}
      |                                   ^
      |                                   ;
Language: C++

#include <iostream>
using namespace std;

int main()
{
    int a, b, c, n;

    cin >> a >> b >>c;

    if(a > b) {n = a; a = b; b = n};
    if(b > c) {n = b; b = c; c = n};
    if(a > b) {n = a; a = b; b = n}; 

    return 0;           
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:35: error: expected ';' before '}' token
   10 |     if(a > b) {n = a; a = b; b = n};
      |                                   ^
      |                                   ;
a.cc:11:35: error: expected ';' before '}' token
   11 |     if(b > c) {n = b; b = c; c = n};
      |                                   ^
      |                                   ;
a.cc:12:35: error: expected ';' before '}' token
   12 |     if(a > b) {n = a; a = b; b = n};
      |                                   ^
      |                                   ;
Language: C++

#include <stdio.h>

int main(void)
{
	int min;
	int a[3];
	int h,i;
	int min;
	int soeji;
	
	scanf("%d %d %d",&a[0],&a[1],&a[2]);
	
	for(h=0;h<3;h++)
	{
		min = 114514;
		
		for(i=0;i<3;i++)
		{
			if(min > a[i])
			{
				min = a[i];
				soeji = i;
			}
		}
	a[soeji] = 114514;
	
	printf("%d ",min);
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: redeclaration of 'int min'
    8 |         int min;
      |             ^~~
a.cc:5:13: note: 'int min' previously declared here
    5 |         int min;
      |             ^~~
Language: C++

using System;

class Program
{
    static void Main()
    {    
         int[] array = Console.ReadLine().Split(' ');//2?????\?????????????????????????????\????????????
         for(int i = 0; i<3; i++){
             int large = array[i];
             int large_index = i;
             for(int j = i+1; j<3; j++){
                   if(large < array[j]){
                        large = array[j];
                        large_index = j;
                   }
             }
             int tmp = array[i];
             array[i] = array[large_index];
             array[large_index] = tmp;
         }
         for(int i = 0; i<3; i++)
             Console.Write("Case {0}: {1}",i,array[i]);
    }
}

Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:24:2: error: expected ';' after class definition
   24 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Program::Main()':
a.cc:7:13: error: structured binding declaration cannot have type 'int'
    7 |          int[] array = Console.ReadLine().Split(' ');//2?????\?????????????????????????????\????????????
      |             ^~
a.cc:7:13: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:7:13: error: empty structured binding declaration
a.cc:7:16: error: expected initializer before 'array'
    7 |          int[] array = Console.ReadLine().Split(' ');//2?????\?????????????????????????????\????????????
      |                ^~~~~
a.cc:9:26: error: 'array' was not declared in this scope
    9 |              int large = array[i];
      |                          ^~~~~
a.cc:22:14: error: 'Console' was not declared in this scope
   22 |              Console.Write("Case {0}: {1}",i,array[i]);
      |              ^~~~~~~
a.cc:22:46: error: 'array' was not declared in this scope
   22 |              Console.Write("Case {0}: {1}",i,array[i]);
      |                                              ^~~~~
Language: C++

using System;

class Program
{
    static void Main()
    {    
         int[] array = int.Console.ReadLine().Split(' ');//2?????\?????????????????????????????\????????????
         for(int i = 0; i<3; i++){
             int large = array[i];
             int large_index = i;
             for(int j = i+1; j<3; j++){
                   if(large < array[j]){
                        large = array[j];
                        large_index = j;
                   }
             }
             int tmp = array[i];
             array[i] = array[large_index];
             array[large_index] = tmp;
         }
         for(int i = 0; i<3; i++)
             Console.Write("Case {0}: {1}",i,array[i]);
    }
}

Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:24:2: error: expected ';' after class definition
   24 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Program::Main()':
a.cc:7:13: error: structured binding declaration cannot have type 'int'
    7 |          int[] array = int.Console.ReadLine().Split(' ');//2?????\?????????????????????????????\????????????
      |             ^~
a.cc:7:13: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:7:13: error: empty structured binding declaration
a.cc:7:16: error: expected initializer before 'array'
    7 |          int[] array = int.Console.ReadLine().Split(' ');//2?????\?????????????????????????????\????????????
      |                ^~~~~
a.cc:9:26: error: 'array' was not declared in this scope
    9 |              int large = array[i];
      |                          ^~~~~
a.cc:22:14: error: 'Console' was not declared in this scope
   22 |              Console.Write("Case {0}: {1}",i,array[i]);
      |              ^~~~~~~
a.cc:22:46: error: 'array' was not declared in this scope
   22 |              Console.Write("Case {0}: {1}",i,array[i]);
      |                                              ^~~~~
Language: C++

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

#define MAX 20000
using namespace std;



int main(){
  int a[MAX];
  int N=3;
  // std::cin >> N;
  for(int i=0;i<N;i++){
    std::cin >> a[i];
  }

  for(int i=1;i<N;i++){
    int v=a[i];
    int j=i-1;
    while(j>=0&&a[j]>v){
      a[j+1]=a[j];
      j--;
    }
    a[j+1]=v;
  }

  for(int i=0;i<N;i++){
    std::cout << a[i] <<" ";
  }
  std::cout  << '\n';

Compiler output:
a.cc: In function 'int main()':
a.cc:32:22: error: expected '}' at end of input
   32 |   std::cout  << '\n';
      |                      ^
a.cc:11:11: note: to match this '{'
   11 | int main(){
      |           ^
Language: C++

#include <iostream>
#include <vector>

#define rep(i, n) for (int i = 0; i < n; i++)

using namespace std;

int main()
{
  vector<int> v;
  int n = 3;
  while (n--)
  {
    int x;
    cin >> x;
    v.push_back(x);
  }
  sort(v.begin(), v.end());
  rep(i, v.size()) cout << v[i] << " ";
  cout << 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(v.begin(), v.end());
      |   ^~~~
      |   short
Language: C++

#include <stdio.h>
int main(void){
    int a,b,c,d;
    scanf("%d %d %d",&a,&b,&c);   
    if(a>b){
        d=b;
        b=a;
        a=d;
    }
    if(a>c){
        d=c;
        c=a;
        a=d;
    }
    if(b>c){
        d=c;
        c=b;
        b=d;
    }
    printf("%d %d %d\n",a,b,c);
???return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:1: error: expected primary-expression before '?' token
   21 | ???return 0;
      | ^
a.cc:21:2: error: expected primary-expression before '?' token
   21 | ???return 0;
      |  ^
a.cc:21:3: error: expected primary-expression before '?' token
   21 | ???return 0;
      |   ^
a.cc:21:4: error: expected primary-expression before 'return'
   21 | ???return 0;
      |    ^~~~~~
a.cc:21:4: error: expected ':' before 'return'
   21 | ???return 0;
      |    ^~~~~~
      |    :
a.cc:21:4: error: expected primary-expression before 'return'
   21 | ???return 0;
      |    ^~~~~~
a.cc:21:4: error: expected ':' before 'return'
   21 | ???return 0;
      |    ^~~~~~
      |    :
a.cc:21:4: error: expected primary-expression before 'return'
   21 | ???return 0;
      |    ^~~~~~
a.cc:21:4: error: expected ':' before 'return'
   21 | ???return 0;
      |    ^~~~~~
      |    :
a.cc:21:4: error: expected primary-expression before 'return'
   21 | ???return 0;
      |    ^~~~~~
Language: C++

#include <algorithm>

int main(void){
    int a[3];

    scanf("%d%d%d", &a[0], &a[1], &a[2]);
    std::sort(a, a+3);

    printf("%d %d %d\n", a[0], a[1], a[2]);
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'scanf' was not declared in this scope
    6 |     scanf("%d%d%d", &a[0], &a[1], &a[2]);
      |     ^~~~~
a.cc:9:5: error: 'printf' was not declared in this scope
    9 |     printf("%d %d %d\n", a[0], a[1], a[2]);
      |     ^~~~~~
a.cc:2:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
    1 | #include <algorithm>
  +++ |+#include <cstdio>
    2 |
Language: C++

#include <iostream>
#include <cmath>
#include <vector>

using namespace std;

void solve(){
    int x[3];
    for(int i = 0; i < 3; i++){
        cin >> x[i];
    }
    sort(x, x+3);
    for(int i = 0; i < 3; i++){
        cout << x[i] << " ";
    }
    cout << endl;
}

int main() {
    solve();
    return 0;
}

Compiler output:
a.cc: In function 'void solve()':
a.cc:12:5: error: 'sort' was not declared in this scope; did you mean 'sqrt'?
   12 |     sort(x, x+3);
      |     ^~~~
      |     sqrt
Language: C++

using std::cin;
using std::cout;
using std::vector;
using std::sort;
using std::endl;
void disp(int x)
{
	cout << x<<" ";
}
int main()
{
	int a[3];
	vector<int>vect;
	cin >> a[0]>>a[1]>>a[2];
	for (int i = 0; i < 3; i++) {
		if(a[i]<1 || a[i]>10000)return 0;
	}
	for (int i = 0; i < 3; i++ )vect.push_back(a[i]);
	sort(vect.begin(), vect.end());
	for (int i = 0; i < 2; i++)disp(vect[i]);
	disp(vect[2]);
	cout << endl;
	return 0;

}

Compiler output:
a.cc:1:12: error: 'cin' has not been declared in 'std'
    1 | using std::cin;
      |            ^~~
a.cc:2:12: error: 'cout' has not been declared in 'std'
    2 | using std::cout;
      |            ^~~~
a.cc:3:12: error: 'vector' has not been declared in 'std'
    3 | using std::vector;
      |            ^~~~~~
a.cc:4:12: error: 'sort' has not been declared in 'std'
    4 | using std::sort;
      |            ^~~~
a.cc:5:12: error: 'endl' has not been declared in 'std'
    5 | using std::endl;
      |            ^~~~
a.cc: In function 'void disp(int)':
a.cc:8:9: error: 'cout' was not declared in this scope
    8 |         cout << x<<" ";
      |         ^~~~
a.cc: In function 'int main()':
a.cc:13:9: error: 'vector' was not declared in this scope
   13 |         vector<int>vect;
      |         ^~~~~~
a.cc:13:16: error: expected primary-expression before 'int'
   13 |         vector<int>vect;
      |                ^~~
a.cc:14:9: error: 'cin' was not declared in this scope
   14 |         cin >> a[0]>>a[1]>>a[2];
      |         ^~~
a.cc:18:37: error: 'vect' was not declared in this scope
   18 |         for (int i = 0; i < 3; i++ )vect.push_back(a[i]);
      |                                     ^~~~
a.cc:19:14: error: 'vect' was not declared in this scope
   19 |         sort(vect.begin(), vect.end());
      |              ^~~~
a.cc:19:9: error: 'sort' was not declared in this scope; did you mean 'short'?
   19 |         sort(vect.begin(), vect.end());
      |         ^~~~
      |         short
a.cc:22:9: error: 'cout' was not declared in this scope
   22 |         cout << endl;
      |         ^~~~
a.cc:22:17: error: 'endl' was not declared in this scope
   22 |         cout << endl;
      |                 ^~~~
Language: C++

#include <iostream>
using namespace std;

int main()
{
	int a,b,c;
	int a2,b2,c3;
	cin >> a >> b >> c;
	if(a < b)
	{
		b2 = b;
		a2 = a;
		a = b2;
		b = a2;
	}
	else if(b < c)
	{
		b2 = b;
		c2 = c;
		c = b2;
		b = c2;
	}
	else if(a < b)
	{
		b2 = b;
		a2 = a;
		a = b2;
		b = a2;
	}
	cout << a << " " << b << " " << c << endl
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:17: error: 'c2' was not declared in this scope; did you mean 'c3'?
   19 |                 c2 = c;
      |                 ^~
      |                 c3
a.cc:30:50: error: expected ';' before 'return'
   30 |         cout << a << " " << b << " " << c << endl
      |                                                  ^
      |                                                  ;
   31 | 
   32 |         return 0;
      |         ~~~~~~
Language: C++

a,b,c=map(int,input().split())
def f(x,y):
 t=x
 x=y
 y=t
f(a,b)
f(b,c)
f(a,b)
print(f'{a} {b} {c}')

Compiler output:
a.cc:9:8: warning: multi-character literal with 11 characters exceeds 'int' size of 4 bytes
    9 | print(f'{a} {b} {c}')
      |        ^~~~~~~~~~~~~
a.cc:1:1: error: 'a' does not name a type
    1 | a,b,c=map(int,input().split())
      | ^
Language: C++

#include <iostream>

int main() {
int a, b, c;
int Put;

if(b < a){
Put = a;
a = b;
b = Put;
}
else if(c < a){
Put = a;
a = c;
c = Put;
}
else if(c < b){
Put = b;
c = b;
b = Put;
}

std::cout << a << ' ' << b << ' ' << c << std::endl
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:52: error: expected ';' before '}' token
   23 | std::cout << a << ' ' << b << ' ' << c << std::endl
      |                                                    ^
      |                                                    ;
   24 | }
      | ~
Language: C++

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

int main() {
  int A[3]
  cin >>A[0] >> A[1]>>A[2];
  sort(A,A+3);
  cout << A[0] << " "<< A[1]<<" "<< A[2]<< endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: expected initializer before 'cin'
    7 |   cin >>A[0] >> A[1]>>A[2];
      |   ^~~
a.cc:8:8: error: 'A' was not declared in this scope
    8 |   sort(A,A+3);
      |        ^
Language: C++

#include <iostream>
using namespace std;

int main(void) {
  int a, b, c;
  cin >> a >> b >> c;

  if (a <= b) {
    else if (b <= c) {
      cout << "a < b < c" << endl;
    } else if (a <= c) {
      cout << "a < c < b" << endl;
    }
  }  else {
    else if (a <= c) {
      cout << "b < a < c" << endl;
    } else if (b <= c) {
      cout << "b < c < a" << endl;
    }
}


}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: expected '}' before 'else'
    9 |     else if (b <= c) {
      |     ^~~~
a.cc:8:15: note: to match this '{'
    8 |   if (a <= b) {
      |               ^
a.cc: At global scope:
a.cc:14:6: error: expected unqualified-id before 'else'
   14 |   }  else {
      |      ^~~~
a.cc:23:1: error: expected declaration before '}' token
   23 | }
      | ^
Language: C++

#include <iostream>
using namespace std;

int main(void) {
  int a, b, c;
  cin >> a >> b >> c;

  if (a <= b) {
    if (b <= c) {
      cout << "a < b < c" << endl;
    } else if (a <= c) {
      cout << "a < c < b" << endl;
    } else {
      cout << "c < a < b" << endl;
    }
  }  else {
    if (a <= c) {
      cout << "b < a < c" << endl;
    } else if (b <= c) {
      cout << "b < c < a" << endl;
    } else 
      cout << "c < b < a" << endl;

    }
  }
  return 0;
}


Compiler output:
a.cc:26:3: error: expected unqualified-id before 'return'
   26 |   return 0;
      |   ^~~~~~
a.cc:27:1: error: expected declaration before '}' token
   27 | }
      | ^
Language: C++

#include <iostream>
using namespace std;

int main(void) {
  vector<int> vec;
  int a, b, c;

  cin >> a >> b >> c;
  vec.append(a);  vec.append(b);  vec.append(c);
  std::sort(vec.begin(), vec.end());

  cout << vec[0] << " " << vec[1] << " " << vec[2] << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'vector' was not declared in this scope
    5 |   vector<int> vec;
      |   ^~~~~~
a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    1 | #include <iostream>
  +++ |+#include <vector>
    2 | using namespace std;
a.cc:5:10: error: expected primary-expression before 'int'
    5 |   vector<int> vec;
      |          ^~~
a.cc:9:3: error: 'vec' was not declared in this scope
    9 |   vec.append(a);  vec.append(b);  vec.append(c);
      |   ^~~
a.cc:10:8: error: 'sort' is not a member of 'std'; did you mean 'qsort'?
   10 |   std::sort(vec.begin(), vec.end());
      |        ^~~~
      |        qsort
Language: C++

#include <iostream>
using namespace std;

int main(void) {
  vector<int> vec;
  int a, b, c;

  cin >> a >> b >> c;
  vec.push_back(a);  vec.push_back(b);  vec.push_back(c);
  std::sort(vec.begin(), vec.end());

  cout << vec[0] << " " << vec[1] << " " << vec[2] << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'vector' was not declared in this scope
    5 |   vector<int> vec;
      |   ^~~~~~
a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    1 | #include <iostream>
  +++ |+#include <vector>
    2 | using namespace std;
a.cc:5:10: error: expected primary-expression before 'int'
    5 |   vector<int> vec;
      |          ^~~
a.cc:9:3: error: 'vec' was not declared in this scope
    9 |   vec.push_back(a);  vec.push_back(b);  vec.push_back(c);
      |   ^~~
a.cc:10:8: error: 'sort' is not a member of 'std'; did you mean 'qsort'?
   10 |   std::sort(vec.begin(), vec.end());
      |        ^~~~
      |        qsort
Language: C++

#include <iostream>
using namespace std;

int main(void) {
  vector<int> vec = {};
  int a, b, c;

  cin >> a >> b >> c;
  vec.push_back(a);  vec.push_back(b);  vec.push_back(c);
  std::sort(vec.begin(), vec.end());

  cout << vec[0] << " " << vec[1] << " " << vec[2] << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'vector' was not declared in this scope
    5 |   vector<int> vec = {};
      |   ^~~~~~
a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    1 | #include <iostream>
  +++ |+#include <vector>
    2 | using namespace std;
a.cc:5:10: error: expected primary-expression before 'int'
    5 |   vector<int> vec = {};
      |          ^~~
a.cc:9:3: error: 'vec' was not declared in this scope
    9 |   vec.push_back(a);  vec.push_back(b);  vec.push_back(c);
      |   ^~~
a.cc:10:8: error: 'sort' is not a member of 'std'; did you mean 'qsort'?
   10 |   std::sort(vec.begin(), vec.end());
      |        ^~~~
      |        qsort
Language: C++

#include <iostream>
using namespace std;

int main(void) {
  std::vector<int> vec = {};
  int a, b, c;

  cin >> a >> b >> c;
  vec.push_back(a);  vec.push_back(b);  vec.push_back(c);
  std::sort(vec.begin(), vec.end());

  cout << vec[0] << " " << vec[1] << " " << vec[2] << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:8: error: 'vector' is not a member of 'std'
    5 |   std::vector<int> vec = {};
      |        ^~~~~~
a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    1 | #include <iostream>
  +++ |+#include <vector>
    2 | using namespace std;
a.cc:5:15: error: expected primary-expression before 'int'
    5 |   std::vector<int> vec = {};
      |               ^~~
a.cc:9:3: error: 'vec' was not declared in this scope
    9 |   vec.push_back(a);  vec.push_back(b);  vec.push_back(c);
      |   ^~~
a.cc:10:8: error: 'sort' is not a member of 'std'; did you mean 'qsort'?
   10 |   std::sort(vec.begin(), vec.end());
      |        ^~~~
      |        qsort
Language: C++

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

int main(void) {
  vector<int> vec = {};
  int a, b, c;

  cin >> a >> b >> c;
  vec.push_back(a);  vec.push_back(b);  vec.push_back(c);
  std::sort(vec.begin(), vec.end());

  cout << vec[0] << " " << vec[1] << " " << vec[2] << endl;
  return 0;
}



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

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

int main(void) {
  vector<int> vec();
  int a, b, c;

  cin >> a >> b >> c;
  vec.push_back(a);  vec.push_back(b);  vec.push_back(c);
  std::sort(vec.begin(), vec.end());

  cout << vec[0] << " " << vec[1] << " " << vec[2] << endl;
  return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:6:18: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
    6 |   vector<int> vec();
      |                  ^~
a.cc:10:7: error: request for member 'push_back' in 'vec', which is of non-class type 'std::vector<int>()'
   10 |   vec.push_back(a);  vec.push_back(b);  vec.push_back(c);
      |       ^~~~~~~~~
a.cc:10:26: error: request for member 'push_back' in 'vec', which is of non-class type 'std::vector<int>()'
   10 |   vec.push_back(a);  vec.push_back(b);  vec.push_back(c);
      |                          ^~~~~~~~~
a.cc:10:45: error: request for member 'push_back' in 'vec', which is of non-class type 'std::vector<int>()'
   10 |   vec.push_back(a);  vec.push_back(b);  vec.push_back(c);
      |                                             ^~~~~~~~~
a.cc:11:8: error: 'sort' is not a member of 'std'; did you mean 'qsort'?
   11 |   std::sort(vec.begin(), vec.end());
      |        ^~~~
      |        qsort
a.cc:11:17: error: request for member 'begin' in 'vec', which is of non-class type 'std::vector<int>()'
   11 |   std::sort(vec.begin(), vec.end());
      |                 ^~~~~
a.cc:11:30: error: request for member 'end' in 'vec', which is of non-class type 'std::vector<int>()'
   11 |   std::sort(vec.begin(), vec.end());
      |                              ^~~
a.cc:13:16: warning: pointer to a function used in arithmetic [-Wpointer-arith]
   13 |   cout << vec[0] << " " << vec[1] << " " << vec[2] << endl;
      |                ^
a.cc:13:33: warning: pointer to a function used in arithmetic [-Wpointer-arith]
   13 |   cout << vec[0] << " " << vec[1] << " " << vec[2] << endl;
      |                                 ^
a.cc:13:50: warning: pointer to a function used in arithmetic [-Wpointer-arith]
   13 |   cout << vec[0] << " " << vec[1] << " " << vec[2] << endl;
      |                                                  ^
Language: C++

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

int main(void) {
  vector<int> vec(3);
  int a, b, c;

  cin >> a >> b >> c;
  vec.push_back(a);  vec.push_back(b);  vec.push_back(c);
  std::sort(vec.begin(), vec.end());

  cout << vec[0] << " " << vec[1] << " " << vec[2] << endl;
  return 0;
}



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

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

int main(void) {
  vector<int> vec;
  int a, b, c;

  cin >> a >> b >> c;
  vec.push_back(a);  vec.push_back(b);  vec.push_back(c);
  std::sort(vec.begin(), vec.end());

  cout << vec[0] << " " << vec[1] << " " << vec[2] << endl;
  return 0;
}



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

#include <iostream>
using namespace std;

void swap(int &a, int &b) {
  if (a > b) {
    int tmp = *a;
    *a = *b;
    *b = *a;
  }
}

int main(void) {
  int a, b, c;
  cin >> a >> b >> c;

  if (a > b) swap(a, b);
  if (b> c) swap(b,c);
  if (a > c) swap (a, c);

  return 0;
}



Compiler output:
a.cc: In function 'void swap(int&, int&)':
a.cc:6:15: error: invalid type argument of unary '*' (have 'int')
    6 |     int tmp = *a;
      |               ^~
a.cc:7:5: error: invalid type argument of unary '*' (have 'int')
    7 |     *a = *b;
      |     ^~
a.cc:7:10: error: invalid type argument of unary '*' (have 'int')
    7 |     *a = *b;
      |          ^~
a.cc:8:5: error: invalid type argument of unary '*' (have 'int')
    8 |     *b = *a;
      |     ^~
a.cc:8:10: error: invalid type argument of unary '*' (have 'int')
    8 |     *b = *a;
      |          ^~
Language: C++

#include <iostream>
#include <array>

int main()
{
    int a, b, c;
    std::cin >> a >> b >> c;
    std::array<int, 3> inputs{a, b, c};

    std::sort(inputs.begin(), inputs.end());

    std::cout << inputs.at(0) << " " << inputs.at(1) << " " << inputs.at(2) << std::endl;

    return 0;
}


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

#include <iostream>
#include <array>
#include <utility>

int main()
{
    int a, b, c;
    std::cin >> a >> b >> c;
    std::array<int, 3> inputs{a, b, c};

    std::sort(inputs.begin(), inputs.end());

    std::cout << inputs.at(0) << " " << inputs.at(1) << " " << inputs.at(2) << std::endl;

    return 0;
}


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

#include <iostream>
#include <array>
#include <utility>

int main()
{
    int a, b, c;
    std::cin >> a >> b >> c;
    std::array<int, 3> inputs = {a, b, c};

    std::sort(inputs.begin(), inputs.end());

    std::cout << inputs.at(0) << " " << inputs.at(1) << " " << inputs.at(2) << std::endl;

    return 0;
}


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

include <iostream>
using namespace std;

int main() {
int a, b, c, temp;
cin >> a >> b>> c;

if (b < a) {
temp = a;
a = b;
b = temp;
} if (c < b) {
temp = b;
c = b;
b = temp;
} if (b < a) {
temp = a;
a = b;
b = temp;
}
cout <<a << " " << b << " " << c << endl;
return 0;
}



Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:1: error: 'cin' was not declared in this scope
    6 | cin >> a >> b>> c;
      | ^~~
a.cc:21:1: error: 'cout' was not declared in this scope
   21 | cout <<a << " " << b << " " << c << endl;
      | ^~~~
a.cc:21:37: error: 'endl' was not declared in this scope
   21 | cout <<a << " " << b << " " << c << endl;
      |                                     ^~~~
Language: C++

import java.util.Scanner;


public class Main{

	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		int a=sc.nextInt();
		int b=sc.nextInt();
		int c=sc.nextInt();
		if(a>=1 && b>=1 && c>=1 && a<=10000 && b<=10000 && c<=10000){
			 if(b > a &&  a > c && b > c){
				System.out.println(c + " " + a + " "+ b);
			}
		}
		

	}

}



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



import java.util.Scanner;

public class Main{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("Input:");
        Integer[] input = new Integer[3];
        input[0] = sc.nextInt();
        input[1] = sc.nextInt();
        input[2] = sc.nextInt();
        if((input[0] >= 1 && input[0] <= 10000) && (input[1] >= 1 && input[1] <= 10000) && (input[2] >= 1 && input[2] <= 10000)){
            if(input[1] < input[0]){
                int buffer = input[0];
                input[0] = input[1];
                input[1] = buffer;
            }
            if(input[2] < input[0]) {
                int buffer = input[0];
                input[0] = input[2];
                input[2] = buffer;
            }
            if(input[2] < input[1]){
                int buffer = input[1];
                input[1] = input[2];
                input[2] = buffer;
            }
            System.out.println("Output:");
            System.out.println(input[0] + " " + input[1] + " " + input[2]);
        }
        sc.close();
    }
}



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

#include<stdio.h>
int main(){
  int a, b, c, t;
  scanf("%d %d %d", &a, &b, &c);
  if(c<b){t=c;c=b;b=t;}
  if(c<a){t=c;c=a;a=t;}
  if(b<a){t=b;b=a;a=t;}
  printf("%d %d %d\n", a, b, c)
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:32: error: expected ';' before 'return'
    8 |   printf("%d %d %d\n", a, b, c)
      |                                ^
      |                                ;
    9 |   return 0;
      |   ~~~~~~
Language: C++

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

void swap(int* x, int* y) {
	int tempX = *x;
	int tempY = *y;

	*x = tempY;
	*y = tempX;
}
int main() {
	int a, b, c,i;
	cin >> a >> b >> c;
	int box[3] = { a,b,c };
	if (box[0] > box[1]) {
			swap(&box[0], &box[1]);
		}
	if (box[1] > box[2]) {
		swap(&box[1], &box[2]);
	}	if (box[0] > box[1]) {
		swap(&box[0], &box[1]);
	}
	for (i = 0; i < 3; i++) {
		cout << box[i] << " ";
		cout <<"\n"
	}
	return 0;


Compiler output:
a.cc: In function 'int main()':
a.cc:26:28: error: expected ';' before '}' token
   26 |                 cout <<"\n"
      |                            ^
      |                            ;
   27 |         }
      |         ~                   
a.cc:28:18: error: expected '}' at end of input
   28 |         return 0;
      |                  ^
a.cc:12:12: note: to match this '{'
   12 | int main() {
      |            ^
Language: C++

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

void swap(int* x, int* y) {
	int tempX = *x;
	int tempY = *y;

	*x = tempY;
	*y = tempX;
}
int main() {
	int a, b, c,i;
	cin >> a >> b >> c;
	int box[3] = { a,b,c };
	if (box[0] > box[1]) {
			swap(&box[0], &box[1]);
		}
	if (box[1] > box[2]) {
		swap(&box[1], &box[2]);
	}	if (box[0] > box[1]) {
		swap(&box[0], &box[1]);
	}
	cout << box[0] <<<< box[1] <<<< box[2] << "\n";

	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:24:26: error: expected primary-expression before '<<' token
   24 |         cout << box[0] <<<< box[1] <<<< box[2] << "\n";
      |                          ^~
a.cc:24:38: error: expected primary-expression before '<<' token
   24 |         cout << box[0] <<<< box[1] <<<< box[2] << "\n";
      |                                      ^~
Language: C++

#include<iostream>
using namespace std;

void swap(int* x, int* y) {
	int tempX = *x;
	int tempY = *y;

	*x = tempY;
	*y = tempX;
}
int main() {
	int a, b, c;
	cin >> a >> b >> c;
	int box[3] = { a,b,c };
	if (box[0] > box[1]) {
			swap(&box[0], &box[1]);
		}
	if (box[1] > box[2]) {
		swap(&box[1], &box[2]);
	}	
        if (box[0] > box[1]) {
		swap(&box[0], &box[1]);
	}
	cout <<box[0]<<" "<<box[1]<<" "<<<<box[2]<<"\n";
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:24:42: error: expected primary-expression before '<<' token
   24 |         cout <<box[0]<<" "<<box[1]<<" "<<<<box[2]<<"\n";
      |                                          ^~
Language: C++

#include <iostream>
using namespace std;

int main() {
	int a[3];
	cin >> a[0] >> a[1] >> a[2];
	sort(a, a+3);
	cout << a[0] << " " << a[1] << " " << a[2] << endl;
	return 0;
}


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

#include <iostream>
#include <algorithm>
using namespace std;
int main() {
    int[3] n;
    cin >> n[0] >> n[1] >> n[2];
    sort(n.begin(), n.end());
    for (int x : n) cout << x << (x == n[2]) ? "" : " ";
    return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: expected identifier before numeric constant
    5 |     int[3] n;
      |         ^
a.cc:5:9: error: expected ']' before numeric constant
    5 |     int[3] n;
      |         ^
      |         ]
a.cc:5:8: error: structured binding declaration cannot have type 'int'
    5 |     int[3] n;
      |        ^
a.cc:5:8: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:5:8: error: empty structured binding declaration
a.cc:5:12: error: expected initializer before 'n'
    5 |     int[3] n;
      |            ^
a.cc:6:12: error: 'n' was not declared in this scope
    6 |     cin >> n[0] >> n[1] >> n[2];
      |            ^
Language: C++

#include <iostream>
#include <algorithm>
using namespace std;
int main() {
    int n[3];
    cin >> n[0] >> n[1] >> n[2];
    sort(n.begin(), n.end());
    for (int x : n) cout << x << ((x == n[2]) ? "" : " ");
    return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: request for member 'begin' in 'n', which is of non-class type 'int [3]'
    7 |     sort(n.begin(), n.end());
      |            ^~~~~
a.cc:7:23: error: request for member 'end' in 'n', which is of non-class type 'int [3]'
    7 |     sort(n.begin(), n.end());
      |                       ^~~
Language: C++

#define len(arr) sizeof(arr) / sizeof(int);
#include <iostream>
#include <algorithm>
using namespace std;
int main() {
    int n[3];
    cin >> n[0] >> n[1] >> n[2];
    sort(n, n + len(n));
    for (int x : n) cout << x << ((x == n[2]) ? "" : " ");
    return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:1:43: error: expected ')' before ';' token
    1 | #define len(arr) sizeof(arr) / sizeof(int);
      |                                           ^
a.cc:8:17: note: in expansion of macro 'len'
    8 |     sort(n, n + len(n));
      |                 ^~~
a.cc:8:9: note: to match this '('
    8 |     sort(n, n + len(n));
      |         ^
a.cc:8:23: error: expected primary-expression before ')' token
    8 |     sort(n, n + len(n));
      |                       ^
Language: C++

#include <iostream>
#include <algorithm>
  
using namespace std;
  
int main() {
int a,b,c;
cin >> a >> b >> c;
int min = min(min(a,b),c);
int max = max(max(a,b),c);
int mid = a+b+c-min-max;
cout << min << " " << mid << " " << max << endl;
}


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

#include <iostream>
#include <algorithm>
   
using namespace std;
   
int main() {
int a,b,c;
cin >> a >> b >> c;
int min = min(min(a,b),c);
int max = max(max(a,b),c);
int mid = a+b+c-min-max;
cout << min << " " << mid << " " << max << endl;
}


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

#include <iostream>

using namespace std;

int main(){
    int a[3];
    cin >> a[0] >> a[1] >> a[2];
    sort(a,a+3);
    cout << a[0] << ' '
         << a[1] << ' '
         << a[2] << endl;
    return 0;
}


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

#include <iostream>

using namespace std;

int main(){
    int a[3];
    cin >> a[0] >> a[1] >> a[2];
    std::sort(a,a+3);
    cout << a[0] << ' '
         << a[1] << ' '
         << a[2] << endl;
    return 0;
}


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

#include <iostream>

using namespace std;

int main(){
    int a[3];
    std::cin >> a[0] >> a[1] >> a[2];
    std::sort(a, a+3);
    std::cout << a[0] << ' '
         << a[1] << ' '
         << a[2] << std::endl;
    return 0;
}


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

#include <iostream>

using namespace std;

int main(){
    int a[3];
    for (int i=0; i<3; i++) cin >> a[i];
    sort(a, a+3);
    cout << a[0] << ' ' << a[1] << ' ' << a[2] << endl;
    return 0;
}


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

#include <iostream>

using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: 'x' was not declared in this scope
    8 |     x[3]={a,b,c}
      |     ^
Language: C++

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

int small(int x, int y){
	if(x<=y){ return x;}
	else {return y;}
}

int main(){
int a,b,c,d,e,f,g;

cin >> a >> b >>c;
d=small(a,b);
e=-small(-a,-b);
f=small(e,c);
g=-small(-e,c);

cout<<d<<" "<<f<<" "<<g<<endl;
	return0;
}

	



else {cout << "No"<<endl;
}
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:22:9: error: 'return0' was not declared in this scope
   22 |         return0;
      |         ^~~~~~~
a.cc: At global scope:
a.cc:29:1: error: expected unqualified-id before 'else'
   29 | else {cout << "No"<<endl;
      | ^~~~
a.cc:31:1: error: expected unqualified-id before 'return'
   31 | return 0;
      | ^~~~~~
a.cc:32:1: error: expected declaration before '}' token
   32 | }
      | ^
Language: C++

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

int small(int x, int y){
	if(x<=y){ return x;}
	else {return y;}
}

int main(){
int a,b,c,d,e,f,g;

cin >> a >> b >>c;
d=small(a,b);
e=-small(-a,-b);
f=small(e,c);
g=-small(-e,c);

cout<<d<<" "<<f<<" "<<g<<endl;
	return 0;
}

	



else {cout << "No"<<endl;
}
return 0;
}


Compiler output:
a.cc:29:1: error: expected unqualified-id before 'else'
   29 | else {cout << "No"<<endl;
      | ^~~~
a.cc:31:1: error: expected unqualified-id before 'return'
   31 | return 0;
      | ^~~~~~
a.cc:32:1: error: expected declaration before '}' token
   32 | }
      | ^
Language: C++

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

int small(int x, int y){
	
	if(x<=y){
	 return x;}
	
	else {
	return y;}
}

int main(){
int a,b,c,d,e,f,g;

cin >> a >> b >>c;
d=small(a,b);
e=-small(-a,-b);
f=small(e,c);
g=-small(-e,c);

cout<<d<<" "<<f<<" "<<g<<endl;
	return 0;
}

	



else {cout << "No"<<endl;
}
return 0;
}


Compiler output:
a.cc:33:1: error: expected unqualified-id before 'else'
   33 | else {cout << "No"<<endl;
      | ^~~~
a.cc:35:1: error: expected unqualified-id before 'return'
   35 | return 0;
      | ^~~~~~
a.cc:36:1: error: expected declaration before '}' token
   36 | }
      | ^