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

#include <iostream>
using namespace std;

int mai(){
int a,b,c;
cin >> a >> b >> c;

while(1){
if(a>b)
swap(a,b);
if(b>c)
swap(b,c);

if(a<b && b < c)
break;
}

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



Compiler output:
a.cc: In function 'int mai()':
a.cc:19:1: warning: no return statement in function returning non-void [-Wreturn-type]
   19 | }
      | ^
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

#include <iostream>
using namespace std;

int main() {
  int a,b,c;
  cin >> a >>b >>c;
  
  while(1){
    
    if(a>b){
      swap(a,b);
      
    }
    if(b>c){
      swap(b,c);
      
    }
    
    if(a<b && b<c){
      break;
      
    }
    cout <<a << ' ' << b << ' ' << c << endl;
  }


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

#include <iostream>
using namespace std;

int main() {
  int a,b,c;
  cin >> a >>b >>c;
  
  while(1){
    
    if(a>b){
      swap(a,b);
      
    }
    else if(b>c){
      swap(b,c);
      
    }
    
    else if(a<b && b<c){
      break;
      
    }
    cout <<a << ' ' << b << ' ' << c << endl;
  }


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

#include <iostream>
using namespace std;

int main() {
  int a,b,c;
  cin >> a >>b >>c;
  
  while(1){
    
    if(a>b){
      swap(a,b)
      
    }
    else if(b>c){
      swap(b,c)
      
    }
    
    else if(a<b && b<c){
      break;
      
    }
    cout <<a << ' ' << b << ' ' << c << endl;
  }


Compiler output:
a.cc: In function 'int main()':
a.cc:11:16: error: expected ';' before '}' token
   11 |       swap(a,b)
      |                ^
      |                ;
   12 | 
   13 |     }
      |     ~           
a.cc:15:16: error: expected ';' before '}' token
   15 |       swap(b,c)
      |                ^
      |                ;
   16 | 
   17 |     }
      |     ~           
a.cc:24:4: error: expected '}' at end of input
   24 |   }
      |    ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#include <iostream>
using namespace std;

int main() {
  int a,b,c;
  cin >> a >>b >>c;
  
  while(1){
    
    if(a>b){
      swap(a,b)
      
    }
    else if(b>c){
      swap(b,c)
      
    }
    
    else if(a<b && b<c){
      break;
      
    }
    cout <<a << ' ' << b << ' ' << c << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:16: error: expected ';' before '}' token
   11 |       swap(a,b)
      |                ^
      |                ;
   12 | 
   13 |     }
      |     ~           
a.cc:15:16: error: expected ';' before '}' token
   15 |       swap(b,c)
      |                ^
      |                ;
   16 | 
   17 |     }
      |     ~
Language: C++

#include <iostream>
using namespace std;

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


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

#include <iostream>
#include <algorithm>

using namespace std;
int main(){
    int x[3], buf;
    for(int i = 0; i < 3; i++){
        cin >> x[i];
    }
    for(int = 2; i > 0; i--){
        for(int j = 0; j < i; j++){
            if(x[j] > x[j+1]) {
                swap(x[j], x[j+1]);
            }
        }
    }
    
    cout << x[0] << " " << x[1] << " " << x[2] << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:13: error: expected unqualified-id before '=' token
   10 |     for(int = 2; i > 0; i--){
      |             ^
a.cc:10:12: error: expected ';' before '=' token
   10 |     for(int = 2; i > 0; i--){
      |            ^~
      |            ;
a.cc:10:13: error: expected primary-expression before '=' token
   10 |     for(int = 2; i > 0; i--){
      |             ^
a.cc:10:18: error: 'i' was not declared in this scope
   10 |     for(int = 2; i > 0; i--){
      |                  ^
a.cc:10:23: error: expected ')' before ';' token
   10 |     for(int = 2; i > 0; i--){
      |        ~              ^
      |                       )
a.cc:10:25: error: 'i' was not declared in this scope
   10 |     for(int = 2; i > 0; i--){
      |                         ^
Language: C++

#include <stdio.h>

void swap(int *, int *);

void swap(int *x, int *y) {
        int tmp;

        tmp = *x;
        *x = *y;
        *y = tmp;
}

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

        if (num[1] < num[0]) {
                swap(&num[1], &num[0]);
        }

        if (num[2] < num[1]) {
                swap(&num[2], &num[1]);
        }

        if (num[1] < num[0]) {
                swap(&num[1], &num[0]);
        }

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



Compiler output:
a.cc: In function 'int main()':
a.cc:30:53: error: expected ';' before ')' token
   30 |         printf("%d %d %d\n", num[0], num[1]), num[2]));
      |                                                     ^
      |                                                     ;
Language: C++

#include <stdio.h>

void swap(int *, int *);

void swap(int *x, int *y) {
        int tmp;

        tmp = *x;
        *x = *y;
        *y = tmp;
}

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

        if (num[1] < num[0]) {
                swap(&num[1], &num[0]);
        }

        if (num[2] < num[1]) {
                swap(&num[2], &num[1]);
        }

        if (num[1] < num[0]) {
                swap(&num[1], &num[0]);
        }

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



Compiler output:
a.cc: In function 'int main()':
a.cc:30:53: error: expected ';' before ')' token
   30 |         printf("%d %d %d\n", num[0], num[1], num[2]));
      |                                                     ^
      |                                                     ;
Language: C++

#include<iostream>
using namespace std;

int main(){

	int hairetsu[3],temp;

	cin >> hairetsu[0] >> hairetsu[1] >> hairetsu[2];


	
	for(int i=0;i<2;i++)
		{
		if(hairetsu[i] < hairetsu[i+1])
			{
			}else{
			temp = hairetsu[i] 
			hairetsu[i] = hairetsu[i+1]
			hairetsu[i+1] = temp
			}
		}


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


	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:43: error: expected ';' before 'hairetsu'
   17 |                         temp = hairetsu[i]
      |                                           ^
      |                                           ;
   18 |                         hairetsu[i] = hairetsu[i+1]
      |                         ~~~~~~~~
Language: C++

#include <stdio>
using namespace std;
  
int main(void)
{
 
  int i, j, tmp;
 
  /* 数値を格納する配列 */
  int number[100];
 
  /* 数値の総数を入力 */
  int total;
  printf("入力する数値の総数 = ");
  scanf("%d", &total);
 
  /* 配列に格納する数値を入力 */
  printf("%d個の数値を入力 \n", total);
  for (i=0; i<total; ++i)
    scanf("%d", &number[i]);
 
  /* 数値を昇順にソート */
  for (i=0; i<total; ++i) {
    for (j=i+1; j<total; ++j) {
      if (number[i] > number[j]) {
        tmp =  number[i];
        number[i] = number[j];
        number[j] = tmp;
      }
    }
  }
 
  /* 昇順ソートした数値を出力 */
  printf("昇順ソートした数値\n");
  for (i=0; i<total; ++i)
    printf("%d\n", number[i]);
}



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

#include <iostream>
using namespace std;
int main(){
    int a,b,c,x,y,z;
    if(a<b){
        if(a<c){
            x = a
            if(b < c){
                y = b;
                z = c;
            }else{
                y = c;
                z = b;
            }
        }
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:18: error: expected ';' before 'if'
    7 |             x = a
      |                  ^
      |                  ;
    8 |             if(b < c){
      |             ~~    
a.cc:11:14: error: expected '}' before 'else'
   11 |             }else{
      |              ^~~~
a.cc:6:16: note: to match this '{'
    6 |         if(a<c){
      |                ^
a.cc: At global scope:
a.cc:17:1: error: expected declaration before '}' token
   17 | }
      | ^
Language: C++

#include <iostream>
using namespace std;
int main(){
    int a,b,c,x,y,z;
    if(a<b){
        if(a<c){
            x = a;
            if(b < c){
                y = b;
                z = c;
            }else{
                y = c;
                z = b;
            }
        }else{
            y = a;
            if(b<c){
              x = b
              z = c
              
            }else{
                x = c
                z = b
            }
        }
    }else{
        if(a<c){
            x = a;
            if(b < c){
                x = b;
                z = c
            }
            }else{
                x = c;
                z = b
            }
        }else{
            z = a
            if(b<c){
                x = b;
                y = c;
            }else{
                
            }
        }
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:20: error: expected ';' before 'z'
   18 |               x = b
      |                    ^
      |                    ;
   19 |               z = c
      |               ~     
a.cc:22:22: error: expected ';' before 'z'
   22 |                 x = c
      |                      ^
      |                      ;
   23 |                 z = b
      |                 ~     
a.cc:31:22: error: expected ';' before '}' token
   31 |                 z = c
      |                      ^
      |                      ;
   32 |             }
      |             ~         
a.cc:35:22: error: expected ';' before '}' token
   35 |                 z = b
      |                      ^
      |                      ;
   36 |             }
      |             ~         
a.cc:37:10: error: 'else' without a previous 'if'
   37 |         }else{
      |          ^~~~
a.cc:38:18: error: expected ';' before 'if'
   38 |             z = a
      |                  ^
      |                  ;
   39 |             if(b<c){
      |             ~~    
a.cc:42:14: error: 'else' without a previous 'if'
   42 |             }else{
      |              ^~~~
a.cc: At global scope:
a.cc:47:1: error: expected declaration before '}' token
   47 | }
      | ^
Language: C++

#include <iostream>
using namespace std;
int main(){
    int a,b,c,x,y,z;
    if(a<b){
        if(a<c){
            x = a;
            if(b < c){
                y = b;
                z = c;
            }else{
                y = c;
                z = b;
            }
        }else{
            y = a;
            if(b<c){
              x = b;
              z = c;
              
            }else{
                x = c;
                z = b;
            }
        }
    }else{
        if(a<c){
            x = a;
            if(b < c){
                x = b;
                z = c;
            }
            }else{
                x = c;
                z = b;
            }
        }else{
            z = a
            if(b<c){
                x = b;
                y = c;
            }else{
                
            }
        }
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:37:10: error: 'else' without a previous 'if'
   37 |         }else{
      |          ^~~~
a.cc:38:18: error: expected ';' before 'if'
   38 |             z = a
      |                  ^
      |                  ;
   39 |             if(b<c){
      |             ~~    
a.cc:42:14: error: 'else' without a previous 'if'
   42 |             }else{
      |              ^~~~
a.cc: At global scope:
a.cc:47:1: error: expected declaration before '}' token
   47 | }
      | ^
Language: C++

#include <iostream>
using namespace std;
int main(){
    int a,b,c,x,y,z;
    if(a<b){
        if(a<c){
            x = a;
            if(b < c){
                y = b;
                z = c;
            }else{
                y = c;
                z = b;
            }
        }else{
            y = a;
            if(b<c){
              x = b;
              z = c;
              
            }else{
                x = c;
                z = b;
            }
        }
    }else{
        if(a<c){
            x = a;
            if(b < c){
                x = b;
                z = c;
            }
            }else{
                x = c;
                z = b;
            }
        }else{
            z = a
            if(b<c){
                x = b;
                y = c;
            }else{
              x = c
              y = b;
            }
        }
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:37:10: error: 'else' without a previous 'if'
   37 |         }else{
      |          ^~~~
a.cc:38:18: error: expected ';' before 'if'
   38 |             z = a
      |                  ^
      |                  ;
   39 |             if(b<c){
      |             ~~    
a.cc:42:14: error: 'else' without a previous 'if'
   42 |             }else{
      |              ^~~~
a.cc:43:20: error: expected ';' before 'y'
   43 |               x = c
      |                    ^
      |                    ;
   44 |               y = b;
      |               ~     
a.cc: At global scope:
a.cc:48:1: error: expected declaration before '}' token
   48 | }
      | ^
Language: C++

#include <iostream>
using namespace std;
int main(){
    int a,b,c,x,y,z;
    if(a<b){
        if(a<c){
            x = a;
            if(b < c){
                y = b;
                z = c;
            }else{
                y = c;
                z = b;
            }
        }else{
            y = a;
            if(b<c){
              x = b;
              z = c;
              
            }else{
                x = c;
                z = b;
            }
        }
    }else{
        if(a<c){
            x = a;
            if(b < c){
                x = b;
                z = c;
            }
            }else{
                x = c;
                z = b;
            }
        }else{
            z = a
            if(b<c){
                x = b;
                y = c;
            }else{
              x = c;
              y = b;
            }
        }
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:37:10: error: 'else' without a previous 'if'
   37 |         }else{
      |          ^~~~
a.cc:38:18: error: expected ';' before 'if'
   38 |             z = a
      |                  ^
      |                  ;
   39 |             if(b<c){
      |             ~~    
a.cc:42:14: error: 'else' without a previous 'if'
   42 |             }else{
      |              ^~~~
a.cc: At global scope:
a.cc:48:1: error: expected declaration before '}' token
   48 | }
      | ^
Language: C++

#include <iostream>
using namespace std;
int main(){
    int a,b,c,x,y,z;
    if(a<b){
        if(a<c){
            x = a;
            if(b < c){
                y = b;
                z = c;
            }else{
                y = c;
                z = b;
            }
        }else{
            y = a;
            if(b<c){
              x = b;
              z = c;
              
            }else{
                x = c;
                z = b;
            }
        }
    }else{
        if(a<c){
            x = a;
            if(b < c){
                x = b;
                z = c;
            }
            }else{
                x = c;
                z = b;
            }
        }else{
            z = a;
            if(b<c){
                x = b;
                y = c;
            }else{
              x = c;
              y = b;
            }
        }
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:37:10: error: 'else' without a previous 'if'
   37 |         }else{
      |          ^~~~
a.cc: At global scope:
a.cc:48:1: error: expected declaration before '}' token
   48 | }
      | ^
Language: C++

#include <iostream>
using namespace std;
int main(){
    int a,b,c,x,y,z;
    if(a<b){
        if(a<c){
            x = a;
            if(b < c){
                y = b;
                z = c;
            }else{
                y = c;
                z = b;
            }
        }else{
            y = a;
            if(b<c){
              x = b;
              z = c;
              
            }else{
                x = c;
                z = b;
            }
        }
    }else{
        if(a<c){
            x = a;
            if(b < c){
                x = b;
                z = c;
            }
            }else{
                x = c;
                z = b;
            }
        }else{
            z = a;
            if(b<c){
                x = b;
                y = c;
            }else{
              x = c;
              y = b;
            }
        }
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:37:10: error: 'else' without a previous 'if'
   37 |         }else{
      |          ^~~~
a.cc: At global scope:
a.cc:48:5: error: expected unqualified-id before 'return'
   48 |     return 0;
      |     ^~~~~~
a.cc:49:1: error: expected declaration before '}' token
   49 | }
      | ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:48:38: error: expected ';' before 'return'
   48 |     cout << x << " " << y << " " << z
      |                                      ^
      |                                      ;
   49 |     return 0;
      |     ~~~~~~
Language: C++

#include<iostream>

int main(){
    int a[3], tmp;

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

    for(int i = j; i < 1; i++){
    if(a[i] > a[i+1]) {
        tmp = a[i];
        a[i] = a[i+1];
        a[i+1] = tmp;
    };
    }

    std::cout << a[0]  << a[1] << a[2] << std::endl;   
    
    return 0 ;
}


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

#include<iostream>
#include<utility>

int main(){
    int a[3], tmp;

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

    if(a[0] < a[1]) swap(a[0] < a[1]);
    if(a[1] < a[2]) swap(a[1] < a[2]);
    if(a[0] < a[1]) swap(a[0] < a[1])

    std::cout << a[0]  << a[1] << a[2] << std::endl;   
    
    return 0 ;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:21: error: 'swap' was not declared in this scope
    9 |     if(a[0] < a[1]) swap(a[0] < a[1]);
      |                     ^~~~
a.cc:9:21: note: suggested alternatives:
In file included from /usr/include/c++/14/bits/memory_resource.h:47,
                 from /usr/include/c++/14/string:68,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/tuple:2823:5: note:   'std::swap'
 2823 |     swap(tuple<_Elements...>&, tuple<_Elements...>&) = delete;
      |     ^~~~
In file included from /usr/include/c++/14/bits/exception_ptr.h:41,
                 from /usr/include/c++/14/exception:166,
                 from /usr/include/c++/14/ios:41:
/usr/include/c++/14/bits/move.h:226:5: note:   'std::swap'
  226 |     swap(_Tp& __a, _Tp& __b)
      |     ^~~~
/usr/include/c++/14/bits/move.h:226:5: note:   'std::swap'
/usr/include/c++/14/bits/exception_ptr.h:229:5: note:   'std::__exception_ptr::swap'
  229 |     swap(exception_ptr& __lhs, exception_ptr& __rhs)
      |     ^~~~
a.cc:10:21: error: 'swap' was not declared in this scope
   10 |     if(a[1] < a[2]) swap(a[1] < a[2]);
      |                     ^~~~
a.cc:10:21: note: suggested alternatives:
/usr/include/c++/14/tuple:2823:5: note:   'std::swap'
 2823 |     swap(tuple<_Elements...>&, tuple<_Elements...>&) = delete;
      |     ^~~~
/usr/include/c++/14/bits/move.h:226:5: note:   'std::swap'
  226 |     swap(_Tp& __a, _Tp& __b)
      |     ^~~~
/usr/include/c++/14/bits/move.h:226:5: note:   'std::swap'
/usr/include/c++/14/bits/exception_ptr.h:229:5: note:   'std::__exception_ptr::swap'
  229 |     swap(exception_ptr& __lhs, exception_ptr& __rhs)
      |     ^~~~
a.cc:11:21: error: 'swap' was not declared in this scope
   11 |     if(a[0] < a[1]) swap(a[0] < a[1])
      |                     ^~~~
a.cc:11:21: note: suggested alternatives:
/usr/include/c++/14/tuple:2823:5: note:   'std::swap'
 2823 |     swap(tuple<_Elements...>&, tuple<_Elements...>&) = delete;
      |     ^~~~
/usr/include/c++/14/bits/move.h:226:5: note:   'std::swap'
  226 |     swap(_Tp& __a, _Tp& __b)
      |     ^~~~
/usr/include/c++/14/bits/move.h:226:5: note:   'std::swap'
/usr/include/c++/14/bits/exception_ptr.h:229:5: note:   'std::__exception_ptr::swap'
  229 |     swap(exception_ptr& __lhs, exception_ptr& __rhs)
      |     ^~~~
Language: C++

#include<iostream>
#include<utility>

int main(){
    int a[3], tmp;

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

    if(a[0] < a[1]) swap(a[0] < a[1]);
    if(a[1] < a[2]) swap(a[1] < a[2]);
    if(a[0] < a[1]) swap(a[0] < a[1]);

    std::cout << a[0]  << a[1] << a[2] << std::endl;   
    
    return 0 ;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:21: error: 'swap' was not declared in this scope
    9 |     if(a[0] < a[1]) swap(a[0] < a[1]);
      |                     ^~~~
a.cc:9:21: note: suggested alternatives:
In file included from /usr/include/c++/14/bits/memory_resource.h:47,
                 from /usr/include/c++/14/string:68,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/tuple:2823:5: note:   'std::swap'
 2823 |     swap(tuple<_Elements...>&, tuple<_Elements...>&) = delete;
      |     ^~~~
In file included from /usr/include/c++/14/bits/exception_ptr.h:41,
                 from /usr/include/c++/14/exception:166,
                 from /usr/include/c++/14/ios:41:
/usr/include/c++/14/bits/move.h:226:5: note:   'std::swap'
  226 |     swap(_Tp& __a, _Tp& __b)
      |     ^~~~
/usr/include/c++/14/bits/move.h:226:5: note:   'std::swap'
/usr/include/c++/14/bits/exception_ptr.h:229:5: note:   'std::__exception_ptr::swap'
  229 |     swap(exception_ptr& __lhs, exception_ptr& __rhs)
      |     ^~~~
a.cc:10:21: error: 'swap' was not declared in this scope
   10 |     if(a[1] < a[2]) swap(a[1] < a[2]);
      |                     ^~~~
a.cc:10:21: note: suggested alternatives:
/usr/include/c++/14/tuple:2823:5: note:   'std::swap'
 2823 |     swap(tuple<_Elements...>&, tuple<_Elements...>&) = delete;
      |     ^~~~
/usr/include/c++/14/bits/move.h:226:5: note:   'std::swap'
  226 |     swap(_Tp& __a, _Tp& __b)
      |     ^~~~
/usr/include/c++/14/bits/move.h:226:5: note:   'std::swap'
/usr/include/c++/14/bits/exception_ptr.h:229:5: note:   'std::__exception_ptr::swap'
  229 |     swap(exception_ptr& __lhs, exception_ptr& __rhs)
      |     ^~~~
a.cc:11:21: error: 'swap' was not declared in this scope
   11 |     if(a[0] < a[1]) swap(a[0] < a[1]);
      |                     ^~~~
a.cc:11:21: note: suggested alternatives:
/usr/include/c++/14/tuple:2823:5: note:   'std::swap'
 2823 |     swap(tuple<_Elements...>&, tuple<_Elements...>&) = delete;
      |     ^~~~
/usr/include/c++/14/bits/move.h:226:5: note:   'std::swap'
  226 |     swap(_Tp& __a, _Tp& __b)
      |     ^~~~
/usr/include/c++/14/bits/move.h:226:5: note:   'std::swap'
/usr/include/c++/14/bits/exception_ptr.h:229:5: note:   'std::__exception_ptr::swap'
  229 |     swap(exception_ptr& __lhs, exception_ptr& __rhs)
      |     ^~~~
Language: C++

#include<iostream>
#include<utility>

int main(){
    int a[3], tmp;

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

    if(a[0] < a[1]) swap(a[0], a[1]);
    if(a[1] < a[2]) swap(a[1], a[2]);
    if(a[0] < a[1]) swap(a[0], a[1]);

    std::cout << a[0]  << a[1] << a[2] << std::endl;   
    
    return 0 ;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:21: error: 'swap' was not declared in this scope
    9 |     if(a[0] < a[1]) swap(a[0], a[1]);
      |                     ^~~~
a.cc:9:21: note: suggested alternatives:
In file included from /usr/include/c++/14/bits/memory_resource.h:47,
                 from /usr/include/c++/14/string:68,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/tuple:2823:5: note:   'std::swap'
 2823 |     swap(tuple<_Elements...>&, tuple<_Elements...>&) = delete;
      |     ^~~~
In file included from /usr/include/c++/14/bits/exception_ptr.h:41,
                 from /usr/include/c++/14/exception:166,
                 from /usr/include/c++/14/ios:41:
/usr/include/c++/14/bits/move.h:226:5: note:   'std::swap'
  226 |     swap(_Tp& __a, _Tp& __b)
      |     ^~~~
/usr/include/c++/14/bits/move.h:226:5: note:   'std::swap'
/usr/include/c++/14/bits/exception_ptr.h:229:5: note:   'std::__exception_ptr::swap'
  229 |     swap(exception_ptr& __lhs, exception_ptr& __rhs)
      |     ^~~~
a.cc:10:21: error: 'swap' was not declared in this scope
   10 |     if(a[1] < a[2]) swap(a[1], a[2]);
      |                     ^~~~
a.cc:10:21: note: suggested alternatives:
/usr/include/c++/14/tuple:2823:5: note:   'std::swap'
 2823 |     swap(tuple<_Elements...>&, tuple<_Elements...>&) = delete;
      |     ^~~~
/usr/include/c++/14/bits/move.h:226:5: note:   'std::swap'
  226 |     swap(_Tp& __a, _Tp& __b)
      |     ^~~~
/usr/include/c++/14/bits/move.h:226:5: note:   'std::swap'
/usr/include/c++/14/bits/exception_ptr.h:229:5: note:   'std::__exception_ptr::swap'
  229 |     swap(exception_ptr& __lhs, exception_ptr& __rhs)
      |     ^~~~
a.cc:11:21: error: 'swap' was not declared in this scope
   11 |     if(a[0] < a[1]) swap(a[0], a[1]);
      |                     ^~~~
a.cc:11:21: note: suggested alternatives:
/usr/include/c++/14/tuple:2823:5: note:   'std::swap'
 2823 |     swap(tuple<_Elements...>&, tuple<_Elements...>&) = delete;
      |     ^~~~
/usr/include/c++/14/bits/move.h:226:5: note:   'std::swap'
  226 |     swap(_Tp& __a, _Tp& __b)
      |     ^~~~
/usr/include/c++/14/bits/move.h:226:5: note:   'std::swap'
/usr/include/c++/14/bits/exception_ptr.h:229:5: note:   'std::__exception_ptr::swap'
  229 |     swap(exception_ptr& __lhs, exception_ptr& __rhs)
      |     ^~~~
Language: C++

#include <stdio.h>

int main()
{
	int a=0, b=0, c=0;

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

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

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

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

	return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:14:52: error: 'd' was not declared in this scope
   14 |                         printf("%d %d %d\n", a, c, d);
      |                                                    ^
Language: C++

#include<stdio.h>

int main(void){
int a,b,c;
    int tmp;
    scanf（"%d%d%d ",&a,&b,&c）;
    if(a>b){
        tmp = a;
        a = b;
        b = tmp;
    }
    if(b>c){
        tmp = b;
        b = c;
        c = tmp;
    }
    if(a>b){
        tmp = a;
        a = b;
        b = tmp;
    }
    printf("%d %d %d\n",a,b,c);
     return(0)
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'scanf\U0000ff08' was not declared in this scope; did you mean 'scanf'?
    6 |     scanf（"%d%d%d ",&a,&b,&c）;
      |     ^~~~~~~
      |     scanf
a.cc:23:15: error: expected ';' before '}' token
   23 |      return(0)
      |               ^
      |               ;
   24 | }
      | ~
Language: C++

#include <iostream>
#include <algorithm>
#include <utility>
#include <xstring>

using namespace std;

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



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

#include <iostream>
#include <xstring>

using namespace std;

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



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


#include <iostream>
#include <algorithm>
#include <utility>
#include <xstring>

using namespace std;

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

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


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


#include <iostream>
#include <algorithm>
#include <utility>


using namespace std;

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

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


Compiler output:
a.cc:9:1: error: 'nt' does not name a type; did you mean 'int'?
    9 | nt main()
      | ^~
      | int
Language: C++


#include <iostream>
#include <xstring>

using namespace std;

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

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


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


#include<iostream>
#include<xstring>

using namespace std;

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

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


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

#include <iostream>
using namespace std;

int main(){
    int a , b , c , t;
    cin >> a >> b >> c;
    
    if ( a > b ) { a = t; a = b; b = t;}
    if ( b < c ) { b = t; b = c; c = t;}
    if ( a > b ) { a = t; 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 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   12 |     cout << a << " " << b << " " < c << endl;
      |                                    ~~^~~~~~~
Language: C++

#include<iostream>
using namespace std;

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


	return 0;



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

#include<iostream>
#include<stdio.h>
#include<string>

using namespace std;

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



Compiler output:
a.cc: In function 'int main()':
a.cc:12:16: error: expected ';' before 'a'
   12 |         tmp = a
      |                ^
      |                ;
   13 |         a = b
      |         ~       
a.cc:17:16: error: expected ';' before 'b'
   17 |         tmp = b
      |                ^
      |                ;
   18 |         b = c
      |         ~       
a.cc:22:16: error: expected ';' before 'a'
   22 |         tmp = a
      |                ^
      |                ;
   23 |         a = b
      |         ~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
    

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: expected ';' before ':' token
    7 | cin>>a>>b>>c:
      |             ^
      |             ;
a.cc:9:1: error: 'else' without a previous 'if'
    9 | else (b<c)swap(b,c);
      | ^~~~
a.cc:9:11: error: expected ';' before 'swap'
    9 | else (b<c)swap(b,c);
      |           ^~~~
      |           ;
a.cc:10:14: error: expected ';' before '}' token
   10 | cout<<a<<b<<c
      |              ^
      |              ;
   11 | }
      | ~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
    

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: expected ';' before ':' token
    7 | cin>>a>>b>>c:
      |             ^
      |             ;
a.cc:9:1: error: 'else' without a previous 'if'
    9 | else if (b<c)swap(b,c);
      | ^~~~
a.cc:10:14: error: expected ';' before '}' token
   10 | cout<<a<<b<<c
      |              ^
      |              ;
   11 | }
      | ~
Language: C++

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

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


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

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

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


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

#include<iostream>
#include<algorithm>
using namespace std;
int main(){
    int a,b,c,temp;
    cin>>a>>b>>c;
    int d[3]=[a,b,c]
    sort(d, d + 3, cmp);
    cout<<d[0]<<" "<<d[1]<<" "<<d[2]<<endl;
    return 0;
}


Compiler output:
a.cc: In lambda function:
a.cc:8:5: error: expected '{' before 'sort'
    8 |     sort(d, d + 3, cmp);
      |     ^~~~
a.cc: In function 'int main()':
a.cc:7:14: error: array must be initialized with a brace-enclosed initializer
    7 |     int d[3]=[a,b,c]
      |              ^~~~~~~
Language: C++

#include<iostream>
#include<algorithm>
using namespace std;
int main(){
    int a,b,c,temp;
    cin>>a>>b>>c;
    int d[3]=[a,b,c];
    sort(d, d + 3, cmp);
    cout<<d[0]<<" "<<d[1]<<" "<<d[2]<<endl;
    return 0;
}


Compiler output:
a.cc: In lambda function:
a.cc:7:21: error: expected '{' before ';' token
    7 |     int d[3]=[a,b,c];
      |                     ^
a.cc: In function 'int main()':
a.cc:7:14: error: array must be initialized with a brace-enclosed initializer
    7 |     int d[3]=[a,b,c];
      |              ^~~~~~~
a.cc:8:20: error: 'cmp' was not declared in this scope
    8 |     sort(d, d + 3, cmp);
      |                    ^~~
Language: C++

#include<iostream>
#include<algorithm>
bool cmp (const int a, const int b)
{
    return a > b;
}
using namespace std;
int main(){
    int a,b,c,temp;
    cin>>a>>b>>c;
    int d[3]=[a,b,c];
    sort(d, d + 3, cmp);
    cout<<d[0]<<" "<<d[1]<<" "<<d[2]<<endl;
    return 0;
}


Compiler output:
a.cc: In lambda function:
a.cc:11:21: error: expected '{' before ';' token
   11 |     int d[3]=[a,b,c];
      |                     ^
a.cc: In function 'int main()':
a.cc:11:14: error: array must be initialized with a brace-enclosed initializer
   11 |     int d[3]=[a,b,c];
      |              ^~~~~~~
Language: C++

#include <iostream>
#include<vector>
#include<cmath>
#include<algorithm>
using namespace std;
#define loop(i,n) for(int i = 0; i < (n); i++)
#define loops(i,f,n) for(int i = (f); i < (n); i++)
#define INF 1e9
int main()
{
    int a,b,c;
    cin>>a>>b>>c;
    cout<<min(min(a,b),c)<<" "<<a+b+c-(min(min(a,b),c)+<max(max(a,b),c))<<" "<<max(max(a,b),c)<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:56: error: expected primary-expression before '<' token
   13 |     cout<<min(min(a,b),c)<<" "<<a+b+c-(min(min(a,b),c)+<max(max(a,b),c))<<" "<<max(max(a,b),c)<<endl;
      |                                                        ^
Language: C++

#include <iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:16:21: error: 's' was not declared in this scope
   16 |                 c = s;
      |                     ^
a.cc: At global scope:
a.cc:18:9: error: expected declaration before '}' token
   18 |         } if (b > c){
      |         ^
a.cc:18:11: error: expected unqualified-id before 'if'
   18 |         } if (b > c){
      |           ^~
a.cc:23:9: error: 'cout' does not name a type
   23 |         cout << a << " " << b <<" "<< c << endl;
      |         ^~~~
a.cc:26:9: error: expected declaration before '}' token
   26 |         }
      |         ^
a.cc:27:9: error: expected unqualified-id before 'return'
   27 |         return 0;
      |         ^~~~~~
Language: C++

#include <iostream>
using namespace std;

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


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

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int[] num = new int[3];

		for (int i = 0; i < num.length; i++) {
			num[i] = scanner.nextInt();
		}

		for (int i = 0; i < num.length - 1; i++) {
			for (int j = 1; j < num.length; j++) {
				if (num[i] > num[j]) {
					int buf = num[i];
					num[i] = num[j];
					num[j] = buf;
				}
			}
		}

		for (int i = 0; i < num.length; i++) {
			System.out.print(num[i]);
			if (i < num.length - 1)
				System.out.print(" ");
			else
				System.out.print("\n");
		}
	}
}



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

#include<iostream>
usgin namespace std;

int main(){
  int a,b,c;
  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;
  }
}


Compiler output:
a.cc:2:1: error: 'usgin' does not name a type
    2 | usgin namespace std;
      | ^~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin >> a >> b >> c;
      |   ^~~
      |   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:6: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |      cout << a << b << c << 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:8:29: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |      cout << a << b << c << 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)
      |     ^~~~
a.cc:9:4: error: 'elseif' was not declared in this scope
    9 |   }elseif(a<c && c<b){
      |    ^~~~~~
Language: C++

#include<iostream>
usgin namespace std;

int main(){
  int a,b,c;
  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:2:1: error: 'usgin' does not name a type
    2 | usgin namespace std;
      | ^~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin >> a >> b >> c;
      |   ^~~
      |   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:6: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |      cout << a << b << c << 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:8:29: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |      cout << a << b << c << 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)
      |     ^~~~
a.cc:9:4: error: 'elseif' was not declared in this scope
    9 |   }elseif(a<c && c<b){
      |    ^~~~~~
Language: C++

#include<iostream>
usgin namespace std;

int main(){
  int a,b,c;
  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;
  }
}


Compiler output:
a.cc:2:1: error: 'usgin' does not name a type
    2 | usgin namespace std;
      | ^~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin >> a >> b >> c;
      |   ^~~
      |   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:6: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |      cout << a << b << c << 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:8:29: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |      cout << a << b << c << 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)
      |     ^~~~
a.cc:9:4: error: 'elseif' was not declared in this scope
    9 |   }elseif(a<c & c<b){
      |    ^~~~~~