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

#include <iostream>
#include <algorithm>

int main(int argc, char const *argv[])
{

	int table[3];

	std::cin >> table[0] >> table[1] >> table[2];


	std:qsort_s((void *)table,
				sizeof(table) / sizeof(table[0]),
				sizeof(table[0]),
				[](void *context, const void *item1, const void *item2) {
					return (*(int *)item1 - *(int *)item2);
				},
				table);

	std::cout << table[0] << " " << table[1] << " " << table[2] << std::endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:12:13: error: 'qsort_s' was not declared in this scope; did you mean 'qsort_r'?
   12 |         std:qsort_s((void *)table,
      |             ^~~~~~~
      |             qsort_r
Language: C++

#include <iostream>
#include <stdlib.h>
#include <search.h>

int main(int argc, char const *argv[])
{

	int table[3];

	std::cin >> table[0] >> table[1] >> table[2];


	std:qsort_s((void *)table,
				sizeof(table) / sizeof(table[0]),
				sizeof(table[0]),
				[](void *context, const void *item1, const void *item2) {
					return (*(int *)item1 - *(int *)item2);
				},
				table);

	std::cout << table[0] << " " << table[1] << " " << table[2] << std::endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:13:13: error: 'qsort_s' was not declared in this scope; did you mean 'qsort_r'?
   13 |         std:qsort_s((void *)table,
      |             ^~~~~~~
      |             qsort_r
Language: C++

#include <iostream>
#include <stdlib.h>

int main(int argc, char const *argv[])
{

	int table[3];

	std::cin >> table[0] >> table[1] >> table[2];


	qsort_s((void *)table,
				sizeof(table) / sizeof(table[0]),
				sizeof(table[0]),
				[](void *context, const void *item1, const void *item2) {
					return (*(int *)item1 - *(int *)item2);
				},
				table);

	std::cout << table[0] << " " << table[1] << " " << table[2] << std::endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:12:9: error: 'qsort_s' was not declared in this scope; did you mean 'qsort_r'?
   12 |         qsort_s((void *)table,
      |         ^~~~~~~
      |         qsort_r
Language: C++

#include <iostream>
#include <vector>

int main(int argc, char const *argv[])
{

	std::vector<int> vec_num;
	int table[]
	std::cin >> table[0] >> table[1] >> table[2];

	for (int i = 0;i < sizeof(table);i++) {
		vec_num.push_back(table[i]);
	}
	std::sort(vec_num.begin(), vec_num.end());
	std::cout << vec_num[0] << " " << vec_num[1] << " " << vec_num[2] << std::endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:9:9: error: expected initializer before 'std'
    9 |         std::cin >> table[0] >> table[1] >> table[2];
      |         ^~~
a.cc:11:35: error: 'table' was not declared in this scope; did you mean 'mutable'?
   11 |         for (int i = 0;i < sizeof(table);i++) {
      |                                   ^~~~~
      |                                   mutable
a.cc:14:14: error: 'sort' is not a member of 'std'; did you mean 'qsort'?
   14 |         std::sort(vec_num.begin(), vec_num.end());
      |              ^~~~
      |              qsort
Language: C++

#include <iostream>
#include <vector>

int main(int argc, char const *argv[])
{

	std::vector<int> vec_num;
	int table[3];
	std::cin >> table[0] >> table[1] >> table[2];

	for (int i = 0;i < sizeof(table);i++) {
		vec_num.push_back(table[i]);
	}
	std::sort(vec_num.begin(), vec_num.end());
	std::cout << vec_num[0] << " " << vec_num[1] << " " << vec_num[2] << std::endl;

	return 0;
}

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

#include <iostream>

int main(int argc, char const *argv[])
{

	std::vector<int> vec_num;
	int table[3],temp;
	std::cin >> table[0] >> table[1] >> table[2];

	if (table[0]>table[1]) {
		temp = table[0];
		table[0] = table[1];
		table[1] = temp;
	}
	if (table[1]>table[2]) {
		temp = table[1];
		table[1] = table[2];
		table[2] = temp;
	}
	if (table[0]>table[1]) {
		temp = table[0];
		table[0] = table[1];
		table[1] = temp;
	}

	std::cout << table[0] << " " << table[1] << " " << table[2] << std::endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:6:14: error: 'vector' is not a member of 'std'
    6 |         std::vector<int> vec_num;
      |              ^~~~~~
a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    1 | #include <iostream>
  +++ |+#include <vector>
    2 | 
a.cc:6:21: error: expected primary-expression before 'int'
    6 |         std::vector<int> vec_num;
      |                     ^~~
Language: C++

#include<iostream>
#include<cstdio>
using namespace std;
int main(){
	int a,b,c,tmp;
	cin>>a>>b>>c;
	if(a>b){
		tmp=a;
		a=b;
		b=tmp;
	}
	if(b>c){
		tmp=b;
		b=c;
		c=tmp;
	}
	if(a>b){
		tmp=a;
		a=b;
		b=tmp;
	}
	cout << a b c <<endl;
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:18: error: expected ';' before 'b'
   22 |         cout << a b c <<endl;
      |                  ^~
      |                  ;
Language: C++

int main(int argc, char** argv) {
    int x = 0;
    vector<int> v;
    vector<int>::iterator itr;
    
    while (cin >> x) {
        v.push_back(x);
    }
    
    for (int i = 0; i < 2; i++) {
        int j = i;
        for (int k = i+1; k < 3; k++) {
            if(v.at(j) > v.at(k)) {
                j = k;
            }
        }
        int temp = v.at(i);
        v.at(i) = v.at(j);
        v.at(j) = temp;
    }
    
    for (itr = v.begin(); itr != v.end(); ++itr) {
        cout << *itr << " ";
    }
    cout << endl;
    
    return 0;
}

Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:3:5: error: 'vector' was not declared in this scope
    3 |     vector<int> v;
      |     ^~~~~~
a.cc:3:12: error: expected primary-expression before 'int'
    3 |     vector<int> v;
      |            ^~~
a.cc:4:12: error: expected primary-expression before 'int'
    4 |     vector<int>::iterator itr;
      |            ^~~
a.cc:6:12: error: 'cin' was not declared in this scope
    6 |     while (cin >> x) {
      |            ^~~
a.cc:7:9: error: 'v' was not declared in this scope
    7 |         v.push_back(x);
      |         ^
a.cc:13:16: error: 'v' was not declared in this scope
   13 |             if(v.at(j) > v.at(k)) {
      |                ^
a.cc:17:20: error: 'v' was not declared in this scope
   17 |         int temp = v.at(i);
      |                    ^
a.cc:22:10: error: 'itr' was not declared in this scope
   22 |     for (itr = v.begin(); itr != v.end(); ++itr) {
      |          ^~~
a.cc:22:16: error: 'v' was not declared in this scope
   22 |     for (itr = v.begin(); itr != v.end(); ++itr) {
      |                ^
a.cc:23:9: error: 'cout' was not declared in this scope
   23 |         cout << *itr << " ";
      |         ^~~~
a.cc:25:5: error: 'cout' was not declared in this scope
   25 |     cout << endl;
      |     ^~~~
a.cc:25:13: error: 'endl' was not declared in this scope
   25 |     cout << endl;
      |             ^~~~
Language: C++

#include <iostream>
#include <vector>

using namespace std;


int main(int argc, char** argv) {
    int x = 0;
    int v[3] = {0};
    
    for (int i = 0; i < 3; i++) {
        cin >> v[i];
    }
    
    for (int i = 0; i < 2; i++) {
        int j = i;
        for (int k = i+1; k < 3; k++) {
            if(v[j] > v.[k]) {
                j = k;
            }
        }
        int temp = v[i];
        v[i] = v[j];
        v[j] = temp;
    }
    
    for (int i = 0; i < 2; i++) {
        cout << v[i] << " ";
    }
    
    cout << v[3] << endl;
    
    return 0;
}

Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:18:25: error: expected unqualified-id before '[' token
   18 |             if(v[j] > v.[k]) {
      |                         ^
Language: C++

#include<stdio.h>
int main(){
  int a[3],i,j;
  scanf("%d %d %d",&a[0],&[1],&a[2]);
  int temp;
  for(i=0;i<2;i++){
    for(j=0;j2-i,j++){
      if(a[j]>a[j+1]){
	temp=a[j];
	a[j]=a[j+1];
	a[j+1]=temp;
      }
    }
  }
  printf("%d %d %d",&a[0],&[1],&a[2]);
  return(0);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:28: error: expected identifier before numeric constant
    4 |   scanf("%d %d %d",&a[0],&[1],&a[2]);
      |                            ^
a.cc: In lambda function:
a.cc:4:30: error: expected '{' before ',' token
    4 |   scanf("%d %d %d",&a[0],&[1],&a[2]);
      |                              ^
a.cc: In function 'int main()':
a.cc:4:27: error: taking address of rvalue [-fpermissive]
    4 |   scanf("%d %d %d",&a[0],&[1],&a[2]);
      |                           ^~~
a.cc:7:13: error: 'j2' was not declared in this scope; did you mean 'j'?
    7 |     for(j=0;j2-i,j++){
      |             ^~
      |             j
a.cc:7:21: error: expected ';' before ')' token
    7 |     for(j=0;j2-i,j++){
      |                     ^
      |                     ;
a.cc:15:29: error: expected identifier before numeric constant
   15 |   printf("%d %d %d",&a[0],&[1],&a[2]);
      |                             ^
a.cc: In lambda function:
a.cc:15:31: error: expected '{' before ',' token
   15 |   printf("%d %d %d",&a[0],&[1],&a[2]);
      |                               ^
a.cc: In function 'int main()':
a.cc:15:28: error: taking address of rvalue [-fpermissive]
   15 |   printf("%d %d %d",&a[0],&[1],&a[2]);
      |                            ^~~
Language: C++

#include<stdio.h>
int main(){
  int a[3],i,j;
  scanf("%d %d %d",&a[0],&a[1],&a[2]);
  int temp;
  for(i=0;i<2;i++){
    for(j=0;j-i,j++){
      if(a[j]>a[j+1]){
	temp=a[j];
	a[j]=a[j+1];
	a[j+1]=temp;
      }
    }
  }
  printf("%d %d %d",&a[0],&a[1],&a[2]);
  return(0);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:20: error: expected ';' before ')' token
    7 |     for(j=0;j-i,j++){
      |                    ^
      |                    ;
Language: C++

#include<stdio.h>
void swap(int*, int*);

int main() {
	int a, b, c;
	scanf_s("%d%d%d", &a, &b, &c);
	if (a > b || a > c) {
		if (b > c) {
			swap(&a, &c);
		}
		else {
			swap(&a, &b);
		}
	}
	if (b > c) {
		swap(&b, &c);
	}
	printf("%d %d %d\n",a, b, c);
	return	0;
}

void swap(int *a, int *b) {
	int temp;
	temp = *a;
	*a = *b;
	*b = temp;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    6 |         scanf_s("%d%d%d", &a, &b, &c);
      |         ^~~~~~~
      |         scanf
Language: C++

#include <iostream>
#include <string>
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:11:9: error: 'sort' was not declared in this scope; did you mean 'short'?
   11 |         sort(A,A+3);
      |         ^~~~
      |         short
Language: C++

#include<iostream>
#include<algorithm>
using namespace std;
int main(){
	int a[3];
	cin>>a[0]>>a[1]>>a[2];
	sort(a,3);
	cout<<a[0]<<" "<<a[1]<<" "<<a[2]<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: no matching function for call to 'sort(int [3], int)'
    7 |         sort(a,3);
      |         ~~~~^~~~~
In file included from /usr/include/c++/14/algorithm:61,
                 from a.cc:2:
/usr/include/c++/14/bits/stl_algo.h:4762:5: note: candidate: 'template<class _RAIter> void std::sort(_RAIter, _RAIter)'
 4762 |     sort(_RandomAccessIterator __first, _RandomAccessIterator __last)
      |     ^~~~
/usr/include/c++/14/bits/stl_algo.h:4762:5: note:   template argument deduction/substitution failed:
a.cc:7:13: note:   deduced conflicting types for parameter '_RAIter' ('int*' and 'int')
    7 |         sort(a,3);
      |         ~~~~^~~~~
/usr/include/c++/14/bits/stl_algo.h:4793:5: note: candidate: 'template<class _RAIter, class _Compare> void std::sort(_RAIter, _RAIter, _Compare)'
 4793 |     sort(_RandomAccessIterator __first, _RandomAccessIterator __last,
      |     ^~~~
/usr/include/c++/14/bits/stl_algo.h:4793:5: note:   candidate expects 3 arguments, 2 provided
In file included from /usr/include/c++/14/algorithm:86:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:292:1: note: candidate: 'template<class _ExecutionPolicy, class _RandomAccessIterator, class _Compare> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> std::sort(_ExecutionPolicy&&, _RandomAccessIterator, _RandomAccessIterator, _Compare)'
  292 | sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp);
      | ^~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:292:1: note:   candidate expects 4 arguments, 2 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:296:1: note: candidate: 'template<class _ExecutionPolicy, class _RandomAccessIterator> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> std::sort(_ExecutionPolicy&&, _RandomAccessIterator, _RandomAccessIterator)'
  296 | sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last);
      | ^~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:296:1: note:   candidate expects 3 arguments, 2 provided
Language: C++

#include<iostream>
using namespace std;

int main(){
	int W, H, x, y, r;
	cin >> W >> H >> x >> y >> r;
	
	if( x-r < 0 ) cout << "No" << endl;
	else if( y-r < 0 ) cout << "No" << endl;
	else if( x+r > H ) cout << "No" << endl;
	else if( y+r > H ) cout << "No" << endl;
	else cont << "Yes" << endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:14: error: 'cont' was not declared in this scope; did you mean 'const'?
   12 |         else cont << "Yes" << endl;
      |              ^~~~
      |              const
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];
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: expected ';' before 'cout'
    7 | sort(A,A+3)
      |            ^
      |            ;
    8 | cout <<A[0<<A[1]<<A[2];
      | ~~~~
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];
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:23: error: expected ']' before ';' token
    8 | cout <<A[0<<A[1]<<A[2];
      |                       ^
      |                       ]
Language: C++

#include<stdio.h>
int main(){
int a[2],max=0,min=1001,z=0;
for(int i=0;i<3;i++){
scanf("%d",&a[i]);
if(max<=a[i])max=a[i];
if(min>=a[i])min=a[i];
}
if(a[0]!=max&&a[0]!=min)z=a[0];
if(a[1]!=max&&a[1]!=min)z=a[1];
if(a[2]!=max&&a[2]!=min)z=a[2];
if(z==0){
if(z==max)z=max
if(z==min)z=min;
}
printf("%d %d %d\n",min,z,max);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:16: error: expected ';' before 'if'
   13 | if(z==max)z=max
      |                ^
      |                ;
   14 | if(z==min)z=min;
      | ~~
Language: C++

#include<iostream>
#include<vector>
#include<algorithm>
using namespace std;
int main(){
  int a;
  int b;
  int c;
  cin >> a >>  b >>  c;
  vector<int> v{a,b,c}
  sort(v.begin(),v.end());
  cout << v[0] << v[1] << v[2] << endl;
}

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

#include<iostream>
using namespace std;
int main(){
  int a:
  int b;
  int c;
  cin >> a >>  b >>  c;
  if(a<=b && b<=c){
    cout << "a b c" << endl;
  }
  else if(a<=c && c<=b){
    cout << "a c b" << endl;
  }
  else if(b<=a && a<=c){
    cout << "b a c" << endl;
  }
  else if(b<=c && c<=a){
    cout << "b c a" << endl;
  }
  else if(c<=a && a<=b){
    cout << "c a b" << endl;
  }
  else if(c<=b && b<=a){
    cout << "c b a" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:8: error: expected initializer before ':' token
    4 |   int a:
      |        ^
a.cc:7:10: error: 'a' was not declared in this scope
    7 |   cin >> a >>  b >>  c;
      |          ^
a.cc:7:16: error: 'b' was not declared in this scope
    7 |   cin >> a >>  b >>  c;
      |                ^
Language: C++

#include<iostream>
#include<algorithm>
using namespace std;
int main(){
  int a[3];
  sort(a,a+3)
  cout << a[0] << a[1] << a[2] << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:14: error: expected ';' before 'cout'
    6 |   sort(a,a+3)
      |              ^
      |              ;
    7 |   cout << a[0] << a[1] << a[2] << endl;
      |   ~~~~
Language: C++

#include<stdio.h>

int main(void)
{
int i,j,data[3];
scanf("%d %d %d",a[0],a[1],a[2]);

for(i = 0; i < 2; i++)
{
for(j = n - 1; j > i; j--)
{
if(a[j-1] > a[j])
{
int temp= a[j];
a[j] = a[j-1];
a[j-1] = temp;
}
}
}
printf("%d %d %d\n", a[0], a[1], a[2]);

}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:18: error: 'a' was not declared in this scope
    6 | scanf("%d %d %d",a[0],a[1],a[2]);
      |                  ^
a.cc:10:9: error: 'n' was not declared in this scope
   10 | for(j = n - 1; j > i; j--)
      |         ^
Language: C++

#include <iostream>
using namespace std;
??
??
int main()
{
??????????int a,b,c,temp;
??
??????????cin >> a >> b >> c;
??
??????????while(1)
??????????{
??????????????????if((a < b && b < c) || (a == b && b < c ) || (a == b && b == c ))
????????????????????????????break;
??????????????????else if(b < a)
??????????????????{
????????????????????????????temp = b;
????????????????????????????b = a;
????????????????????????????a = temp;
??????????????????}
??????????????????else if(c < b)
??????????????????{
????????????????????????????temp = c;
????????????????????????????c = b;
????????????????????????????b = temp;
??????????????????}
??????????????????else if(c < a)
??????????????????{
????????????????????????????temp = c;
????????????????????????????c = a;
????????????????????????????a = temp;
??????????????????}
??????????}
??????????cout << a << " " << b << " " << c << endl;
??????????return 0;
}

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

#include <iostream>
using namespace std;
int main(){
	int a,b,c;
	int x;
	cin>> a,b,c;
	cin>> x;
	if(a>b){
		x=a; 
		a=b; 
		b=x;
	}
	if(b>c){
		x=b;
		b=c;
		c=x;
	}
	if(a>c){
		x=a;
		a=c;
		c=x;
	}
	cout<<a" "b" "c<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:16: error: expected ';' before user-defined string literal
   23 |         cout<<a" "b" "c<<endl;
      |                ^~~~
      |                ;
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:21: error: invalid conversion from 'int*' to 'int' [-fpermissive]
    6 |                 a = &b;
      |                     ^~
      |                     |
      |                     int*
a.cc:7:21: error: invalid conversion from 'int*' to 'int' [-fpermissive]
    7 |                 b = &a;
      |                     ^~
      |                     |
      |                     int*
a.cc:10:21: error: invalid conversion from 'int*' to 'int' [-fpermissive]
   10 |                 b = &c;
      |                     ^~
      |                     |
      |                     int*
a.cc:11:21: error: invalid conversion from 'int*' to 'int' [-fpermissive]
   11 |                 c = &b;
      |                     ^~
      |                     |
      |                     int*
a.cc:14:21: error: invalid conversion from 'int*' to 'int' [-fpermissive]
   14 |                 a = &b;
      |                     ^~
      |                     |
      |                     int*
a.cc:15:21: error: invalid conversion from 'int*' to 'int' [-fpermissive]
   15 |                 b = &a;
      |                     ^~
      |                     |
      |                     int*
Language: C++

#include <iostream>

using namespace std;

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

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

#include <iostream>

using namespace std;

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

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

#include <iostream>

using namespace std;

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

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



#include <iostream>
using namespace std;
int main()
{
    int a, b, c, t;
    cin >> a >> b >>c;
	
	if (a > b){
        t = a;
		a = b;
		b = t;
	}
	if(b > c){
		t = b;
		b = c;
		c = t
	}
	if (a > b){
        t = a;
		a = b;
		b = t;
	}
	
	
	cout << a << " " << b << " " << c << endl;
	return 0;
}

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

#include <iostream>
using namespace std;
int main ()
{
	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 )
	cout << a << b << c << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:29: error: expected ';' before 'cout'
   12 |                 swap( a, c )
      |                             ^
      |                             ;
   13 |         cout << a << b << c << endl;
      |         ~~~~
Language: C++

#include <iostream>
using namespace std;
int main ()
{
	int a, b, c;
	cin >> a >> b >> c;
	if ( a > b )
		swap( a, b );
	if ( b > c )
		swap( b, c );
	if ( a > b )
		swap( a, b );
	cout << a << b << c << endl;
}
javascript:void(0)

Compiler output:
a.cc:15:1: error: 'javascript' does not name a type
   15 | javascript:void(0)
      | ^~~~~~~~~~
Language: C++



#include <iostream>
using namespace std;
int main()
{
    int a, b, c, t;
    cin >> a >> b >>c;
	
	if (a > b){
        t = a;
		a = b;
		b = t;
		t = 0;
	}
	if(b > c){
		t = b;
		b = c;
		c = t
		t = 0;
	}
	if (a > b){
        t = a;
		a = b;
		b = t;
	}
	
	
	cout << a << " " << b << " " << c << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:22: error: expected ';' before 't'
   19 |                 c = t
      |                      ^
      |                      ;
   20 |                 t = 0;
      |                 ~
Language: C++



#include <iostream>
using namespace std;
int main(){
    int a, b, c, t;
    cin >> a >> b >>c;
	
	if (a > b){
        t = a;
		a = b;
		b = t;
		t = 0;
	}
	if(b > c){
		t = b;
		b = c;
		c = t
		t = 0;
	}
	if (a > b){
        t = a;
		a = b;
		b = t;
		t = 0;
	}
	
	cout << a << " " << b << " " << c << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:22: error: expected ';' before 't'
   18 |                 c = t
      |                      ^
      |                      ;
   19 |                 t = 0;
      |                 ~
Language: C++

#include<iostream>
using namespace std;

int main() {

	int a, b, c;
	cin >> a;
	cin >> b;
	cin >> c;
	if (a < b)
	{
		if (b < c) {
			cout << a << " " << b << " " << c;
		}
		if (a < c) {	
		 if (b > c) {
			 cout << a << " " << c << " " << b;
		}
		 if (b < c) {
			 cout << a << " " << b << " " << c;
		 }

	}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:49:2: error: expected '}' at end of input
   49 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
	Scanner scan = new Scanner(System.in);
	int a = scan.nextInt();
	int b = scan.nextInt();
	int c = scan.nextInt();

	if(c<a){
		int temp = a;
		a=c;
		c=temp;
	}
	if(a>b){
		int temp = a;
		a=b;
		b=temp;
	}
	System.out.println(a+" "+b+" "+c);
	}


}

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 <vector>
using namespace std;
int main(){
int t;
vector<int> a;
for(int i=0;i<3;i++){
cin >> t;
a.push_back(t);
}
sort(a.begin,a.end);
for(int i=0;i<3;i++) cout << a[i];
cout << endl;
return 0;
}

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

#include <iostream>
#include <vector>
using namespace std;
int main(){
int t;
vector<int> a;
for(int i=0;i<3;i++){
cin >> t;
a.push_back(t);
}
sort(a.begin,a.end);
cout << a[0]<< " " << a[1] << " "<<a[2}<<endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:1: error: 'sort' was not declared in this scope; did you mean 'short'?
   11 | sort(a.begin,a.end);
      | ^~~~
      | short
a.cc:12:39: error: expected ']' before '}' token
   12 | cout << a[0]<< " " << a[1] << " "<<a[2}<<endl;
      |                                       ^
      |                                       ]
a.cc:12:39: error: expected ';' before '}' token
   12 | cout << a[0]<< " " << a[1] << " "<<a[2}<<endl;
      |                                       ^
      |                                       ;
a.cc: At global scope:
a.cc:12:40: error: expected unqualified-id before '<<' token
   12 | cout << a[0]<< " " << a[1] << " "<<a[2}<<endl;
      |                                        ^~
a.cc:13:1: error: expected unqualified-id before 'return'
   13 | return 0;
      | ^~~~~~
a.cc:14:1: error: expected declaration before '}' token
   14 | }
      | ^
Language: C++

#include <iostream>
#include <vector>
using namespace std;
int main(){
int t;
vector<int> a;
for(int i=0;i<3;i++){
cin >> t;
a.push_back(t);
}
sort(a.begin(),a.end());
cout << a[0]<< " " << a[1] << " "<<a[2}<<endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:1: error: 'sort' was not declared in this scope; did you mean 'short'?
   11 | sort(a.begin(),a.end());
      | ^~~~
      | short
a.cc:12:39: error: expected ']' before '}' token
   12 | cout << a[0]<< " " << a[1] << " "<<a[2}<<endl;
      |                                       ^
      |                                       ]
a.cc:12:39: error: expected ';' before '}' token
   12 | cout << a[0]<< " " << a[1] << " "<<a[2}<<endl;
      |                                       ^
      |                                       ;
a.cc: At global scope:
a.cc:12:40: error: expected unqualified-id before '<<' token
   12 | cout << a[0]<< " " << a[1] << " "<<a[2}<<endl;
      |                                        ^~
a.cc:13:1: error: expected unqualified-id before 'return'
   13 | return 0;
      | ^~~~~~
a.cc:14:1: error: expected declaration before '}' token
   14 | }
      | ^
Language: C++

#include <iostream>
#include <vector>
using namespace std;
int main(){
int t;
vector<int> a;
for(int i=0;i<3;i++){
cin >> t;
a.push_back(t);
}
sort(a.begin(),a.end());
cout << a[0]<< " " << a[1] << " "<<a[2]<<endl;
return 0;
}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:22:30: error: expected ';' before '{' token
   22 |         else (c < b && b < a){
      |                              ^
      |                              ;
Language: C++

#include <iostream>
using namespace std;
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>b)swap(a,b);
  cout<<a b c<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:10: error: expected ';' before 'b'
    9 |   cout<<a b c<<endl;
      |          ^~
      |          ;
Language: C++

import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {

	public static void main(String[] args) throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = br.readLine();
		String[] hikakuStr = line.split("[\\s]+");

		int a = Integer.parseInt(hikakuStr[0]);
		int b = Integer.parseInt(hikakuStr[1]);
		int c = Integer.parseInt(hikakuStr[2]);
		int[] hikakuInt = new int[3];

		hikakuInt[0] = a;
		hikakuInt[1] = b;
		hikakuInt[2] = c;
		int buf = 0;

		for (int w = 0; w < hikakuInt.length - 1; w++) {
			for (int i = 1; i < hikakuInt.length; i++) {
				if (hikakuInt[i - 1] > hikakuInt[i]) {
					buf = hikakuInt[i - 1];
					hikakuInt[i - 1] = hikakuInt[i];
					hikakuInt[i] = buf;
				}
			}
		}
		System.out
				.println(hikakuInt[0] + " " + hikakuInt[1] + " " + hikakuInt[2]);
	}
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.io.BufferedReader;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: 'import' does not name a type
    2 | import java.io.InputStreamReader;
      | ^~~~~~
a.cc:2: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++

int a[3];
int tmp;
for(int i=0;i<3;i++)
cin >> a[i];

if(a[0]>a[1])
{
tmp=a[1];
a[1]=a[0];
a[0]=tmp;
}

if(a[1]>a[2])
{
tmp=a[2];
a[2]=a[1];
a[1]=tmp;
}

for(int i=0;i<3;i++)
{
cout << a[i] << " ";
}
cout << endl;

return 0;
}

Compiler output:
a.cc:3:1: error: expected unqualified-id before 'for'
    3 | for(int i=0;i<3;i++)
      | ^~~
a.cc:3:13: error: 'i' does not name a type
    3 | for(int i=0;i<3;i++)
      |             ^
a.cc:3:17: error: 'i' does not name a type
    3 | for(int i=0;i<3;i++)
      |                 ^
a.cc:6:1: error: expected unqualified-id before 'if'
    6 | if(a[0]>a[1])
      | ^~
a.cc:13:1: error: expected unqualified-id before 'if'
   13 | if(a[1]>a[2])
      | ^~
a.cc:20:1: error: expected unqualified-id before 'for'
   20 | for(int i=0;i<3;i++)
      | ^~~
a.cc:20:13: error: 'i' does not name a type
   20 | for(int i=0;i<3;i++)
      |             ^
a.cc:20:17: error: 'i' does not name a type
   20 | for(int i=0;i<3;i++)
      |                 ^
a.cc:24:1: error: 'cout' does not name a type
   24 | cout << endl;
      | ^~~~
a.cc:26:1: 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(){

	int a,b,c;
	cin >> a >> b >> c ;
	
	if ( a > b ){
		swap ( a , b );
	}else if( b > c );{
		swap ( b , c );
	}else if( a > b );{
		swap ( a , b );
	}
	cout << a << b << c;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:10: error: 'else' without a previous 'if'
   13 |         }else if( a > b );{
      |          ^~~~
Language: C++

#include<iostream>

using namespace std;
int main(){

	int a,b,c;
	cin >> a >> b >> c ;
	
	if ( a > b ){
		swap ( a , b );
	}else if( b > c );{
		swap ( b , c );
	}else if( a > b );{
		swap ( a , b );
	}
	cout << a << b << c <<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:10: error: 'else' without a previous 'if'
   13 |         }else if( a > b );{
      |          ^~~~
Language: C++

#include <stdio.h>

int main(void){

    int a, b, c, d;
    scanf_s("%d %d %d", &a, &b, &c);

    if (a > b){
        d = a;
        a = b;
        b = d;
    }
    if (b > c){
        d = b;
        b = c;
        c = d;
    }
    if (a < c){
        d = a;
        a = c;
        c = d;
    }

    printf("%d %d %d\n", a, b, c);

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    6 |     scanf_s("%d %d %d", &a, &b, &c);
      |     ^~~~~~~
      |     scanf
Language: C++

#include <stdio.h>

int main(void){

    int a, b, c, d;
    scanf("%d %d %d", &a, &b, &c);

    if (a < b){
        a = b;
        b = a;
    }
    if (b < c){
        b = c;
        c = b;
    }
    if (a < c && a > b){
        c = a;
        a = b;
        b = c;
    }
    if (b < c && a < b){
        c = a;
        a = c;
    printf("%d %d %d\n", a, b, c);

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:27:2: error: expected '}' at end of input
   27 | }
      |  ^
a.cc:3:15: note: to match this '{'
    3 | int main(void){
      |               ^
Language: C++

int main(){
    vector<int> ar(3);
    for(auto&e:ar){
        scanf("%d",&e);
    }
    sort(ar.begin(),ar.end());
    printf("%d %d %d\n",ar[0],ar[1],ar[2]);
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:2:5: error: 'vector' was not declared in this scope
    2 |     vector<int> ar(3);
      |     ^~~~~~
a.cc:2:12: error: expected primary-expression before 'int'
    2 |     vector<int> ar(3);
      |            ^~~
a.cc:3:16: error: 'ar' was not declared in this scope
    3 |     for(auto&e:ar){
      |                ^~
a.cc:4:9: error: 'scanf' was not declared in this scope
    4 |         scanf("%d",&e);
      |         ^~~~~
a.cc:6:10: error: 'ar' was not declared in this scope; did you mean 'char'?
    6 |     sort(ar.begin(),ar.end());
      |          ^~
      |          char
a.cc:6:5: error: 'sort' was not declared in this scope; did you mean 'short'?
    6 |     sort(ar.begin(),ar.end());
      |     ^~~~
      |     short
a.cc:7:5: error: 'printf' was not declared in this scope
    7 |     printf("%d %d %d\n",ar[0],ar[1],ar[2]);
      |     ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main(){
Language: C++

#include<stdio.h>
    
int main(){
    vector<int> ar(3);
    for(auto&e:ar){
        scanf("%d",&e);
    }
    sort(ar.begin(),ar.end());
    printf("%d %d %d\n",ar[0],ar[1],ar[2]);
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:5: error: 'vector' was not declared in this scope
    4 |     vector<int> ar(3);
      |     ^~~~~~
a.cc:4:12: error: expected primary-expression before 'int'
    4 |     vector<int> ar(3);
      |            ^~~
a.cc:5:16: error: 'ar' was not declared in this scope
    5 |     for(auto&e:ar){
      |                ^~
a.cc:8:10: error: 'ar' was not declared in this scope; did you mean 'char'?
    8 |     sort(ar.begin(),ar.end());
      |          ^~
      |          char
a.cc:8:5: error: 'sort' was not declared in this scope; did you mean 'short'?
    8 |     sort(ar.begin(),ar.end());
      |     ^~~~
      |     short
Language: C++

#include<stdio.h>

int main(){
    vector<int> ar(3);
    for(auto&e:ar){
        scanf("%d",&e);
    }
    sort(ar.begin(),ar.end());
    printf("%d %d %d\n",ar[0],ar[1],ar[2]);
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:5: error: 'vector' was not declared in this scope
    4 |     vector<int> ar(3);
      |     ^~~~~~
a.cc:4:12: error: expected primary-expression before 'int'
    4 |     vector<int> ar(3);
      |            ^~~
a.cc:5:16: error: 'ar' was not declared in this scope
    5 |     for(auto&e:ar){
      |                ^~
a.cc:8:10: error: 'ar' was not declared in this scope; did you mean 'char'?
    8 |     sort(ar.begin(),ar.end());
      |          ^~
      |          char
a.cc:8:5: error: 'sort' was not declared in this scope; did you mean 'short'?
    8 |     sort(ar.begin(),ar.end());
      |     ^~~~
      |     short
Language: C++

#include <stdio.h>

int main(void){

    int a, b, c;
    scanf("%d %d %d", &a, &b, &c);

    1 <= a && a <= 10000;
    1 <= b && b <= 10000;
    1 <= c && c <= 10000;

    if(a < b){
      a = b;
      b = a;
    }
    if(b < c){
      b = c;
      c = b;
    }
    if(a < b){
      a = b;
      b = a;
    printf("%d %d %d\n", a, b, c);

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:26:2: error: expected '}' at end of input
   26 | }
      |  ^
a.cc:3:15: note: to match this '{'
    3 | int main(void){
      |               ^
Language: C++

#include<iostream>
using namespace std;

int main(){
int a, b, c, small, big;

cin >> a >> b >> c;

if( a > b ){
small = b;
big = a;
}else{
small =a;
big = b;
}

if( small > c ){
cout << c << small << big << endl;
}elseif( c > big){
cout << small << big << c << endl;
}else{
cout << small << c << big << endl;
}



}



}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:2: error: 'elseif' was not declared in this scope
   19 | }elseif( c > big){
      |  ^~~~~~
a.cc:21:2: error: 'else' without a previous 'if'
   21 | }else{
      |  ^~~~
a.cc: At global scope:
a.cc:31:1: error: expected declaration before '}' token
   31 | }
      | ^
Language: C++

#include<iostream>
using namespace std;

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

cin >> a >> b >> c;

if ( a > b ){
tmp = a;
a = b;
b = tmp;
}

if ( b > c ){
tmp = b;
b = c;
c = tmp
}

if ( a > b ){
tmp = a;
a = b;
b = tmp;
}

cout<< a << b << c << endl;
}

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

(sorted([int(x) for x in input().split()], reverse=True))
print(sorted[0]+" "+sorted[1]+" "+sorted[2])

Compiler output:
a.cc:1:8: error: expected ')' before '(' token
    1 | (sorted([int(x) for x in input().split()], reverse=True))
      | ~      ^
      |        )
Language: C++

  


#include<stdio.h>

int main(void)

int a,b,c;

int tmp,i,j;

scanf("%d %d %d",&a,&b,&c);

if(a>b)

{

tmp = a;

a = b;

b = tmp;

}

if(a>c)

{

tmp = a;

a = c;

c = tmp;

}

if(b>c)

{

tmp = b;

b = c;

c = tmp;

}

printf("%d %d %d\n",a,b,c);

return 0;

}
  

Compiler output:
a.cc:8:1: error: expected initializer before 'int'
    8 | int a,b,c;
      | ^~~
a.cc:12:6: error: expected constructor, destructor, or type conversion before '(' token
   12 | scanf("%d %d %d",&a,&b,&c);
      |      ^
a.cc:14:1: error: expected unqualified-id before 'if'
   14 | if(a>b)
      | ^~
a.cc:26:1: error: expected unqualified-id before 'if'
   26 | if(a>c)
      | ^~
a.cc:38:1: error: expected unqualified-id before 'if'
   38 | if(b>c)
      | ^~
a.cc:50:7: error: expected constructor, destructor, or type conversion before '(' token
   50 | printf("%d %d %d\n",a,b,c);
      |       ^
a.cc:52:1: error: expected unqualified-id before 'return'
   52 | return 0;
      | ^~~~~~
a.cc:54:1: error: expected declaration before '}' token
   54 | }
      | ^
Language: C++

#include<stdio.h>


int main(void)


int a,b,c;


int tmp,i,j;


scanf("%d %d %d",&a,&b,&c);


if(a>b)


{


tmp = a;


a = b;


b = tmp;


}


if(a>c)


{


tmp = a;


a = c;


c = tmp;


}


if(b>c)


{


tmp = b;


b = c;


c =tmp;


}


printf("%d %d %d\n",a,b,c);


return 0;


}

Compiler output:
a.cc:7:1: error: expected initializer before 'int'
    7 | int a,b,c;
      | ^~~
a.cc:13:6: error: expected constructor, destructor, or type conversion before '(' token
   13 | scanf("%d %d %d",&a,&b,&c);
      |      ^
a.cc:16:1: error: expected unqualified-id before 'if'
   16 | if(a>b)
      | ^~
a.cc:34:1: error: expected unqualified-id before 'if'
   34 | if(a>c)
      | ^~
a.cc:52:1: error: expected unqualified-id before 'if'
   52 | if(b>c)
      | ^~
a.cc:70:7: error: expected constructor, destructor, or type conversion before '(' token
   70 | printf("%d %d %d\n",a,b,c);
      |       ^
a.cc:73:1: error: expected unqualified-id before 'return'
   73 | return 0;
      | ^~~~~~
a.cc:76:1: error: expected declaration before '}' token
   76 | }
      | ^
Language: C++

#include<stdio.h>


int main(void)


int a,b,c;


int tmp,i,j;


scanf("%d %d %d",&a,&b,&c);


if(a>b)


{


tmp = a;


a = b;


b = tmp;


}


if(a>c)


{


tmp = a;


a = c;


c = tmp;


}


if(b>c)


{


tmp = b;


b = c;


c = tmp;


}


printf("%d %d %d\n",a,b,c);


return 0;


}

Compiler output:
a.cc:7:1: error: expected initializer before 'int'
    7 | int a,b,c;
      | ^~~
a.cc:13:6: error: expected constructor, destructor, or type conversion before '(' token
   13 | scanf("%d %d %d",&a,&b,&c);
      |      ^
a.cc:16:1: error: expected unqualified-id before 'if'
   16 | if(a>b)
      | ^~
a.cc:34:1: error: expected unqualified-id before 'if'
   34 | if(a>c)
      | ^~
a.cc:52:1: error: expected unqualified-id before 'if'
   52 | if(b>c)
      | ^~
a.cc:70:7: error: expected constructor, destructor, or type conversion before '(' token
   70 | printf("%d %d %d\n",a,b,c);
      |       ^
a.cc:73:1: error: expected unqualified-id before 'return'
   73 | return 0;
      | ^~~~~~
a.cc:76:1: error: expected declaration before '}' token
   76 | }
      | ^
Language: C++

#include<stdio.h>


int main(void)


int a,b,c;


int tmp,i,j;


scanf("%d %d %d",&a,&b,&c);


if(a>b){


tmp = a;


a = b;


b = tmp;


}


if(a>c){


tmp = a;


a = c;


c = tmp;


}


if(b>c){


tmp = b;


b = c;


c = tmp;


}


printf("%d %d %d\n",a,b,c);


return 0;


}

Compiler output:
a.cc:7:1: error: expected initializer before 'int'
    7 | int a,b,c;
      | ^~~
a.cc:13:6: error: expected constructor, destructor, or type conversion before '(' token
   13 | scanf("%d %d %d",&a,&b,&c);
      |      ^
a.cc:16:1: error: expected unqualified-id before 'if'
   16 | if(a>b){
      | ^~
a.cc:31:1: error: expected unqualified-id before 'if'
   31 | if(a>c){
      | ^~
a.cc:46:1: error: expected unqualified-id before 'if'
   46 | if(b>c){
      | ^~
a.cc:61:7: error: expected constructor, destructor, or type conversion before '(' token
   61 | printf("%d %d %d\n",a,b,c);
      |       ^
a.cc:64:1: error: expected unqualified-id before 'return'
   64 | return 0;
      | ^~~~~~
a.cc:67:1: error: expected declaration before '}' token
   67 | }
      | ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:3:13: error: expected initializer before 'c'
    3 |     int a,b c;
      |             ^
a.cc:4:26: error: 'b' was not declared in this scope
    4 |     scanf("%d %d %d",&a,&b,&c)
      |                          ^
a.cc:4:29: error: 'c' was not declared in this scope
    4 |     scanf("%d %d %d",&a,&b,&c)
      |                             ^
a.cc:8:5: error: 'else' without a previous 'if'
    8 |     else if(a<c&&<b){
      |     ^~~~
a.cc:8:18: error: expected primary-expression before '<' token
    8 |     else if(a<c&&<b){
      |                  ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:3:13: error: expected initializer before 'c'
    3 |     int a,b c;
      |             ^
a.cc:4:26: error: 'b' was not declared in this scope
    4 |     scanf("%d %d %d",&a,&b,&c)
      |                          ^
a.cc:4:29: error: 'c' was not declared in this scope
    4 |     scanf("%d %d %d",&a,&b,&c)
      |                             ^
a.cc:8:5: error: 'else' without a previous 'if'
    8 |     else if(a<c&&<b){
      |     ^~~~
a.cc:8:18: error: expected primary-expression before '<' token
    8 |     else if(a<c&&<b){
      |                  ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:3:13: error: expected initializer before 'c'
    3 |     int a,b c;
      |             ^
a.cc:4:26: error: 'b' was not declared in this scope
    4 |     scanf("%d %d %d",&a,&b,&c)
      |                          ^
a.cc:4:29: error: 'c' was not declared in this scope
    4 |     scanf("%d %d %d",&a,&b,&c)
      |                             ^
a.cc:8:5: error: 'else' without a previous 'if'
    8 |     else if(a<c&&c<b){
      |     ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:31: error: expected ';' before 'if'
    4 |     scanf("%d %d %d",&a,&b,&c)
      |                               ^
      |                               ;
    5 |     if(a<b&&b<c){
      |     ~~                         
a.cc:8:5: error: 'else' without a previous 'if'
    8 |     else if(a<c&&c<b){
      |     ^~~~