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

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

using namespace std;
 int main(){
    vector<int> a(3);
    for(int i=0;i<3;i++){
        cin>>a[i];
    }
    
    sort(a.begin(),a.end());
    for(int i=0;i<3;i++){
        cout<<a[i]<<;
        if(i<3){cout<<" ";}
        
    }
    
    
 }
 


Compiler output:
a.cc: In function 'int main()':
a.cc:14:21: error: expected primary-expression before ';' token
   14 |         cout<<a[i]<<;
      |                     ^
Language: C++

fn read_vec<T: std::str::FromStr>() -> Vec<T> {
    let mut s = String::new();
    std::io::stdin().read_line(&mut s).ok();
    s.trim().split_whitespace()
        .map(|e| e.parse().ok().unwrap()).collect()
}

fn main() {
    let mut data:Vec<i64> = read_vec();
    data.sort();
    print!("{}",data.remove(0));
    
    for x in &data {
        print!("　{}\n",x);
    }
}



Compiler output:
a.cc:1:1: error: 'fn' does not name a type
    1 | fn read_vec<T: std::str::FromStr>() -> Vec<T> {
      | ^~
a.cc:8:1: error: 'fn' does not name a type
    8 | fn main() {
      | ^~
Language: C++

#include<stdio.h>
int main(void)
{

int a[3] {b,c,d};

int i,j,m;

 for(i=0;i<3;i++)
{
 for(j=i+1;j,3;j++)
 {
   if(a[i]>a[j]){
   m=a[i];
   a[i]=a[j]
   a[j]=m
}
}printf("%d %d %d\n",b,c,d);


return 0;

}




Compiler output:
a.cc: In function 'int main()':
a.cc:5:11: error: 'b' was not declared in this scope
    5 | int a[3] {b,c,d};
      |           ^
a.cc:5:13: error: 'c' was not declared in this scope
    5 | int a[3] {b,c,d};
      |             ^
a.cc:5:15: error: 'd' was not declared in this scope
    5 | int a[3] {b,c,d};
      |               ^
a.cc:15:13: error: expected ';' before 'a'
   15 |    a[i]=a[j]
      |             ^
      |             ;
   16 |    a[j]=m
      |    ~         
a.cc:23:2: error: expected '}' at end of input
   23 | }
      |  ^
a.cc:3:1: note: to match this '{'
    3 | {
      | ^
Language: C++

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


Compiler output:
a.cc:16:24: warning: missing terminating " character
   16 |                 printf("b a c\n);
      |                        ^
a.cc:16:24: error: missing terminating " character
   16 |                 printf("b a c\n);
      |                        ^~~~~~~~~~
a.cc:1:1: error: 'include' does not name a type
    1 | include<stdio.h>
      | ^~~~~~~
Language: C++

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


Compiler output:
a.cc:16:24: warning: missing terminating " character
   16 |                 printf("b a c\n);
      |                        ^
a.cc:16:24: error: missing terminating " character
   16 |                 printf("b a c\n);
      |                        ^~~~~~~~~~
a.cc: In function 'int main()':
a.cc:14:9: error: 'else' without a previous 'if'
   14 |         else if(b<a&&a<c);
      |         ^~~~
a.cc:17:9: error: expected primary-expression before '}' token
   17 |         }
      |         ^
a.cc:18:9: error: 'else' without a previous 'if'
   18 |         else if(b<c&&c<a);
      |         ^~~~
a.cc:22:9: error: 'else' without a previous 'if'
   22 |         else if(c<a&&a<b)
      |         ^~~~
a.cc:28:34: error: expected ';' before '}' token
   28 |                 printf("c b a\n")
      |                                  ^
      |                                  ;
   29 |         }
      |         ~
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;}


Compiler output:
a.cc:1:26: warning: extra tokens at end of #include directive
    1 | #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;}
      |                          ^~~~~~~~~
a.cc:1:10: fatal error: iostream>usin: No such file or directory
    1 | #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;}
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include <stdio.h>

int main() {
    int x[3];
    scanf("%d %d %d", &x[0], &x[1], &x[2]);
    for(int i=2; i>0, i--) {
        for(int j=0, j<i, j++){
            if(x[j] < x[j+1]) swap(x[j], x[j+1]);
        }
    }
    printf("%d %d %d\n", x[0], x[1], x[2]);
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:26: error: expected ';' before ')' token
    6 |     for(int i=2; i>0, i--) {
      |                          ^
      |                          ;
a.cc:7:23: error: expected ';' before '<' token
    7 |         for(int j=0, j<i, j++){
      |                       ^
      |                       ;
a.cc:7:23: error: expected primary-expression before '<' token
a.cc:7:30: error: expected ';' before ')' token
    7 |         for(int j=0, j<i, j++){
      |                              ^
      |                              ;
a.cc:8:31: error: 'swap' was not declared in this scope
    8 |             if(x[j] < x[j+1]) swap(x[j], x[j+1]);
      |                               ^~~~
Language: C++

#include <stdio.h>

int main() {
    int x[3];
    scanf("%d %d %d", &x[0], &x[1], &x[2]);
    for(int i=2; i>0; i--) {
        for(int j=0; j<i; j++){
            if(x[j] < x[j+1]) swap(x[j], x[j+1]);
        }
    }
    printf("%d %d %d\n", x[0], x[1], x[2]);
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:31: error: 'swap' was not declared in this scope
    8 |             if(x[j] < x[j+1]) swap(x[j], x[j+1]);
      |                               ^~~~
Language: C++

#include <stdio.h>
#include <algorithm>

int main() {
    int x[3];
    scanf("%d %d %d", &x[0], &x[1], &x[2]);
    for(int i=2; i>0; i--) {
        for(int j=0; j<i; j++){
            if(x[j] < x[j+1]) swap(x[j], x[j+1]);
        }
    }
    printf("%d %d %d\n", x[0], x[1], x[2]);
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:31: error: 'swap' was not declared in this scope
    9 |             if(x[j] < x[j+1]) swap(x[j], x[j+1]);
      |                               ^~~~
a.cc:9:31: note: suggested alternatives:
In file included from /usr/include/c++/14/bits/stl_algobase.h:64,
                 from /usr/include/c++/14/algorithm:60,
                 from a.cc:2:
/usr/include/c++/14/bits/stl_pair.h:1106:5: note:   'std::swap'
 1106 |     swap(pair<_T1, _T2>&, pair<_T1, _T2>&) = delete;
      |     ^~~~
In file included from /usr/include/c++/14/bits/stl_pair.h:61:
/usr/include/c++/14/bits/move.h:226:5: note:   'std::swap'
  226 |     swap(_Tp& __a, _Tp& __b)
      |     ^~~~
/usr/include/c++/14/bits/move.h:226:5: note:   'std::swap'
Language: C++

#include <stdio.h>
// #include <algorithm>

int main() {
    int x[3];
    scanf("%d %d %d", &x[0], &x[1], &x[2]);
    for(int i=2; i>0; i--) {
        for(int j=0; j<i; j++){
            if(x[j] > x[j+1]) std::swap(x[j], x[j+1]);
        }
    }
    printf("%d %d %d\n", x[0], x[1], x[2]);
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:36: error: 'swap' is not a member of 'std'
    9 |             if(x[j] > x[j+1]) std::swap(x[j], x[j+1]);
      |                                    ^~~~
Language: C++

#include <stdio.h>

int main(void)
{
	int seisu[3];
	int x;
	
	sccanf("%d %d %d",seisu[0],seisu[1],seisu[2]);
	
	if(seisu[0]>seisu[1])
	{
	x=seisu[0];
	seisu[0]=seisu[1];
	seisu[1]=x;
	}
	
	if (seisu[0]>seisu[2])
	{
	x=seisu[0];
	seisu[0]=seisu[2];
	seisu[2]=x;
	}
	
	if(seisu[1]>seisu[2])
	{
	x=seisu[1];
	seisu[1]=seisu[2];
	seisu[2]=x;
	}
	
	printf("%d %d %d\n",&seisu[0],&seisu[1],&seisu[2]);
		
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'sccanf' was not declared in this scope; did you mean 'sscanf'?
    8 |         sccanf("%d %d %d",seisu[0],seisu[1],seisu[2]);
      |         ^~~~~~
      |         sscanf
Language: C++

#include<iostream>
using namespace std;
int main (){
    int a, b, c;
    cin >> a >> b >> c;
   int x, y, z;
    x = max(a, b, c)
    y = min(a. b, c);
    z = a + b + c - (x + y)
    cout << x << z << y << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:21: error: expected ';' before 'y'
    7 |     x = max(a, b, c)
      |                     ^
      |                     ;
    8 |     y = min(a. b, c);
      |     ~                
a.cc:9:28: error: expected ';' before 'cout'
    9 |     z = a + b + c - (x + y)
      |                            ^
      |                            ;
   10 |     cout << x << z << y << endl;
      |     ~~~~                    
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::max(const _Tp&, const _Tp&, _Compare) [with _Tp = int; _Compare = int]':
a.cc:7:12:   required from here
    7 |     x = 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 <stdio.h>
int main(void)
{
  int a,b,c;
  scanf("%d,%d,%d",&a,&b,&c);
  int s[3]={a,b,c}
  if(s[1]>s[2]){
    s[2]=s[1],s[1]=s[2];
  }
  if(s[2]>s[3]){
    s[3]=s[2],s[2]=s[3];
  }
  if(s[1]>s[2]){
    s[1]=s[2],s[2]=s[1];
  }
    printf("%d %d %d",s[1],s[2],s[3]);
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: expected ',' or ';' before 'if'
    7 |   if(s[1]>s[2]){
      |   ^~
Language: C++

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


Compiler output:
a.cc:3:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    3 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:4:3: error: 'vector' was not declared in this scope
    4 |   vector<int> v;
      |   ^~~~~~
a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    1 | #include<iostream>
  +++ |+#include <vector>
    2 | using namespace std;
a.cc:4:10: error: expected primary-expression before 'int'
    4 |   vector<int> v;
      |          ^~~
a.cc:5:41: error: 'v' was not declared in this scope
    5 |   for(int i=0; i<3; i++){int a; cin>>a; v.push_back(a);}
      |                                         ^
a.cc:6:8: error: 'v' was not declared in this scope
    6 |   sort(v.begin(), v.end());
      |        ^
a.cc:6:3: error: 'sort' was not declared in this scope; did you mean 'short'?
    6 |   sort(v.begin(), v.end());
      |   ^~~~
      |   short
Language: C++

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


Compiler output:
a.cc:3:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    3 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:4:3: error: 'vector' was not declared in this scope
    4 |   vector<int> v;
      |   ^~~~~~
a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    1 | #include<iostream>
  +++ |+#include <vector>
    2 | using namespace std;
a.cc:4:10: error: expected primary-expression before 'int'
    4 |   vector<int> v;
      |          ^~~
a.cc:5:41: error: 'v' was not declared in this scope
    5 |   for(int i=0; i<3; i++){int a; cin>>a; v.push_back(a);}
      |                                         ^
a.cc:6:8: error: 'v' was not declared in this scope
    6 |   sort(v.begin(), v.end());
      |        ^
a.cc:6:3: error: 'sort' was not declared in this scope; did you mean 'short'?
    6 |   sort(v.begin(), v.end());
      |   ^~~~
      |   short
Language: C++

include <iostream>
using namespace std;
int main (void) {
    int a,b,c;
    cin >> a >> b >> c;
    
    
    if(a<b &&  b<c) cout <<"Yes"<< endl;
    else cout << "No" <<endl;
}


Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:5:5: error: 'cin' was not declared in this scope
    5 |     cin >> a >> b >> c;
      |     ^~~
a.cc:8:21: error: 'cout' was not declared in this scope
    8 |     if(a<b &&  b<c) cout <<"Yes"<< endl;
      |                     ^~~~
a.cc:8:36: error: 'endl' was not declared in this scope
    8 |     if(a<b &&  b<c) cout <<"Yes"<< endl;
      |                                    ^~~~
a.cc:9:10: error: 'cout' was not declared in this scope
    9 |     else cout << "No" <<endl;
      |          ^~~~
a.cc:9:25: error: 'endl' was not declared in this scope
    9 |     else cout << "No" <<endl;
      |                         ^~~~
Language: C++

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


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

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


Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:5:5: error: 'cin' was not declared in this scope
    5 |     cin >> a >> b >> c;
      |     ^~~
a.cc:7:5: error: 'cout' was not declared in this scope
    7 |     cout << c <<""<<b<<""<<a<<""<< endl;
      |     ^~~~
a.cc:7:36: error: 'endl' was not declared in this scope
    7 |     cout << c <<""<<b<<""<<a<<""<< endl;
      |                                    ^~~~
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 << endl;
	}
	if (a < c < b){
		cout << a << " " << c << " " << b << endl;
	}
	if (b < a < c){
		cout << b << " " << a << " " << c << endl;
	}
	if (b < c < a){
		cout << b << " " << c << " " << a << endl;
	}
	if (c < a < b){
		cout << c << " " << a << " " << b << endl;
	}
	if (c < b < a){
		cout << c << " " << b << " " << a << endl;
	}
	cout << endl;
						}


Compiler output:
a.cc:1:10: fatal error: iostream : No such file or directory
    1 | #include <iostream >
      |          ^~~~~~~~~~~
compilation terminated.
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 << endl;
	}
	if (a < c < b){
		cout << a << " " << c << " " << b << endl;
	}
	if (b < a < c){
		cout << b << " " << a << " " << c << endl;
	}
	if (b < c < a){
		cout << b << " " << c << " " << a << endl;
	}
	if (c < a < b){
		cout << c << " " << a << " " << b << endl;
	}
	if (c < b < a){
		cout << c << " " << b << " " << a << endl;
	}
	if (a<b>c)(a < c); {
		cout << a << c << b;
	}
	if (a<b>c)(c < a); {
		cout << c << a << b;
	}
	if (b<a>c)(c < b); {
		cout << c << b << a;
	}
	if (b<a>c)(b < c); {
		cout << b << c << a;
	}
	if (a<c>b)(a < b); {
		cout << a << b << c;
	}
	if (a<c>b)(b < a); {
		cout << b << a << c;
	}
	if (b<c>a)(b < a); {
		cout << b << a << c;
	}
	if (b<c>a)(a < b); {
		cout << a << b << c;
	}
	if (c<a>b)(c < b); {
		cout << c << b << a;
	}
	if (c<a>b)(b < c); {
		cout << b << c << a;
	}
	if (c<b>a)(c < a); {
		cout << c << a << b;
	}
	if (c<b>a)(a < c); {
		cout << a << c << b;
	}
	cout << endl;
						}


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

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


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

#include <iostream >
#include <stdafx.h>
using namespace std;
int main()
{
	int a, b, c;
	if (a < b < c); {
		cout << a << " " << b << " " << c << endl;
	}
	if (a < c < b){
		cout << a << " " << c << " " << b << endl;
	}
	if (b < a < c){
		cout << b << " " << a << " " << c << endl;
	}
	if (b < c < a){
		cout << b << " " << c << " " << a << endl;
	}
	if (c < a < b){
		cout << c << " " << a << " " << b << endl;
	}
	if (c < b < a){
		cout << c << " " << b << " " << a << endl;
	}
	if (a<b>c)(a < c); {
		cout << a << c << b;
	}
	if (a<b>c)(c < a); {
		cout << c << a << b;
	}
	if (b<a>c)(c < b); {
		cout << c << b << a;
	}
	if (b<a>c)(b < c); {
		cout << b << c << a;
	}
	if (a<c>b)(a < b); {
		cout << a << b << c;
	}
	if (a<c>b)(b < a); {
		cout << b << a << c;
	}
	if (b<c>a)(b < a); {
		cout << b << a << c;
	}
	if (b<c>a)(a < b); {
		cout << a << b << c;
	}
	if (c<a>b)(c < b); {
		cout << c << b << a;
	}
	if (c<a>b)(b < c); {
		cout << b << c << a;
	}
	if (c<b>a)(c < a); {
		cout << c << a << b;
	}
	if (c<b>a)(a < c); {
		cout << a << c << b;
	}
	cout << endl;
						}


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

#include <iostream > 
#include "stdafx.h"
using namespace std;
int main()
{
	int a, b, c;
	if (a < b < c); {
		cout << a << " " << b << " " << c << endl;
	}
	if (a < c < b){
		cout << a << " " << c << " " << b << endl;
	}
	if (b < a < c){
		cout << b << " " << a << " " << c << endl;
	}
	if (b < c < a){
		cout << b << " " << c << " " << a << endl;
	}
	if (c < a < b){
		cout << c << " " << a << " " << b << endl;
	}
	if (c < b < a){
		cout << c << " " << b << " " << a << endl;
	}
	if (a<b>c)(a < c); {
		cout << a << c << b;
	}
	if (a<b>c)(c < a); {
		cout << c << a << b;
	}
	if (b<a>c)(c < b); {
		cout << c << b << a;
	}
	if (b<a>c)(b < c); {
		cout << b << c << a;
	}
	if (a<c>b)(a < b); {
		cout << a << b << c;
	}
	if (a<c>b)(b < a); {
		cout << b << a << c;
	}
	if (b<c>a)(b < a); {
		cout << b << a << c;
	}
	if (b<c>a)(a < b); {
		cout << a << b << c;
	}
	if (c<a>b)(c < b); {
		cout << c << b << a;
	}
	if (c<a>b)(b < c); {
		cout << b << c << a;
	}
	if (c<b>a)(c < a); {
		cout << c << a << b;
	}
	if (c<b>a)(a < c); {
		cout << a << c << b;
	}
	cout << endl;
						}


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

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


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

#include <iostream>
using namespace std;
int main(void){
    // Your code here!
    int a,b,c;
    cin>>a>>b>>c;
if(a<b&&b<c){
    cout<<c<<b<<a<<ensl;

}
if(a<c&&c<b){
    cout<<b<<c<<a<<ensl;

}
   if(b<a&&a<c){
    cout<<c<<a<<b<<ensl;

}
    if(b<c&&c<a){
    cout<<a<<c<<b<<ensl;

}
    if(c<b&&b<a){
    cout<<a<<b<<c<<ensl;

}
if(c<a&&a<b){
    cout<<b<<a<<c<<ensl;

}
    
    
        
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:20: error: 'ensl' was not declared in this scope
    8 |     cout<<c<<b<<a<<ensl;
      |                    ^~~~
a.cc:12:20: error: 'ensl' was not declared in this scope
   12 |     cout<<b<<c<<a<<ensl;
      |                    ^~~~
a.cc:16:20: error: 'ensl' was not declared in this scope
   16 |     cout<<c<<a<<b<<ensl;
      |                    ^~~~
a.cc:20:20: error: 'ensl' was not declared in this scope
   20 |     cout<<a<<c<<b<<ensl;
      |                    ^~~~
a.cc:24:20: error: 'ensl' was not declared in this scope
   24 |     cout<<a<<b<<c<<ensl;
      |                    ^~~~
a.cc:28:20: error: 'ensl' was not declared in this scope
   28 |     cout<<b<<a<<c<<ensl;
      |                    ^~~~
Language: C++

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

int main()
{
    int a[3];
    cin>>a[0]>>a[1]>>a[2];
    sort(a.begin(),a.end());
    cout<<a[0]<<a[1]<<a[2];
}


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

#include <iostream>
using namespace std;
int main(){
    int a, b, c;
    cin >> a >> b >> c;
　　else if (a<b && b<c) cout << a << "　" <<  b << " " << c << endl;
    else if (c<b && b<a) cout << c << " " << b << " " << a << 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 (b<a && a<c) cout << b << " " << a << " " << c << endl;
    else if (c<a && a<b) cout << c << " " << a << " " << b << endl;
    return 0;
}


Compiler output:
a.cc:6:1: error: extended character 　 is not valid in an identifier
    6 | 　　else if (a<b && b<c) cout << a << "　" <<  b << " " << c << endl;
      | ^
a.cc:6:1: error: extended character 　 is not valid in an identifier
a.cc: In function 'int main()':
a.cc:6:1: error: '\U00003000\U00003000else' was not declared in this scope
    6 | 　　else if (a<b && b<c) cout << a << "　" <<  b << " " << c << endl;
      | ^~~~~~~~
a.cc:7:5: error: 'else' without a previous 'if'
    7 |     else if (c<b && b<a) cout << c << " " << b << " " << a << endl;
      |     ^~~~
Language: C++

#include <iostream>
using namespace std;
int main(){
    int a, b, c;
    cin >> a >> b >> c;
　  if (a<b && b<c) cout << a << "　" <<  b << " " << c << endl;
    else if (c<b && b<a) cout << c << " " << b << " " << a << 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 (b<a && a<c) cout << b << " " << a << " " << c << endl;
    else if (c<a && a<b) cout << c << " " << a << " " << b << endl;
    return 0;
}


Compiler output:
a.cc:6:1: error: extended character 　 is not valid in an identifier
    6 | 　  if (a<b && b<c) cout << a << "　" <<  b << " " << c << endl;
      | ^
a.cc: In function 'int main()':
a.cc:6:1: error: '\U00003000' was not declared in this scope
    6 | 　  if (a<b && b<c) cout << a << "　" <<  b << " " << c << endl;
      | ^~
a.cc:7:5: error: 'else' without a previous 'if'
    7 |     else if (c<b && b<a) cout << c << " " << b << " " << a << endl;
      |     ^~~~
Language: C++

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

using namespace std;

int main()
{
    vector<int> N(3,0)
    for(auto&& x : N)
        cin >> x;
    
    sort(N.rbegin(),N.rend());
    
    cout << N[0] << ' ' << N[1] << ' ' << N[2] <<'\n';
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:5: error: expected ',' or ';' before 'for'
   10 |     for(auto&& x : N)
      |     ^~~
Language: C++

#include <iostream>
#include <algorithm>   // 追加
using namespace std;
 
int main() {
    int a[3];
    for(int i = 0; i < n; i++) {
      cin>>a[i];
    }
    sort(a,a+3);
    cout<<a[0]<<" ";
    cout <<a[1]<<" ";
    cout <<a[2]<<endl;
}


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

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

int main() {
   int first, second, third;
   cin >> first >> second >> third;
   int tmp;
   if(first > second) {
      tmp = second;
      second = first;
      first = tmp;
   }
   if(second > third) {
      tmp = second;
      second = third;
      third = tmp;
   }
   if(first > third) {
      tmp = first;
      first = third;
      third = tmp;
   cout << first << second << third << endl;
}
   
   
      
   
   
   

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

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

int main() {
   int first, second, third;
   cin >> first >> second >> third;
   int[] array = {first, second, third};
   for(int i = 0; i < array.size(); i++) {
   }
  
   cout << first << second << third << endl;
}
   
   
      
   
   
   

Compiler output:
a.cc: In function 'int main()':
a.cc:8:7: error: structured binding declaration cannot have type 'int'
    8 |    int[] array = {first, second, third};
      |       ^~
a.cc:8:7: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:8:7: error: empty structured binding declaration
a.cc:8:10: error: expected initializer before 'array'
    8 |    int[] array = {first, second, third};
      |          ^~~~~
a.cc:9:28: error: missing template arguments before '.' token
    9 |    for(int i = 0; i < array.size(); i++) {
      |                            ^
Language: C++

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

int main() {
   int f, s, t, tmp;
   cin >> f >> s >> t;

   if(f > s) { tmp = s; s = f; f = tmp; }
   if(s > t) { tmp = t; t = s; s = tmp; }
   if(f > t) { tmp = f; f = t; t = tmp; }
   
  
   cout << first << second << third << endl;
}
   
   
      
   
   
   

Compiler output:
a.cc: In function 'int main()':
a.cc:14:12: error: 'first' was not declared in this scope
   14 |    cout << first << second << third << endl;
      |            ^~~~~
a.cc:14:21: error: 'second' was not declared in this scope
   14 |    cout << first << second << third << endl;
      |                     ^~~~~~
a.cc:14:31: error: 'third' was not declared in this scope
   14 |    cout << first << second << third << endl;
      |                               ^~~~~
Language: C++

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

Compiler output:
a.cc:2:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    2 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:20:8: error: unable to find string literal operator 'operator""a' with 'const char [7]', 'long unsigned int' arguments
   20 | printf("%d%d%d"a,b,c);
      |        ^~~~~~~~~
Language: C++

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

Compiler output:
a.cc:2:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    2 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:20:28: error: expected '}' at end of input
   20 | printf("%d %d %d\n",a,b,c);
      |                            ^
a.cc:2:7: note: to match this '{'
    2 | main(){
      |       ^
Language: C++

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

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

/*
 * SortingThreeNumbers.cpp
 *
 *  Created on: 2014/07/21
 *      Author: WanWan1985
 */
#include <iostream>
#include <vector>
using namespace std;

int main(void) {

	int a, b, c = 0;
	cin >> a >> b >> c;

	vector<int> vecValue;
	vecValue.push_back(a);
	vecValue.push_back(b);
	vecValue.push_back(c);

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

	for (unsigned int i = 0; i < vecValue.size(); i++) {
		cout << vecValue.at(i) << " ";
	}
	cout << endl;

	return 0;
}

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

#include <iostream>
using namespace std;
     
int main()
{
  int a[3];
  int b, i, j;

  for(j==1; j<=2; j++;)
  {
    for(i==1; i<=3-j; i++;)
    {
      b=a[i];
    
      if(a[i]>a[i+1])
      {
        a[i]=a[i+1];
      }
      a[i+1]=b;
    }
  }
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:22: error: expected ')' before ';' token
    9 |   for(j==1; j<=2; j++;)
      |      ~               ^
      |                      )
a.cc:9:23: error: expected primary-expression before ')' token
    9 |   for(j==1; j<=2; j++;)
      |                       ^
Language: C++

#include <iostream>
using namespace std;
      
int main()
{
  int a[3];
  int b, i, j;
 
  for(j==1; j<=2; j++;)
  {
    for(i==1; i<=3-j; i++;)
    {
      b=a[i];
     
      if(a[i]>a[i+1];)
      {
        a[i]=a[i+1];
      }
      a[i+1]=b;
    }
  }
   
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:22: error: expected ')' before ';' token
    9 |   for(j==1; j<=2; j++;)
      |      ~               ^
      |                      )
a.cc:9:23: error: expected primary-expression before ')' token
    9 |   for(j==1; j<=2; j++;)
      |                       ^
Language: C++

#include <iostream>
using namespace std;
       
int main()
{
  int a[3];
  int b, i, j;
  cin >>a[1]>>a[2]>>a[3];
  
  for(j==1; j<=2; j++;)
  {
    for(i==1; i<=3-j; i++;)
    {
      b=a[i];
      
      if(a[i]>a[i+1];)
      {
        a[i]=a[i+1];
      }
      a[i+1]=b;
    }
  }
  
  cout <<a[1]<<" "<<a[2]<<" "<<a[3]<<"\n";
    
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:22: error: expected ')' before ';' token
   10 |   for(j==1; j<=2; j++;)
      |      ~               ^
      |                      )
a.cc:10:23: error: expected primary-expression before ')' token
   10 |   for(j==1; j<=2; j++;)
      |                       ^
Language: C++

#include <iostream>
using namespace std;
        
int main()
{
  int a[3];
  int b, i, j;
  cin >>a[1]>>a[2]>>a[3];
   
  for(j==1; j<=2; j++;)
  {
    for(i==1; i<=3-j; i++;)
    {
      if(a[i]>a[i+1];)
      {
         b=a[i];
         a[i]=a[i+1];
         a[i+1]=b;
      }
    }
  }
   
  cout <<a[1]<<" "<<a[2]<<" "<<a[3]<<"\n";
     
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:22: error: expected ')' before ';' token
   10 |   for(j==1; j<=2; j++;)
      |      ~               ^
      |                      )
a.cc:10:23: error: expected primary-expression before ')' token
   10 |   for(j==1; j<=2; j++;)
      |                       ^
Language: C++

#include <iostream>
using namespace std;
         
int main()
{
  int a[3];
  int b, i, j;
  cin >>a[1]>>a[2]>>a[3];
    
  for(j=1; j<=2; j++;)
  {
    for(i=1; i<=3-j; i++;)
    {
      if(a[i]>a[i+1];)
      {
         b=a[i];
         a[i]=a[i+1];
         a[i+1]=b;
      }
    }
  }
    
  cout <<a[1]<<" "<<a[2]<<" "<<a[3]<<"\n";
      
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:21: error: expected ')' before ';' token
   10 |   for(j=1; j<=2; j++;)
      |      ~              ^
      |                     )
a.cc:10:22: error: expected primary-expression before ')' token
   10 |   for(j=1; j<=2; j++;)
      |                      ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:21:43: error: expected ';' before 'return'
   21 | cout << a << " " << b << " " << c << " \n"
      |                                           ^
      |                                           ;
   22 | return 0;
      | ~~~~~~
Language: C++

#include <stdio.h>
void _swap(int& a, int& b)
{
int t = a;
int a = b;
int b = t;
}

int main()
{
int n[3];
scanf("%d %d %d",&n[0],&n[1],&n[2]);

if(n[2]<n[0]) _swap(n[0],n[2]);
if(n[1]<n[0]) _swap(n[0],n[1]);
if(n[2]<n[1]) _swap(n[1],n[2]);

printf("%d %d %d", n[0],n[1],n[2]);

return 0;
}

Compiler output:
a.cc: In function 'void _swap(int&, int&)':
a.cc:5:5: error: declaration of 'int a' shadows a parameter
    5 | int a = b;
      |     ^
a.cc:2:17: note: 'int& a' previously declared here
    2 | void _swap(int& a, int& b)
      |            ~~~~~^
a.cc:6:5: error: declaration of 'int b' shadows a parameter
    6 | int b = t;
      |     ^
a.cc:2:25: note: 'int& b' previously declared here
    2 | void _swap(int& a, int& b)
      |                    ~~~~~^
Language: C++

#include <stdio.h>
void _swap(int& a, int& b)
{
int t = a;
int a = b;
int b = t;
}

int main()
{
int n[3];
scanf("%d %d %d",&n[0],&n[1],&n[2]);

if(n[2]<n[0]) _swap(n[0],n[2]);
if(n[1]<n[0]) _swap(n[0],n[1]);
if(n[2]<n[1]) _swap(n[1],n[2]);

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

return 0;
}

Compiler output:
a.cc: In function 'void _swap(int&, int&)':
a.cc:5:5: error: declaration of 'int a' shadows a parameter
    5 | int a = b;
      |     ^
a.cc:2:17: note: 'int& a' previously declared here
    2 | void _swap(int& a, int& b)
      |            ~~~~~^
a.cc:6:5: error: declaration of 'int b' shadows a parameter
    6 | int b = t;
      |     ^
a.cc:2:25: note: 'int& b' previously declared here
    2 | void _swap(int& a, int& b)
      |                    ~~~~~^
Language: C++

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

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

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

include<iosteam>
using namespace std;

int main(){
    int a,b,c;
    cin >> a >> b >> c;
    
    if (a > b){
        int tmp = a;
        a = b;
        b = tmp;
    }

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

    if (a > b){
        int tmp = a;
        a = b;
        b = tmp;
    }
    cout >> a >> " " >> b >> " " >> c;
    return 0;
}

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

#include<iosteam>
using namespace std;

int main(){
    int a,b,c;
    cin >> a >> b >> c;
    
    if (a > b){
        int tmp = a;
        a = b;
        b = tmp;
    }

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

    if (a > b){
        int tmp = a;
        a = b;
        b = tmp;
    }
    cout >> a >> " " >> b >> " " >> c;
    return 0;
}

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

#include <iostream>
using namespace std;

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

    cout << a << " " << b << " " << c << endl;

    return 0;
}

void swapdomya(int* x, int* y)
{
    int temp = *x;
    *x = *y;
    *y = temp;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:15: error: 'swapdomya' was not declared in this scope
    9 |     if(a > b) swapdomya(&a, &b);
      |               ^~~~~~~~~
a.cc:10:15: error: 'swapdomya' was not declared in this scope
   10 |     if(b > c) swapdomya(&b, &c);
      |               ^~~~~~~~~
a.cc:11:15: error: 'swapdomya' was not declared in this scope
   11 |     if(a > b) swapdomya(&a, &b);
      |               ^~~~~~~~~
Language: C++

#include<iostream>

using namespace std;

int main()
{

  int a, b, c;

  cin >> a >> b >> c;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:29:5: error: expected identifier before 'if'
   29 |     if ( c < b )
      |     ^~
a.cc:40:6: error: expected ']' before '}' token
   40 |     }
      |      ^
      |      ]
   41 |   }
      |   ~   
a.cc: In lambda function:
a.cc:41:3: error: expected '{' before '}' token
   41 |   }
      |   ^
a.cc: In function 'int main()':
a.cc:40:6: error: expected ';' before '}' token
   40 |     }
      |      ^
      |      ;
   41 |   }
      |   ~   
a.cc: At global scope:
a.cc:42:1: error: expected declaration before '}' token
   42 | }
      | ^
Language: C++


#include <iostream>
using namespace std;

int main(int argc, const char * argv[]) {
    
    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(int, const char**)':
a.cc:10:5: error: 'sort' was not declared in this scope; did you mean 'short'?
   10 |     sort(a,a+3);
      |     ^~~~
      |     short
Language: C++

#include <cstdio>
#include <iostream>
#include <algorithm>
#define rep2(x,from,to) for(int x=(from);(x)<(to);(x)++)
#define rep(x,to) rep2(x,0,to)
?
using namespace std;
?
int main() {
????int a[3];
????rep(i,3) {
????????cin >> a[i];
????}
????sort(a, a+3);
????rep(i,2) {
????????cout << a[i] << " ";
????}
????cout << a[3] << endl;
????return 0;
}

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

#include <iostream>
int main(){
	cin >> x >> y >> z;
	if (x > y){
		temporariness = x;
		x = y;
		y = temp;
	}
	if (y > z){
		temporariness = y;
		y = z;
		z = temp;
	}
	if (x > y){
		temporariness = y;
		x = y;
		y = x;
	}
	cout << x << " " << y << " "  << z << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    3 |         cin >> x >> y >> z;
      |         ^~~
      |         std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:3:16: error: 'x' was not declared in this scope
    3 |         cin >> x >> y >> z;
      |                ^
a.cc:3:21: error: 'y' was not declared in this scope
    3 |         cin >> x >> y >> z;
      |                     ^
a.cc:3:26: error: 'z' was not declared in this scope
    3 |         cin >> x >> y >> z;
      |                          ^
a.cc:5:17: error: 'temporariness' was not declared in this scope
    5 |                 temporariness = x;
      |                 ^~~~~~~~~~~~~
a.cc:7:21: error: 'temp' was not declared in this scope; did you mean 'tm'?
    7 |                 y = temp;
      |                     ^~~~
      |                     tm
a.cc:10:17: error: 'temporariness' was not declared in this scope
   10 |                 temporariness = y;
      |                 ^~~~~~~~~~~~~
a.cc:12:21: error: 'temp' was not declared in this scope; did you mean 'tm'?
   12 |                 z = temp;
      |                     ^~~~
      |                     tm
a.cc:15:17: error: 'temporariness' was not declared in this scope
   15 |                 temporariness = y;
      |                 ^~~~~~~~~~~~~
a.cc:19:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   19 |         cout << x << " " << y << " "  << z << endl;
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:19:47: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   19 |         cout << x << " " << y << " "  << z << endl;
      |                                               ^~~~
      |                                               std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <iostream>
int main(){
	int x, y, z, temporariness;
	cin >> x >> y >> z;
	if (x > y){
		temporariness = x;
		x = y;
		y = temp;
	}
	if (y > z){
		temporariness = y;
		y = z;
		z = temp;
	}
	if (x > y){
		temporariness = y;
		x = y;
		y = x;
	}
	cout << x << " " << y << " "  << z << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |         cin >> x >> y >> z;
      |         ^~~
      |         std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:8:21: error: 'temp' was not declared in this scope; did you mean 'tm'?
    8 |                 y = temp;
      |                     ^~~~
      |                     tm
a.cc:13:21: error: 'temp' was not declared in this scope; did you mean 'tm'?
   13 |                 z = temp;
      |                     ^~~~
      |                     tm
a.cc:20:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   20 |         cout << x << " " << y << " "  << z << endl;
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:20:47: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   20 |         cout << x << " " << y << " "  << z << endl;
      |                                               ^~~~
      |                                               std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <iostream>
int main(){
	int x, y, z, temporariness;
	cin >> x >> y >> z;
	if (x > y){
		temporariness = x;
		x = y;
		y = temporariness;
	}
	if (y > z){
		temporariness = y;
		y = z;
		z = temporariness;
	}
	if (x > y){
		temporariness = y;
		x = y;
		y = x;
	}
	cout << x << " " << y << " "  << z << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |         cin >> x >> y >> z;
      |         ^~~
      |         std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:20:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   20 |         cout << x << " " << y << " "  << z << endl;
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:20:47: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   20 |         cout << x << " " << y << " "  << z << endl;
      |                                               ^~~~
      |                                               std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~