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

#include <algorithm>


using namespace std;

int main(){

  int a,b,c;
  
  vector <int> num;

  cin >> a >> b >> c;

  num.push_back(a);
  num.push_back(b);
  num.push_back(c);

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

  for (int i : num){
    cout << i  <<" ";
  }

  getchar();

cout <<endl;

  

  return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: 'vector' was not declared in this scope
   10 |   vector <int> num;
      |   ^~~~~~
a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    1 | #include <algorithm>
  +++ |+#include <vector>
    2 | 
a.cc:10:11: error: expected primary-expression before 'int'
   10 |   vector <int> num;
      |           ^~~
a.cc:12:3: error: 'cin' was not declared in this scope
   12 |   cin >> a >> b >> c;
      |   ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include <algorithm>
  +++ |+#include <iostream>
    2 | 
a.cc:14:3: error: 'num' was not declared in this scope; did you mean 'enum'?
   14 |   num.push_back(a);
      |   ^~~
      |   enum
a.cc:21:5: error: 'cout' was not declared in this scope
   21 |     cout << i  <<" ";
      |     ^~~~
a.cc:21:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:24:3: error: 'getchar' was not declared in this scope
   24 |   getchar();
      |   ^~~~~~~
a.cc:2:1: note: 'getchar' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
    1 | #include <algorithm>
  +++ |+#include <cstdio>
    2 | 
a.cc:26:1: error: 'cout' was not declared in this scope
   26 | cout <<endl;
      | ^~~~
a.cc:26:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:26:8: error: 'endl' was not declared in this scope
   26 | cout <<endl;
      |        ^~~~
a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    1 | #include <algorithm>
  +++ |+#include <ostream>
    2 |
Language: C++

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

	return 0;
}h

Compiler output:
a.cc:24:2: error: 'h' does not name a type
   24 | }h
      |  ^
Language: C++

using namespace std;
int main(){
	int x;
	int y;
	int z;
	int a;
	cin >> x >> y>>z;
	if (x>y){
		a = x;
		x = y;
		y = a;
	}
	if (y > z){
		a = y;
		y = z;
		z = a;
	}
	if (x>y){
		a = x;
		x = y;
		y = a;
	}
	cout << x <<" "<<y<<" "<< z<<"\n";
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'cin' was not declared in this scope
    7 |         cin >> x >> y>>z;
      |         ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:23:9: error: 'cout' was not declared in this scope
   23 |         cout << x <<" "<<y<<" "<< z<<"\n";
      |         ^~~~
a.cc:23:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include<iostream>
using namespace std;

int main(){
  int a,b,c,d;
  cin>>a>>b>>c;
  if(a<=b&&b<=c) cout<<a<<" "<<b<<" "<<c<<endl;
  elseif(a<=c&&c<=b) cout<<a<<" "<<c<<" "<<b<<endl;
  elseif(b<=a&&a<=c) cout<<b<<" "<<a<<" "<<c<<endl;
  elseif(b<=c&&c<=a) cout<<b<<" "<<c<<" "<<a<<endl;
  elseif(c<=a&&a<=b) cout<<c<<" "<<a<<" "<<b<<endl;
  elseif(c<=b&&b<=a) cout<<c<<" "<<b<<" "<<a<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'elseif' was not declared in this scope
    8 |   elseif(a<=c&&c<=b) cout<<a<<" "<<c<<" "<<b<<endl;
      |   ^~~~~~
Language: C++

#include <iostream>

using namespace std;

int main()
{

int a,b,c,d,e,f;

cin >> a >> b >> c;

d = min_element(a,b,c);

f = max_element(a,b,c);

e = a*b*c/(d*f);

cout << d << e << f << endl;

return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:5: error: 'min_element' was not declared in this scope
   12 | d = min_element(a,b,c);
      |     ^~~~~~~~~~~
a.cc:14:5: error: 'max_element' was not declared in this scope
   14 | f = max_element(a,b,c);
      |     ^~~~~~~~~~~
Language: C++

#include <iostream>

using namespace std;

int main()
{

int a,b,c,d,e,f;

cin >> a >> b >> c;

d = min(a,b,c);

f = max(a,b,c);

e = a*b*c/(d*f);

cout << d << e << f << endl;

return 0;

}

Compiler output:
In file included from /usr/include/c++/14/string:51,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h: In instantiation of 'constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare) [with _Tp = int; _Compare = int]':
a.cc:12:8:   required from here
   12 | d = min(a,b,c);
      |     ~~~^~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:284:17: error: '__comp' cannot be used as a function
  284 |       if (__comp(__b, __a))
      |           ~~~~~~^~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h: In instantiation of 'constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare) [with _Tp = int; _Compare = int]':
a.cc:14:8:   required from here
   14 | f = max(a,b,c);
      |     ~~~^~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:306:17: error: '__comp' cannot be used as a function
  306 |       if (__comp(__a, __b))
      |           ~~~~~~^~~~~~~~~~
Language: C++

#include <iostream>

using namespace std;

int main()
{

int a,b,c,d,e,f;

cin >> a >> b >> c;

d = min(a,b,c);

f = max(a,b,c);

e = a*b*c/(d*f);

cout << d << " " << e << " " << f << endl;

return 0;

}

Compiler output:
In file included from /usr/include/c++/14/string:51,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h: In instantiation of 'constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare) [with _Tp = int; _Compare = int]':
a.cc:12:8:   required from here
   12 | d = min(a,b,c);
      |     ~~~^~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:284:17: error: '__comp' cannot be used as a function
  284 |       if (__comp(__b, __a))
      |           ~~~~~~^~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h: In instantiation of 'constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare) [with _Tp = int; _Compare = int]':
a.cc:14:8:   required from here
   14 | f = max(a,b,c);
      |     ~~~^~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:306:17: error: '__comp' cannot be used as a function
  306 |       if (__comp(__a, __b))
      |           ~~~~~~^~~~~~~~~~
Language: C++

#include <iostream>
#include <sstream>
#include <algorithm>

using namespace std;

int main(void) {
    int a, b, c;
    cin >> a >> b >> c;
    std::vector<int> vec;
    vec.push_back(a);
    vec.push_back(b);
    vec.push_back(c);

    sort(vec.begin(), vec.end());
    
    ostringstream answer;
    for (auto itr = vec.begin(); itr != vec.end(); ++itr) {
        if (answer.str() != "") {
            answer << ' ';
        }
        
        answer << *itr;
    }
    
    cout << answer.str() << endl;

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:10: error: 'vector' is not a member of 'std'
   10 |     std::vector<int> vec;
      |          ^~~~~~
a.cc:4:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    3 | #include <algorithm>
  +++ |+#include <vector>
    4 | 
a.cc:10:17: error: expected primary-expression before 'int'
   10 |     std::vector<int> vec;
      |                 ^~~
a.cc:11:5: error: 'vec' was not declared in this scope
   11 |     vec.push_back(a);
      |     ^~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:23: error: expected ';' before 'a'
    6 |     if ( a > b ) s = a a = b b = s;
      |                       ^~
      |                       ;
a.cc:7:28: error: expected ';' before 'b'
    7 |     else if ( b > c ) s = b b = c c = s;
      |                            ^~
      |                            ;
a.cc:8:23: error: 'S' was not declared in this scope
    8 |     else if ( a > c ) S = a a = c c = s;
      |                       ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:23: error: expected ';' before 'a'
    6 |     if ( a > b ) s = a a = b b = s;
      |                       ^~
      |                       ;
a.cc:7:28: error: expected ';' before 'b'
    7 |     else if ( b > c ) s = b b = c c = s;
      |                            ^~
      |                            ;
a.cc:8:23: error: 'S' was not declared in this scope
    8 |     else if ( a > c ) S = a a = c c = s;
      |                       ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:23: error: expected ';' before 'a'
    6 |     if ( a > b ) s = a a = b b = s;
      |                       ^~
      |                       ;
a.cc:7:28: error: expected ';' before 'b'
    7 |     else if ( b > c ) s = b b = c c = s;
      |                            ^~
      |                            ;
a.cc:8:23: error: 'S' was not declared in this scope
    8 |     else if ( a > c ) S = a a = c c = s cout << a << " " << b << " " << c << endl;
      |                       ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:23: error: expected ';' before 'a'
    6 |     if ( a > b ) s = a a = b b = s;
      |                       ^~
      |                       ;
a.cc:7:23: error: expected ';' before 'b'
    7 |     if ( b > c ) s = b b = c c = s;
      |                       ^~
      |                       ;
a.cc:8:18: error: 'S' was not declared in this scope
    8 |     if ( a > c ) S = a a = c c = s;
      |                  ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:24: error: expected ';' before 'a'
    6 |     if ( a > b ) {s = a a = b b = s;}
      |                        ^~
      |                        ;
a.cc:7:24: error: expected ';' before 'b'
    7 |     if ( b > c ) {s = b b = c c = s;}
      |                        ^~
      |                        ;
a.cc:8:19: error: 'S' was not declared in this scope
    8 |     if ( a > c ) {S = a a = c c = s;}
      |                   ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:23: error: expected ';' before 'a'
    6 |     if ( a > b ) s = a a = b b = s;
      |                       ^~
      |                       ;
a.cc:7:23: error: expected ';' before 'b'
    7 |     if ( b > c ) s = b b = c c = s;
      |                       ^~
      |                       ;
a.cc:8:23: error: expected ';' before 'a'
    8 |     if ( a > c ) s = a a = c c = s;
      |                       ^~
      |                       ;
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:25: error: expected ';' before 'a'
    6 |     if ( a > b ) { s = a a = b b = s; }
      |                         ^~
      |                         ;
a.cc:7:25: error: expected ';' before 'b'
    7 |     if ( b > c ) { s = b b = c c = s; }
      |                         ^~
      |                         ;
a.cc:8:25: error: expected ';' before 'a'
    8 |     if ( a > c ) { s = a a = c c = s; }
      |                         ^~
      |                         ;
Language: C++

/**
 * 3 ????????°?????´???

???????????´??°?????????????????????????????????????°??????????????????????????????????????????°?????????????????????????????????

Input
???????????´??°???????????§????????????????????????????????????

Output
?°???????????????????????????????????????´??°??????????????????????????????????????´??°?????????????????????????????\??????????????????

Constraints
1 ??? ???????????´??° ??? 10,000
Sample Input
3 8 1
Sample Output
1 3 8
 */

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

int main(int argc, char const *argv[]) {
  unsigned int a, b, c;
  a = b = c = 1;

  while (true) {
    std::string param;

    getline(std::cin, param);
    std::istringstream iss(param);
    iss >> a >> b >> c;

    if ((a < 1 || a > 10000) || (b < 1 || b > 10000) || (c < 1 || c > 10000)) {
      std::cout << "Error: 1 <= a, b, c <= 10000" << std::endl;
    } else {
      break;
    }
  }

  std::vector<unsigned int> v = {a, b, c};
  std::sort(v.begin(), v.end());

  std::ostringstream oss;
  std::copy(v.begin(), v.end() - 1,
            std::ostream_iterator<unsigned int>(oss, " "));
  oss << v.back();
  std::cout << oss.str() << std::endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:48:18: error: 'ostream_iterator' is not a member of 'std'
   48 |             std::ostream_iterator<unsigned int>(oss, " "));
      |                  ^~~~~~~~~~~~~~~~
a.cc:24:1: note: 'std::ostream_iterator' is defined in header '<iterator>'; this is probably fixable by adding '#include <iterator>'
   23 | #include <vector>
  +++ |+#include <iterator>
   24 | 
a.cc:48:35: error: expected primary-expression before 'unsigned'
   48 |             std::ostream_iterator<unsigned int>(oss, " "));
      |                                   ^~~~~~~~
Language: C++


int main(void) {

	int a = 0 ;
	int b = 0 ;
	int c = 0 ;
	int i = 0 ;
	
	scanf("%d",&a);
	scanf("%d",&b);
	scanf("%d",&c);
	
	if(a > b){
		i = b ;
		b = a ;
		a = i ;
	}
	
	if(b > c){
		i = c ;
		c = b ;
		b = i ;
	}
	
	if(a > b){
		i = b ;
		b = a ;
		a = i ;
	}
	
	printf("%d %d %d\n",a,b,c);
		
		
	


	return 0;
}

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

#include<iostream>

int main(){
int a,b,c;
std::cin>>a>>b>>c;
int temp;
if(a>b){
temp = b;
b = a;
a = temp;
}

if(a>c){
temp = c;
c = a;
a = temp;
}

if(b>c){
temp = c;
c = b;
b = temp;
}
std::cout<<a<<" "<<b<<" "<<c<<std::endl;
}

return 0;

}

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

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

struct A{int a;}
bool operator <(A b,A c){return b.a>b.c;}
int main(){
A x[3];
cin>>x[0].a>>x[1].a>>x[2].a;
sort(x,x+3;
cout<<x[0].a<<" "<<x[1].a<<" "<<x[2].a<<endl;
}

Compiler output:
a.cc:4:17: error: expected ';' after struct definition
    4 | struct A{int a;}
      |                 ^
      |                 ;
a.cc: In function 'bool operator<(A, A)':
a.cc:5:39: error: 'struct A' has no member named 'c'
    5 | bool operator <(A b,A c){return b.a>b.c;}
      |                                       ^
a.cc: In function 'int main()':
a.cc:9:11: error: expected ')' before ';' token
    9 | sort(x,x+3;
      |     ~     ^
      |           )
Language: C++

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

struct A{int a;};
bool operator <(A b,A c){return b.a>b.c;}
int main(){
A x[3];
cin>>x[0].a>>x[1].a>>x[2].a;
sort(x,x+3;
cout<<x[0].a<<" "<<x[1].a<<" "<<x[2].a<<endl;
}

Compiler output:
a.cc: In function 'bool operator<(A, A)':
a.cc:5:39: error: 'struct A' has no member named 'c'
    5 | bool operator <(A b,A c){return b.a>b.c;}
      |                                       ^
a.cc: In function 'int main()':
a.cc:9:11: error: expected ')' before ';' token
    9 | sort(x,x+3;
      |     ~     ^
      |           )
Language: C++

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

struct A{int a;};
bool operator <(A b,A c){return b.a>c.a;}
int main(){
A x[3];
cin>>x[0].a>>x[1].a>>x[2].a;
sort(x,x+3;
cout<<x[0].a<<" "<<x[1].a<<" "<<x[2].a<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:11: error: expected ')' before ';' token
    9 | sort(x,x+3;
      |     ~     ^
      |           )
Language: C++

#include <stdio.h>

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

  int x, y, z;
  if(a <= b && b <= c) {
     x = a;
     y = b;
     z = c;
  } else if(a <= c && c <= b) {
    x = a;
    y = c;
    z = b;
  } else if(b <= c && c <= a) {
    x = b;
    y = c;
    z = a;
  } else if(b <= a && a <= c) {
    x = b;
    y = a;
    z = c;
  } else if(c <= a && a <= b) {
    x = c;
    y = a;
    z = b;
  } else {
    x = c;
    y = b;
    z = a;
  }
  print("%d %d %d\n", x, y, z);
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:33:3: error: 'print' was not declared in this scope; did you mean 'printf'?
   33 |   print("%d %d %d\n", x, y, z);
      |   ^~~~~
      |   printf
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:16:12: error: unable to find string literal operator 'operator""a' with 'const char [10]', 'long unsigned int' arguments
   16 |     printf("%d %d %d\n"a,c,b);
      |            ^~~~~~~~~~~~~
a.cc:42:2: error: expected '}' at end of input
   42 | }
      |  ^
a.cc:3:1: note: to match this '{'
    3 | {
      | ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:42:2: error: expected '}' at end of input
   42 | }
      |  ^
a.cc:3:1: note: to match this '{'
    3 | {
      | ^
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:12:38: error: invalid operands of types 'const char [2]' and 'int' to binary 'operator<<'
   12 |         cout << a << " " << b <  " " << c << endl;
      |                                  ~~~ ^~ ~
      |                                  |      |
      |                                  |      int
      |                                  const char [2]
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: expected primary-expression before '<' token
    7 |   if ( a =< b) {
      |           ^
a.cc:8:13: error: expected primary-expression before '<' token
    8 |     if ( b =< c) {
      |             ^
a.cc:11:16: error: expected primary-expression before '>' token
   11 |   }else if( a => b) {
      |                ^
a.cc:12:13: error: expected primary-expression before '<' token
   12 |     if ( a =< c) {
      |             ^
a.cc:14:19: error: expected primary-expression before '>' token
   14 |     }else if ( a => 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 <bits/stdc++>
using namespace std;

int number[3]

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

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

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

int number[3]

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

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

#include    <iostream>
#define     MAX_N   10000
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:5: error: return-statement with no value, in function returning 'int' [-fpermissive]
   12 |     return;
      |     ^~~~~~
Language: C++

#include    <iostream>
#include <stdio.h>
#define     MAX_N   10000
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:5: error: return-statement with no value, in function returning 'int' [-fpermissive]
   13 |     return;
      |     ^~~~~~
Language: C++

#coding: utf-8

import sys

l = map(int, raw_input().split())
l.sort()
for i in range(len(l)):
    print l[i],

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #coding
    1 | #coding: utf-8
      |  ^~~~~~
a.cc:3:1: error: 'import' does not name a type
    3 | import sys
      | ^~~~~~
a.cc:3:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

int a,b,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<c && c<a)
	{
		cout << b << " " << c << " " << a  << endl;
	}
	else if (a>b && a<c)
	{
			cout << b << " " << a << " " << c << endl;
	}
	else if (a<b && a>c)
	{
		cout << c << " " << a << " " << b << endl;
	}
	else if (a>b && b>c)
	{
		cout << c << " " << b << " " << a << endl;
	else if (a==b && b<c)
	{
		cout << a && b << " " << b && a << " " << c << endl;
	}
	else if (a < b && b == c)
	{
		cout << a << " " << b && c << " " << b && c << end;
	}
	else if (a > b && b == c)
	{
		cout << b && c << " " << b && c << " " << a << endl;
	}
	else if (a == b && b < c)
	{
		cout << a && b << " " << a && b << " " << c << endl;
	}
	else if (a == b && b > c)
	{
		cout << c << " " << a && b << " " << a && b  << endl;
	}
	else if (a == b && b == c)
	{
		cout << a && b && c << " " << a && b && c << " " << a && b && c << endl;
	}
}

Compiler output:
a.cc:2:9: error: 'cin' does not name a type
    2 |         cin >> a>>b>>c;
      |         ^~~
a.cc:4:9: error: expected unqualified-id before 'if'
    4 |         if (a<b && b<c)
      |         ^~
a.cc:8:9: error: expected unqualified-id before 'else'
    8 |         else if (a<c && c<b)
      |         ^~~~
a.cc:12:9: error: expected unqualified-id before 'else'
   12 |         else if (b<c && c<a)
      |         ^~~~
a.cc:16:9: error: expected unqualified-id before 'else'
   16 |         else if (a>b && a<c)
      |         ^~~~
a.cc:20:9: error: expected unqualified-id before 'else'
   20 |         else if (a<b && a>c)
      |         ^~~~
a.cc:24:9: error: expected unqualified-id before 'else'
   24 |         else if (a>b && b>c)
      |         ^~~~
Language: C++

#include<iostream>
using namespace std;

int main](){
  int a, b, c;
  cin >> a >> b >> c;
  if (a>b){
    int t = a; a = b; b = t;
  }
  if (b>c){
    b = c; c = t;
  }
  if (a>b){
    t = a; a = b; b = t;
  }
  cout << a << " " << b << " " << c << endl;
  return 0;
}

Compiler output:
a.cc:4:9: error: expected initializer before ']' token
    4 | int main](){
      |         ^
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;
 
}
 

 
Compile Error Logs: 

You are not authorized to see the message. 
 
 
Status 
Judge: 5/5  C++  CPU: 00.00 sec  Memory: 0 KB  Length: 182 B  2012-04-20 09:34  2012-04-20 09:34  
Results for testcases 
Case # Verdict CPU Time Memory In Out Case Name 
 Case #1: : Accepted  - - 15 B 15 B test_case_1 
 Case #2: : Accepted  - - 6 B 6 B test_case_2 
 Case #3:  

Compiler output:
a.cc:27:74: error: invalid digit "9" in octal constant
   27 | Judge: 5/5  C++  CPU: 00.00 sec  Memory: 0 KB  Length: 182 B  2012-04-20 09:34  2012-04-20 09:34
      |                                                                          ^~
a.cc:27:92: error: invalid digit "9" in octal constant
   27 | Judge: 5/5  C++  CPU: 00.00 sec  Memory: 0 KB  Length: 182 B  2012-04-20 09:34  2012-04-20 09:34
      |                                                                                            ^~
a.cc:29:6: error: stray '#' in program
   29 | Case # Verdict CPU Time Memory In Out Case Name
      |      ^
a.cc:30:7: error: stray '#' in program
   30 |  Case #1: : Accepted  - - 15 B 15 B test_case_1
      |       ^
a.cc:31:7: error: stray '#' in program
   31 |  Case #2: : Accepted  - - 6 B 6 B test_case_2
      |       ^
a.cc:32:7: error: stray '#' in program
   32 |  Case #3:
      |       ^
a.cc:21:1: error: 'Compile' does not name a type
   21 | Compile Error Logs:
      | ^~~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:21:12: error: expected '(' before 'else'
   21 |         if else{
      |            ^~~~
      |            (
Language: C++

int main(int argc,const char*argv[])
{
    int a,b,c,t;
    scanf("%d %d %d",&a,&b,&c);
    if(a>b){
        if(b>c){//a>b>c
            t=a;
            a=c;
            c=t;
        }else if(c>a){//c>a>b
            t=a;
            a=b;
            b=t;
        }
    }
    if(a>c){
        if(c>b){//a>c>b
            t=a;
            a=b;
            b=c;
            c=t;
        }else if(b>a){//b>a>c
            t=a;
            a=c;
            c=b;
            b=t;
        }
    }
    if(b>c){//b>c>a
        t=b;
        b=c;
        c=t;
    }
    printf("%d %d %d",a,b,c);
    return 0;
}

Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:4:5: error: 'scanf' was not declared in this scope
    4 |     scanf("%d %d %d",&a,&b,&c);
      |     ^~~~~
a.cc:34:5: error: 'printf' was not declared in this scope
   34 |     printf("%d %d %d",a,b,c);
      |     ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main(int argc,const char*argv[])
Language: C++

#include<bits/stdc++.h>
#define ll long long int
#define FOR(i,a,b) for(ll i=(ll)(a);i<(ll)(b);i++)
#define REP(i,n) FOR(i,0,n)
#define REP1(i,n) FOR(i,1,n)
using namespace std;
 /*temp*/

main(){
    int a[3];
    cin >> a[0] >> a[1] >> a[2];
    sort(a);
    cout << a[0] << a[1] << a[2] << '\n';
}

Compiler output:
a.cc:9:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    9 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:12:9: error: no matching function for call to 'sort(int [3])'
   12 |     sort(a);
      |     ~~~~^~~
In file included from /usr/include/c++/14/algorithm:61,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algo.h:4762:5: note: candidate: 'template<class _RAIter> void std::sort(_RAIter, _RAIter)'
 4762 |     sort(_RandomAccessIterator __first, _RandomAccessIterator __last)
      |     ^~~~
/usr/include/c++/14/bits/stl_algo.h:4762:5: note:   candidate expects 2 arguments, 1 provided
/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, 1 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, 1 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, 1 provided
Language: C++

#include<bits/stdc++.h>
#define ll long long int
#define FOR(i,a,b) for(ll i=(ll)(a);i<(ll)(b);i++)
#define REP(i,n) FOR(i,0,n)
#define REP1(i,n) FOR(i,1,n)
using namespace std;
 /*temp*/

main(){
    int a[3];
    cin >> a[0] >> a[1] >> a[2];
    boost::sort(a);
    cout << a[0] << ' '
         << a[1] << ' '
         << a[2] << '\n';
}

Compiler output:
a.cc:9:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    9 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:12:5: error: 'boost' has not been declared
   12 |     boost::sort(a);
      |     ^~~~~
Language: C++

a,b,c=map(int,input().split())
d=sorted([a,b,c])
print("{0} {1} {2}".format(d[0],d[1],d[2]))                

Compiler output:
a.cc:1:1: error: 'a' does not name a type
    1 | a,b,c=map(int,input().split())
      | ^
Language: C++

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

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

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

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

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

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

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

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

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

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

#include <stdio>
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 = a; c = t;}
if(a > b){t = a; a = b; b = t;}
 
  cout << a << ' ' << b << ' '<< c <<endl;
return 0;
}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:17: error: invalid operands of types 'const char [9]' and 'int' to binary 'operator&'
    5 | scanf("%d %d %d"&a,&b,&c);
      |       ~~~~~~~~~~^~
      |       |          |
      |       |          int
      |       const char [9]
a.cc:24:1: error: 'return0' was not declared in this scope
   24 | return0;
      | ^~~~~~~
Language: C++

module Main where

import Data.Functor
import Data.List

main :: IO ()
main = do
  { xs <- getInts
  ; let result = sort xs
  ; putInts result
  }

getInts :: IO [Int]
getInts = map read . words <$> getLine

putInts :: [Int] -> IO ()
putInts = putStrLn . unwords . map show

Compiler output:
a.cc:1:1: error: 'module' does not name a type
    1 | module Main where
      | ^~~~~~
a.cc:1:1: note: C++20 'module' only available with '-fmodules-ts'
a.cc:13:1: error: 'getInts' does not name a type
   13 | getInts :: IO [Int]
      | ^~~~~~~
Language: C++

#include<iostream>
using namespace std;

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

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

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

	if( a > b){
		tempt = a;
		a = b;
		b = temp;
	}

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:17: error: 'tempt' was not declared in this scope; did you mean 'temp'?
   20 |                 tempt = a;
      |                 ^~~~~
      |                 temp
Language: C++

using System;
using System.Linq;

class Program
{
     static void Main()
    {
        string[] str = Console.ReadLine().Split(' ');
        int a = int.Parse(str[0]);
        int b = int.Parse(str[1]);
        int c = int.Parse(str[2]);

        int[] num = { a, b, c };

        Array.Sort(num);

        foreach (int var in num)
        {
            Console.Write(var + " ");
        }
        Console.WriteLine();
    }
}

Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:2:7: error: expected nested-name-specifier before 'System'
    2 | using System.Linq;
      |       ^~~~~~
a.cc:23:2: error: expected ';' after class definition
   23 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Program::Main()':
a.cc:8:9: error: 'string' was not declared in this scope
    8 |         string[] str = Console.ReadLine().Split(' ');
      |         ^~~~~~
a.cc:8:16: error: expected primary-expression before ']' token
    8 |         string[] str = Console.ReadLine().Split(' ');
      |                ^
a.cc:9:17: error: expected primary-expression before 'int'
    9 |         int a = int.Parse(str[0]);
      |                 ^~~
a.cc:10:17: error: expected primary-expression before 'int'
   10 |         int b = int.Parse(str[1]);
      |                 ^~~
a.cc:11:17: error: expected primary-expression before 'int'
   11 |         int c = int.Parse(str[2]);
      |                 ^~~
a.cc:13:12: error: structured binding declaration cannot have type 'int'
   13 |         int[] num = { a, b, c };
      |            ^~
a.cc:13:12: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:13:12: error: empty structured binding declaration
a.cc:13:15: error: expected initializer before 'num'
   13 |         int[] num = { a, b, c };
      |               ^~~
a.cc:15:9: error: 'Array' was not declared in this scope
   15 |         Array.Sort(num);
      |         ^~~~~
a.cc:15:20: error: 'num' was not declared in this scope; did you mean 'enum'?
   15 |         Array.Sort(num);
      |                    ^~~
      |                    enum
a.cc:17:18: error: expected primary-expression before 'int'
   17 |         foreach (int var in num)
      |                  ^~~
a.cc:17:9: error: 'foreach' was not declared in this scope
   17 |         foreach (int var in num)
      |         ^~~~~~~
a.cc:21:9: error: 'Console' was not declared in this scope
   21 |         Console.WriteLine();
      |         ^~~~~~~
Language: C++

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

int main(){
  int a[3]
  cin >> a[0] >>a[1] >>a[2];
  for (int i=0; i<2; i++){
    for (int j=0; j<3-i; j++){
      if (a[j] > a[j+1]) swap(a[j), a[j+1]);
  }  
          for (auto x: a) {
                cout << x << endl;
        }

  return0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: expected initializer before 'cin'
    6 |   cin >> a[0] >>a[1] >>a[2];
      |   ^~~
a.cc:9:11: error: 'a' was not declared in this scope
    9 |       if (a[j] > a[j+1]) swap(a[j), a[j+1]);
      |           ^
a.cc:9:34: error: expected ']' before ')' token
    9 |       if (a[j] > a[j+1]) swap(a[j), a[j+1]);
      |                                  ^
      |                                  ]
a.cc:11:24: error: 'a' was not declared in this scope
   11 |           for (auto x: a) {
      |                        ^
a.cc:15:3: error: 'return0' was not declared in this scope
   15 |   return0;
      |   ^~~~~~~
a.cc:16:2: error: expected '}' at end of input
   16 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

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

int main(){
  vector<int> v;
  int a;
  cin >> a; v.push_back(a);
  v.sort(v.begin(), v.end());

   for (int i=0; i<v.size(); i++){
     if(i == v.size() -1){
       cout << v[i];
}
    else{
    cout << v[i] << " ";
}
}
        cout << endl;
  return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: 'class std::vector<int>' has no member named 'sort'
    8 |   v.sort(v.begin(), v.end());
      |     ^~~~
Language: C++

#include <stdio.h>
int main()
{
int a, b, c;

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

if (a =< b, c)
printf("%d\t",a);
{
if (b =< c)
printf("%d\t",b);
printf("%d^t",c);
else
printf("%d\t",c);
printf("%d\t",b);
}
if (b =< a, c)
printf("%d\t",b);
{
if (a =< c)
printf("%d\t",a);
printf("%d^t",c);
else
printf("%d\t",c);
printf("%d\t",a);
}
if (c =< a, b)
printf("%d\t",c);
{
if (a =< b)
printf("%d\t",a);
printf("%d^t",b);
else
printf("%d\t",b);
printf("%d\t",a);
}
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:8: error: expected primary-expression before '<' token
   10 | if (a =< b, c)
      |        ^
a.cc:13:8: error: expected primary-expression before '<' token
   13 | if (b =< c)
      |        ^
a.cc:16:1: error: 'else' without a previous 'if'
   16 | else
      | ^~~~
a.cc:20:8: error: expected primary-expression before '<' token
   20 | if (b =< a, c)
      |        ^
a.cc:23:8: error: expected primary-expression before '<' token
   23 | if (a =< c)
      |        ^
a.cc:26:1: error: 'else' without a previous 'if'
   26 | else
      | ^~~~
a.cc:30:8: error: expected primary-expression before '<' token
   30 | if (c =< a, b)
      |        ^
a.cc:33:8: error: expected primary-expression before '<' token
   33 | if (a =< b)
      |        ^
a.cc:36:1: error: 'else' without a previous 'if'
   36 | else
      | ^~~~
Language: C++

#include <stdio.h>

int main()

int a[3];

scanf("%d %d %d",&a[0],&a[1],&[2]);

if (a[j]>a[j+1]){
b=a[j];
a[j]=a[j+1];
a[j+1]=b;
}
if(a[j+1]>a[j+2]){
c=b[j+1];
b[j+1]=b[j+2];
b[j+2]=c;
}

if (a[j]>a[j+1]){
b=a[j];
a[j]=a[j+1];
a[j+1]=b;
}

Compiler output:
a.cc:5:1: error: expected initializer before 'int'
    5 | int a[3];
      | ^~~
a.cc:7:6: error: expected constructor, destructor, or type conversion before '(' token
    7 | scanf("%d %d %d",&a[0],&a[1],&[2]);
      |      ^
a.cc:9:1: error: expected unqualified-id before 'if'
    9 | if (a[j]>a[j+1]){
      | ^~
a.cc:14:1: error: expected unqualified-id before 'if'
   14 | if(a[j+1]>a[j+2]){
      | ^~
a.cc:20:1: error: expected unqualified-id before 'if'
   20 | if (a[j]>a[j+1]){
      | ^~
Language: C++

#include <stdio.h>

int main()
{
int a[3];

scanf("%d %d %d",&a[0],&a[1],&[2]);

if (a[j]>a[j+1]){
b=a[j];
a[j]=a[j+1];
a[j+1]=b;
}
if(a[j+1]>a[j+2]){
c=b[j+1];
b[j+1]=b[j+2];
b[j+2]=c;
}

if (a[j]>a[j+1]){
b=a[j];
a[j]=a[j+1];
a[j+1]=b;
}

return 0
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:32: error: expected identifier before numeric constant
    7 | scanf("%d %d %d",&a[0],&a[1],&[2]);
      |                                ^
a.cc: In lambda function:
a.cc:7:34: error: expected '{' before ')' token
    7 | scanf("%d %d %d",&a[0],&a[1],&[2]);
      |                                  ^
a.cc: In function 'int main()':
a.cc:7:31: error: taking address of rvalue [-fpermissive]
    7 | scanf("%d %d %d",&a[0],&a[1],&[2]);
      |                               ^~~
a.cc:9:7: error: 'j' was not declared in this scope
    9 | if (a[j]>a[j+1]){
      |       ^
a.cc:10:1: error: 'b' was not declared in this scope
   10 | b=a[j];
      | ^
a.cc:14:6: error: 'j' was not declared in this scope
   14 | if(a[j+1]>a[j+2]){
      |      ^
a.cc:15:1: error: 'c' was not declared in this scope
   15 | c=b[j+1];
      | ^
a.cc:15:3: error: 'b' was not declared in this scope
   15 | c=b[j+1];
      |   ^
a.cc:20:7: error: 'j' was not declared in this scope
   20 | if (a[j]>a[j+1]){
      |       ^
a.cc:21:1: error: 'b' was not declared in this scope
   21 | b=a[j];
      | ^
a.cc:26:9: error: expected ';' before '}' token
   26 | return 0
      |         ^
      |         ;
   27 | }
      | ~
Language: C++

#include <stdio.h>

int main()
{
int a[3];

scanf("%d %d %d",&a[0],&a[1],&[2]);

if (a[j]>a[j+1]){
b=a[j];
a[j]=a[j+1];
a[j+1]=b;
}
if(a[j+1]>a[j+2]){
c=b[j+1];
b[j+1]=b[j+2];
b[j+2]=c;
}

if (a[j]>a[j+1]){
b=a[j];
a[j]=a[j+1];
a[j+1]=b;
}

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:32: error: expected identifier before numeric constant
    7 | scanf("%d %d %d",&a[0],&a[1],&[2]);
      |                                ^
a.cc: In lambda function:
a.cc:7:34: error: expected '{' before ')' token
    7 | scanf("%d %d %d",&a[0],&a[1],&[2]);
      |                                  ^
a.cc: In function 'int main()':
a.cc:7:31: error: taking address of rvalue [-fpermissive]
    7 | scanf("%d %d %d",&a[0],&a[1],&[2]);
      |                               ^~~
a.cc:9:7: error: 'j' was not declared in this scope
    9 | if (a[j]>a[j+1]){
      |       ^
a.cc:10:1: error: 'b' was not declared in this scope
   10 | b=a[j];
      | ^
a.cc:14:6: error: 'j' was not declared in this scope
   14 | if(a[j+1]>a[j+2]){
      |      ^
a.cc:15:1: error: 'c' was not declared in this scope
   15 | c=b[j+1];
      | ^
a.cc:15:3: error: 'b' was not declared in this scope
   15 | c=b[j+1];
      |   ^
a.cc:20:7: error: 'j' was not declared in this scope
   20 | if (a[j]>a[j+1]){
      |       ^
a.cc:21:1: error: 'b' was not declared in this scope
   21 | b=a[j];
      | ^
Language: C++

#include <stdio.h>
int main()
{
int a, b, c;

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

if (a <= b, c)
printf("%d\t", a);
{
if (b <= c)
printf("%d\t", b);
printf("%d\t", c);
else
printf("%d\t", c);
printf("%d\t", b);
}
if (b <= a, c)
printf("%d\t", b);
{
if (a <= c)
printf("%d\t", a);
printf("%d\t", c);
else
printf("%d\t", c);
printf("%d\t", a);
}
if (c <= b, a)
printf("%d\t", c);
{
if (b <= a)
printf("%d\t", b);
printf("%d\t", a);
else
printf("%d\t", a);
printf("%d\t", b);
}
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:1: error: 'else' without a previous 'if'
   16 | else
      | ^~~~
a.cc:26:1: error: 'else' without a previous 'if'
   26 | else
      | ^~~~
a.cc:36:1: error: 'else' without a previous 'if'
   36 | else
      | ^~~~