criyle/codenet-compile-errors huggingface dataset:
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);
    }
    if (b>c){
     swap (b,c);
    if (a>b){
     swap (a,b);
    }
    cout<<a<<" "<<b<<" "<<c<<endl;
}


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

using namespace std;

int main(){

	int a, b, c;

	cin>>a>>b>>c;

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

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

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

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

	
	return 0;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'cin' was not declared in this scope
    7 |         cin>>a>>b>>c;
      |         ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:9:19: error: 'swap' was not declared in this scope
    9 |         if(a > b) swap(a, b);
      |                   ^~~~
a.cc:11:19: error: 'swap' was not declared in this scope
   11 |         if(b > c) swap(b, c);
      |                   ^~~~
a.cc:13:19: error: 'swap' was not declared in this scope
   13 |         if(a > b) swap(a, b);
      |                   ^~~~
a.cc:15:9: error: 'cout' was not declared in this scope
   15 |         cout<<a<<" "<<b<<" "<<c<<endl;
      |         ^~~~
a.cc:15:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:15:34: error: 'endl' was not declared in this scope
   15 |         cout<<a<<" "<<b<<" "<<c<<endl;
      |                                  ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: 'cin' was not declared in this scope
    4 |         cin >> a, b, c;
      |         ^~~
a.cc:7:25: error: 'cout' was not declared in this scope
    7 |                         cout << c << " " << b << " " << a << endl;
      |                         ^~~~
a.cc:7:62: error: 'endl' was not declared in this scope
    7 |                         cout << c << " " << b << " " << a << endl;
      |                                                              ^~~~
a.cc:10:25: error: 'cout' was not declared in this scope
   10 |                         cout << b << " " << c << " " << a << endl;
      |                         ^~~~
a.cc:10:62: error: 'endl' was not declared in this scope
   10 |                         cout << b << " " << c << " " << a << endl;
      |                                                              ^~~~
a.cc:15:25: error: 'cout' was not declared in this scope
   15 |                         cout << c << " " << a << " " << b << endl;
      |                         ^~~~
a.cc:15:62: error: 'endl' was not declared in this scope
   15 |                         cout << c << " " << a << " " << b << endl;
      |                                                              ^~~~
a.cc:18:25: error: 'cout' was not declared in this scope
   18 |                         cout << a << " " << c << " " << b << endl;
      |                         ^~~~
a.cc:18:62: error: 'endl' was not declared in this scope
   18 |                         cout << a << " " << c << " " << b << endl;
      |                                                              ^~~~
a.cc:23:25: error: 'cout' was not declared in this scope
   23 |                         cout << b << " " << a << " " << c << endl;
      |                         ^~~~
a.cc:23:62: error: 'endl' was not declared in this scope
   23 |                         cout << b << " " << a << " " << c << endl;
      |                                                              ^~~~
a.cc:26:25: error: 'cout' was not declared in this scope
   26 |                         cout << a << " " << b << " " << c << endl;
      |                         ^~~~
a.cc:26:62: error: 'endl' was not declared in this scope
   26 |                         cout << a << " " << b << " " << c << endl;
      |                                                              ^~~~
Language: C++

// 23.cpp : アプリケーションのエントリ ポイントを定義します。
//
#include "stdafx.h"
#include<iostream>
using namespace std;

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




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

// 23.cpp : アプリケーションのエントリ ポイントを定義します。
//
#include "stdafx.h"
#include<iostream>
using namespace std;

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


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

#include "stdafx.h"
#include<iostream>
using namespace std;

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


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

#include<stdio.h>
void sort2(int *a, int *b) {
		if (*a > *b) {
				int temp = *b;
				* b = *a;
				* a = temp;
		}
}
void sort3(int *a, int *b, int *c) {
		sort2(a, b);
		sort2(b, c);
		sort2(a, b);
}
int main() {
		int first, second, third;
		printf("Input first integer:");
		scanf_s("%d", &first);
		printf("Input second integer:");
		scanf_s("%d", &second);
		printf("Input third integer:");
		scanf_s("%d", &third);
		sort3(&first, &second, &third);
		printf("The number is ascending order: %d,%d and %d", first, second, third);
		return 0;
}



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

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

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


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

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

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



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

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

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



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

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

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


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

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

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


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

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

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

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

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



Compiler output:
a.cc: In function 'int main()':
a.cc:11:26: error: request for member 'b' in 'a', which is of non-class type 'int'
   11 |         if(a > b) swap(a.b);
      |                          ^
Language: C++

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

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

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

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

	return 0

	}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:26: error: request for member 'b' in 'a', which is of non-class type 'int'
   11 |         if(a > b) swap(a.b);
      |                          ^
a.cc:15:17: error: expected ';' before '}' token
   15 |         return 0
      |                 ^
      |                 ;
   16 | 
   17 |         }
      |         ~
Language: C++

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

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

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

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

	return 0;

	}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:26: error: request for member 'b' in 'a', which is of non-class type 'int'
   11 |         if(a > b) swap(a.b);
      |                          ^
Language: C++

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

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

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

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

	return 0;

	}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:27: error: request for member 'b' in 'a', which is of non-class type 'int'
   11 |         if(a > b) swap(a. b);
      |                           ^
Language: C++

#include <iostream>
 int main() {
  int a, b, c;
   std::cin >> a >> b >> c;

    if (a < b && b < c) {                               //a,b,c
     std::cout << a << " " << b << " " << c <<std::endl;
    } else if (c < b && b < a) {                        //c,b,a
     std::cout << c << " " << b << " " << a <<std::endl;
    } else if (a < c && c < b ) {                       //a,c,b
     std::cout << a << " " << c << " " << b <<std::endl;
    } else if (c < a && a < b) {                        //c,a,b
     std::cout << c << " " << a << " " << b <<std::endl;
    } else if (b < a && a < c) {                        //b,a,c
     std::cout << b << " " << a << " " << c <<std::endl;
    } else if (b < c && c < a) {                        //b,c,a
     std::cout << b << " " << c << " " << a <<std::endl;





 return 0;





}


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

#include <iostream>
 int main() {
  int a, b, c;
   std::cin >> a >> b >> c;

    if (a < b && b < c) {                               
     std::cout << a << " " << b << " " << c <<std::endl;
    } else if (c < b && b < a) {                        
     std::cout << c << " " << b << " " << a <<std::endl;
    } else if (a < c && c < b ) {                       
     std::cout << a << " " << c << " " << b <<std::endl;
    } else if (c < a && a < b) {                       
     std::cout << c << " " << a << " " << b <<std::endl;
    } else if (b < a && a < c) {                       
     std::cout << b << " " << a << " " << c <<std::endl;
    } else if (b < c && c < a) {                      
     std::cout << b << " " << c << " " << a <<std::endl;





 return 0;





}


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

#include <iostream>
 int main() {
  int a, b, c;
   std::cin >> a >> b >> c;

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

     std::cout << a <, " " << b << " " << c <<std::endl;




 return 0;






}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:12: error: expected primary-expression before '>' token
    6 |     if (a => c) {
      |            ^
a.cc:9:12: error: expected primary-expression before '>' token
    9 |     if (a => b) {
      |            ^
a.cc:12:12: error: expected primary-expression before '>' token
   12 |     if (b => c) {
      |            ^
a.cc:16:22: error: expected primary-expression before ',' token
   16 |      std::cout << a <, " " << b << " " << c <<std::endl;
      |                      ^
a.cc:16:28: error: invalid operands of types 'const char [2]' and 'int' to binary 'operator<<'
   16 |      std::cout << a <, " " << b << " " << c <<std::endl;
      |                        ~~~ ^~ ~
      |                        |      |
      |                        |      int
      |                        const char [2]
Language: C++

#include <iostream>
 int main() {
  int a, b, c;
   std::cin >> a >> b >> c;

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

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




 return 0;






}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:12: error: expected primary-expression before '>' token
    6 |     if (a => c) {
      |            ^
a.cc:9:12: error: expected primary-expression before '>' token
    9 |     if (a => b) {
      |            ^
a.cc:12:12: error: expected primary-expression before '>' token
   12 |     if (b => c) {
      |            ^
Language: C++

#include <iostream>
 int main() {
  int a, b, c;
   std::cin >> a >> b >> c;

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

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




 return 0;






}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:12: error: expected primary-expression before '>' token
    6 |     if (a => c) {
      |            ^
a.cc:9:12: error: expected primary-expression before '>' token
    9 |     if (a => b) {
      |            ^
a.cc:12:12: error: expected primary-expression before '>' token
   12 |     if (b => c) {
      |            ^
Language: C++

#include <iostream>
 int main() {
  int a, b, c;
   std::cin >> a >> b >> c;

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

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




 return 0;






}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:12: error: expected primary-expression before '>' token
    6 |     if (a => c) {
      |            ^
a.cc:9:18: error: expected primary-expression before '>' token
    9 |      else if (a => b) {
      |                  ^
a.cc:12:17: error: expected primary-expression before '>' token
   12 |     else if (b => c) {
      |                 ^
Language: C++

#include <iostream>
 int main() {
  int a, b, c;
   std::cin >> a >> b >> c;

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

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




 return 0;






}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:12: error: expected primary-expression before '>' token
    6 |     if (a => c) {
      |            ^
a.cc:9:18: error: expected primary-expression before '>' token
    9 |      else if (a => b) {
      |                  ^
a.cc:12:17: error: expected primary-expression before '>' token
   12 |     else if (b => c) {
      |                 ^
Language: C++

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

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

  cout<<a<<" "<<b<<" "<<c<<endl;
  return 0;
}




Compiler output:
a.cc: In function 'int main()':
a.cc:6:13: error: expected initializer before 'std'
    6 |   int a,b,c std;
      |             ^~~
a.cc:7:14: error: 'c' was not declared in this scope
    7 |   cin>>a>>b>>c;
      |              ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:21: error: request for member 'c' in 'b', which is of non-class type 'int'
   10 |     if(b<c) swap(b. c);
      |                     ^
Language: C++

//itp_topic2_c
#include <bits/stdc++.h>
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;
    
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:23: error: request for member 'c' in 'a', which is of non-class type 'int'
   10 |     if(a > c) swap(a. c);
      |                       ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:23: error: request for member 'c' in 'a', which is of non-class type 'int'
   10 |     if(a > b) swap(a. c);
      |                       ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:23: error: request for member 'b' in 'a', which is of non-class type 'int'
   10 |     if(a > b) swap(a. b);
      |                       ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:11:23: error: request for member 'b' in 'a', which is of non-class type 'int'
   11 |     if(a > b) swap(a. b);
      |                       ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:11:23: error: request for member 'b' in 'a', which is of non-class type 'int'
   11 |     if(a > b) swap(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);
    if(b > c) swap (b,c);
    if(a > b) swap (a, b);
    cout<<a<<" "<<b<<" "<<c<<endl

}


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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 't' was not declared in this scope
    6 | if(a>b){t=a,a=b,b=t;};
      |         ^
a.cc:7:9: error: 't' was not declared in this scope
    7 | if(b>c){t=b,b=c,c=t;};
      |         ^
a.cc:8:9: error: 't' was not declared in this scope
    8 | if(a>c){t=a,a=c,c=t;};
      |         ^
Language: C++

#include<iostream>
using namespace std;
int main()
{
int a,b,c;
cin>>a>>b>>c;

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

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






Compiler output:
a.cc: In function 'int main()':
a.cc:19:1: error: expected '}' before 'else'
   19 | else if(a>=c) cout<<c<<" "<<a<<" "<<b<<endl;
      | ^~~~
a.cc:18:14: note: to match this '{'
   18 | else if(b>=c){
      |              ^
a.cc: At global scope:
a.cc:23:1: error: expected unqualified-id before 'return'
   23 | return 0;
      | ^~~~~~
a.cc:24:1: error: expected declaration before '}' token
   24 | }
      | ^
Language: C++

#include<iostream>
using namespace std;
int main()
{
int a,b,c;
cin>>a>>b>>c;

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

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






Compiler output:
a.cc: In function 'int main()':
a.cc:19:1: error: expected '}' before 'else'
   19 | else if(a>=c) cout<<c<<" "<<a<<" "<<b<<endl;
      | ^~~~
a.cc:18:13: note: to match this '{'
   18 | else if(b>c){
      |             ^
a.cc: At global scope:
a.cc:23:1: error: expected unqualified-id before 'return'
   23 | return 0;
      | ^~~~~~
a.cc:24:1: error: expected declaration before '}' token
   24 | }
      | ^
Language: C++

import java.util.Scanner;
public class Main {
    public static void main(String[] args){
        Scanner sc=new Scanner(System.in);
        int a,b,c,d;
        a=sc.nextInt();
        b=sc.nextInt();
        c=sc.nextInt();
        if(a>b){
        	d=a;
        	a=b;
        	b=d;
        }
        if(b>c){
        	d=b;
        	b=c;
        	c=d;
        }
        if(a>b){
        	d=a;
        	a=b;
        	b=d;
        }
        	System.out.println("No");
        sc.close();
        }
}


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

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


int _tmain()
{
	int rowmaxidx=3;
	char input[20];
	char output[20];
	char num[3][6];
	int out[3];
	int temp;
	
	fgets(input,sizeof(input),stdin);

	int idx=0;
	int row=0;
	for(int i=0;i<sizeof(input);i++){
		if(input[i] == '\0' || input[i] == '\n'){
			num[row][idx] = '\0';
			break;
		}
		if(input[i] != ' '){
			num[row][idx++] = input[i];
		}else{
			num[row][idx] = '\0';
			idx=0;
			row++;
		}
	}

	for (int i=0;i<rowmaxidx;i++){
		out[i] = std::atoi(num[i]);
	}

	for(int i=0;i<rowmaxidx;i++){
		for(int l=0;l<rowmaxidx;l++){
			if(i==l) break;

			if(out[i] < out[l]){
				temp = out[i];
				out[i] = out[l];
				out[l] = temp;
			}
		}
	}

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

	return 0;
}




Compiler output:
/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 <stdio.h>
#include <string>


int _tmain()
{
	int rowmaxidx=3;
	char input[20];
	char output[20];
	char num[3][6];
	int out[3];
	int temp;
	
	fgets(input,sizeof(input),stdin);

	int idx=0;
	int row=0;
	for(int i=0;i<sizeof(input);i++){
		if(input[i] == '\0' || input[i] == '\n'){
			num[row][idx] = '\0';
			break;
		}
		if(input[i] != ' '){
			num[row][idx++] = input[i];
		}else{
			num[row][idx] = '\0';
			idx=0;
			row++;
		}
	}

	for (int i=0;i<rowmaxidx;i++){
		out[i] = (int)num[i];
	}

	for(int i=0;i<rowmaxidx;i++){
		for(int l=0;l<rowmaxidx;l++){
			if(i==l) break;

			if(out[i] < out[l]){
				temp = out[i];
				out[i] = out[l];
				out[l] = temp;
			}
		}
	}

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

	return 0;
}




Compiler output:
a.cc: In function 'int _tmain()':
a.cc:33:26: error: cast from 'char*' to 'int' loses precision [-fpermissive]
   33 |                 out[i] = (int)num[i];
      |                          ^~~~~~~~~~~
Language: C++

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


int main()
{
	int rowmaxidx=3;
	char input[20];
	char output[20];
	char num[3][6];
	int out[3];
	int temp;
	
	fgets(input,sizeof(input),stdin);

	int idx=0;
	int row=0;
	for(int i=0;i<sizeof(input);i++){
		if(input[i] == '\0' || input[i] == '\n'){
			num[row][idx] = '\0';
			break;
		}
		if(input[i] != ' '){
			num[row][idx++] = input[i];
		}else{
			num[row][idx] = '\0';
			idx=0;
			row++;
		}
	}

	for (int i=0;i<rowmaxidx;i++){
		out[i] = (int)num[i];
	}

	for(int i=0;i<rowmaxidx;i++){
		for(int l=0;l<rowmaxidx;l++){
			if(i==l) break;

			if(out[i] < out[l]){
				temp = out[i];
				out[i] = out[l];
				out[l] = temp;
			}
		}
	}

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

	return 0;
}




Compiler output:
a.cc: In function 'int main()':
a.cc:33:26: error: cast from 'char*' to 'int' loses precision [-fpermissive]
   33 |                 out[i] = (int)num[i];
      |                          ^~~~~~~~~~~
Language: C++

//itp_topic2_c
#include<bits/stdc++.h>
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: In function 'int main()':
a.cc:7:17: error: expected ';' before 'if'
    7 |     cin>>a>>b>>c
      |                 ^
      |                 ;
    8 |     if(a > b) swap(a, b)
      |     ~~
Language: C++

#include<bits/stdc+.h>
using namespace std;
int main(){
    int arr[3];
    for(int =0 ;i<3;++i)
    cin>>arr[i];
    sort(arr,arr+3);
     for(int =0 ;i<3;++i)
    cout<<arr[i]<<" ";
    return 0;
}


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

#include<bits/stdc++.h>
using namespace std;
int main(){
    int arr[3];
    for(int =0 ;i<3;++i)
    cin>>arr[i];
    sort(arr,arr+3);
     for(int =0 ;i<3;++i)
    cout<<arr[i]<<" ";
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:13: error: expected unqualified-id before '=' token
    5 |     for(int =0 ;i<3;++i)
      |             ^
a.cc:5:12: error: expected ';' before '=' token
    5 |     for(int =0 ;i<3;++i)
      |            ^~
      |            ;
a.cc:5:13: error: expected primary-expression before '=' token
    5 |     for(int =0 ;i<3;++i)
      |             ^
a.cc:5:17: error: 'i' was not declared in this scope
    5 |     for(int =0 ;i<3;++i)
      |                 ^
a.cc:5:20: error: expected ')' before ';' token
    5 |     for(int =0 ;i<3;++i)
      |        ~           ^
      |                    )
a.cc:5:23: error: 'i' was not declared in this scope
    5 |     for(int =0 ;i<3;++i)
      |                       ^
a.cc:8:14: error: expected unqualified-id before '=' token
    8 |      for(int =0 ;i<3;++i)
      |              ^
a.cc:8:13: error: expected ';' before '=' token
    8 |      for(int =0 ;i<3;++i)
      |             ^~
      |             ;
a.cc:8:14: error: expected primary-expression before '=' token
    8 |      for(int =0 ;i<3;++i)
      |              ^
a.cc:8:21: error: expected ')' before ';' token
    8 |      for(int =0 ;i<3;++i)
      |         ~           ^
      |                     )
Language: C++

#include <iostream>
using namespace std;

int main(){
int a[3];
int i = 0,b;

for (i; i < 2; i++){
if (a[i] >a [i+1]){
b= a[i];
a[i] = a[i+1]
a[i+1] = b;
}
}

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


Compiler output:
a.cc: In function 'int main()':
a.cc:11:14: error: expected ';' before 'a'
   11 | a[i] = a[i+1]
      |              ^
      |              ;
   12 | a[i+1] = b;
      | ~
Language: C++

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

cout << a[0] << " " << a[1] << " " << a[2];
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:2: error: expected '}' at end of input
   17 | }
      |  ^
a.cc:8:27: note: to match this '{'
    8 | for (int i =2; 0 < i; i--){
      |                           ^
a.cc:17:2: error: expected '}' at end of input
   17 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

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


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

#include<cstdio>
#include<algorithm>

using namespace std;

int main(){
  int a[];
  if (int i = 0; i < 3; i++){
    scanf("%d",&a[i]);
  }
  sort(a, a + 3);
  printf("%d %d %d\n",a[1],a[2],a[3]);
  retuen 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: storage size of 'a' isn't known
    7 |   int a[];
      |       ^
a.cc:8:23: error: expected ')' before ';' token
    8 |   if (int i = 0; i < 3; i++){
      |      ~                ^
      |                       )
a.cc:8:25: error: 'i' was not declared in this scope
    8 |   if (int i = 0; i < 3; i++){
      |                         ^
a.cc:13:3: error: 'retuen' was not declared in this scope
   13 |   retuen 0;
      |   ^~~~~~
Language: C++

#include<cstdio>
#include<algorithm>

using namespace std;

int main(){
  int a[3];
  if (int i = 0; i < 3; i++){
    scanf("%d",&a[i]);
  }
  sort(a, a + 3);
  printf("%d %d %d\n",a[1],a[2],a[3]);
  retuen 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:23: error: expected ')' before ';' token
    8 |   if (int i = 0; i < 3; i++){
      |      ~                ^
      |                       )
a.cc:8:25: error: 'i' was not declared in this scope
    8 |   if (int i = 0; i < 3; i++){
      |                         ^
a.cc:13:3: error: 'retuen' was not declared in this scope
   13 |   retuen 0;
      |   ^~~~~~
Language: C++

#include<iostream>
using namespace std;

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

    return 0;
}



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

#include<iostream>

using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:31:5: error: expected '}' at end of input
   31 |    }
      |     ^
a.cc:5:11: note: to match this '{'
    5 | int main(){
      |           ^
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;
	}
	if(a<c && c<b){
		cout<<a<<" "<<c<<" "<<b<<endl;
	}
	if(b<a && a<c){
		cout<<b<<" "<<a<<" "<<c<<endl;
	}
	if(b<c && c<a){
		cout<<b<<" "<<c<<" "<<a<<endl;
	}
	if(c<a && a<b){
		cout<<c<<" "<<a<<" "<<b<<endl;
	}
	if(c<b && b<a){
		cout<<c<<" "<<b<<" "<<a<<endl;
	}
}
return 0;


Compiler output:
a.cc:25:1: error: expected unqualified-id before 'return'
   25 | return 0;
      | ^~~~~~
Language: C++

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




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

//============================================================================
// Name        : kurk.cpp
// Author      :
// Version     :
// Copyright   : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================

#include <iostream>
using namespace std;

int main() {

	int a,b,c,d;

	cin>>a>>b>>c;

	if(a>b){

		d=a;
		a=b;
		b=d;
	}else if(b>c){
		d=b;
		b=c;
		c=d
	}
	cout<<a<<""<<b<<""<<c;
	return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:26:20: error: expected ';' before '}' token
   26 |                 c=d
      |                    ^
      |                    ;
   27 |         }
      |         ~
Language: C++

#include<iostream>
using namespace std;

int main(){
    int a,b,c,first,second,third;
    cin >> a >>b >>c;
    first = a;
    second = b;
    third = c;
    if(first>second){
        first = b;
        second = a;
    }
    if(second>third){
        third =second;
        second = c;
    }
    if(first>second){
        a = first;
        first = second;
        second = first;
    }

    cout << first << " " << second << " " third << endl;

    

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:24:42: error: expected ';' before 'third'
   24 |     cout << first << " " << second << " " third << endl;
      |                                          ^~~~~~
      |                                          ;
Language: C++

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

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

   return 0
}



Compiler output:
a.cc: In function 'int main()':
a.cc:6:17: error: expected ';' before '}' token
    6 |  if(a<b){ a == b}else
      |                 ^
      |                 ;
a.cc:7:17: error: expected ';' before '}' token
    7 |  if(a<c){ a == c}else
      |                 ^
      |                 ;
a.cc:8:17: error: expected ';' before '}' token
    8 |  if(b<c){ b == c};
      |                 ^
      |                 ;
a.cc:10:18: error: expected ';' before string constant
   10 |   cout<<a<<" "<<b" "<<c<<endl;
      |                  ^~~
      |                  ;
a.cc:13:12: error: expected ';' before '}' token
   13 |    return 0
      |            ^
      |            ;
   14 | }
      | ~
Language: C++

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

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

   return 0
}



Compiler output:
a.cc: In function 'int main()':
a.cc:6:17: error: expected ';' before '}' token
    6 |  if(a<b){ a == b};else
      |                 ^
      |                 ;
a.cc:6:19: error: 'else' without a previous 'if'
    6 |  if(a<b){ a == b};else
      |                   ^~~~
a.cc:7:17: error: expected ';' before '}' token
    7 |  if(a<c){ a == c};else
      |                 ^
      |                 ;
a.cc:7:19: error: 'else' without a previous 'if'
    7 |  if(a<c){ a == c};else
      |                   ^~~~
a.cc:8:17: error: expected ';' before '}' token
    8 |  if(b<c){ b == c};
      |                 ^
      |                 ;
a.cc:10:18: error: expected ';' before string constant
   10 |   cout<<a<<" "<<b" "<<c<<endl;
      |                  ^~~
      |                  ;
a.cc:13:12: error: expected ';' before '}' token
   13 |    return 0
      |            ^
      |            ;
   14 | }
      | ~
Language: C++

#include<cstdio>
int main() {
    int a,b,c,A,B,C;
    scanf("%d %d %d",&a,&b,&c);
    A = a , B = b , C = c;
    if(A <= B){
        if(B <= C){
            a = A , b = B , c = C;
        }
        else if(B > C){
            if(A <= C){
                a = A , b = C , c = B;
            }
            else {
                a = C , b = A , c = B;
        }
        }
    }
    else if(A > B){
        if(A <= C){
            a = B , b = A , c = C;
        }
        else if(A > C){
            if(B <= C){
                a = B , b = C , c = A;
            }
            else{
                a = C , b = B , c = A;
            }
        }
    }
    }
    printf("%d %d %d \n",a,b,c);
}


Compiler output:
a.cc:33:11: error: expected constructor, destructor, or type conversion before '(' token
   33 |     printf("%d %d %d \n",a,b,c);
      |           ^
a.cc:34:1: error: expected declaration before '}' token
   34 | }
      | ^
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;
}
return 0;
}




Compiler output:
a.cc: In function 'int main()':
a.cc:6:6: error: expected primary-expression before '<' token
    6 | if(a=<b && b=<c){
      |      ^
a.cc:6:14: error: expected primary-expression before '<' token
    6 | if(a=<b && b=<c){
      |              ^
a.cc:8:12: error: expected primary-expression before '<' token
    8 | }else if(a=<c &&c=<b ){
      |            ^
a.cc:8:19: error: expected primary-expression before '<' token
    8 | }else if(a=<c &&c=<b ){
      |                   ^
a.cc:10:12: error: expected primary-expression before '<' token
   10 | }else if(b=<a &&a=<c ){
      |            ^
a.cc:10:19: error: expected primary-expression before '<' token
   10 | }else if(b=<a &&a=<c ){
      |                   ^
a.cc:12:12: error: expected primary-expression before '<' token
   12 | }else if(b=<c &&c=<a ){
      |            ^
a.cc:12:19: error: expected primary-expression before '<' token
   12 | }else if(b=<c &&c=<a ){
      |                   ^
a.cc:14:12: error: expected primary-expression before '<' token
   14 | }else if(c=<a &&a=<b ){
      |            ^
a.cc:14:19: error: expected primary-expression before '<' token
   14 | }else if(c=<a &&a=<b ){
      |                   ^
a.cc:16:12: error: expected primary-expression before '<' token
   16 | }else if(c=<b &&b=<a ){
      |            ^
a.cc:16:19: error: expected primary-expression before '<' token
   16 | }else if(c=<b &&b=<a ){
      |                   ^
Language: C++

import java.util.Scanner;

public class Main{

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();
		if(a<b) {
			if(b<c) {
				System.out.printf("%d %d %d\n",a,b,c);
			}else if(a<c) {
				System.out.printf("%d %d %d\n",a,c,b);				
			}else {
				System.out.printf("%d %d %d\n",c,a,b);
				
			}
		}else if(b>c) {
			System.out.printf("%d %d %d\n",c,b,a);
		}else if(a<c) {
			System.out.printf("%d %d %d\n",b,a,c);
		}else {
			System.out.printf("%d %d %d\n",b,c,a);
		}
		sc.close();

	}}


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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:19: error: 'c' was not declared in this scope
    6 |         if(a<b){a=c; b=a; c=b；}
      |                   ^
a.cc:6:29: error: 'b\U0000ff1b' was not declared in this scope
    6 |         if(a<b){a=c; b=a; c=b；}
      |                             ^~~
a.cc:7:19: error: 'c' was not declared in this scope
    7 |         if(b<d){b=c; b=d; c=d；}
      |                   ^
a.cc:7:29: error: 'd\U0000ff1b' was not declared in this scope
    7 |         if(b<d){b=c; b=d; c=d；}
      |                             ^~~
Language: C++

#include<iostream>
using namespace std;
int main(){
	int W, H, x, y, r;
	cin >> W >> H >> x >> y >> r;
	if (x + r < W){
		if (y + r < W){
			if (x>0){
				if (y>0){ cout << "Yes"endl; return 0; }
			}
		}
	}
	cout << "No"endl; return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:51: error: unable to find string literal operator 'operator""endl' with 'const char [4]', 'long unsigned int' arguments
    9 |                                 if (y>0){ cout << "Yes"endl; return 0; }
      |                                                   ^~~~~~~~~
a.cc:13:17: error: unable to find string literal operator 'operator""endl' with 'const char [3]', 'long unsigned int' arguments
   13 |         cout << "No"endl; return 0;
      |                 ^~~~~~~~
Language: C++

import java.util.ArrayList;
import java.util.Scanner;
import java.util.stream.Stream;

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

        ArrayList<Integer> list = new ArrayList<Integer>();
        list.add(a);
        list.add(b);
        list.add(c);

        list.stream().sorted((x, y) -> x - y).forEach(e -> System.out.print(e + " "));
        System.out.println();
    }
}



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

#include<iostream>
#include<string>
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;1 
}	
	else{
	cout<<c<<' '<<b<<' '<<a<<endl;
}
	return 0 ;
}



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

#include<iostream>
using namespace std;

int main(){

	int a, b, c, temp;
	cin >> a >> b >> c;

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

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

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

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

	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:25: error: expected ';' before '}' token
   18 |                 c = temp
      |                         ^
      |                         ;
   19 |         }
      |         ~
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;}
  else if(a<c&&c<b){cout<<a<<" "<<c<<" "<<b;}
  else if(b<a&&a<c){cout<<b<<" "<<a<<" "<<c;}
  else if(b<c&&c<a){cout<<b<<" "<<c<<" "<<a;}
  else if(c<a&&a<b){cout<<c<<" "<<a<<" "<<b;}
  else if(c<b&&b<a){cout<<c<<" "<<b<<" "<<a;}
  cout<<endl;

  return 0;
 


Compiler output:
a.cc: In function 'int main()':
a.cc:17:12: error: expected '}' at end of input
   17 |   return 0;
      |            ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
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 > b&&b < c) {
		cout << a << " " << c << " " << b << endl;
	}
	else if (a < b&&a > c) {
		cout << b << " " << a << " " << c << endl;
	}
	else if (a < b&&a < c) {
		cout << b << " " << c << " " << a << endl;
	}
	else if (a > b&&a < c) {
		cout << c << " " << a << " " << b << endl;
	}
	else{
		cout << c << " " << b << " " << a << endl;
	}

	return 0;


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

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

int main(){
 int a,b,c;
 cin>>a>>b>>c;
  sort(v.begin(),v.end());
  for_each(v.begin(),v.end(),[](int x){
   cout<< x <<endl;
});
}

 



Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: 'v' was not declared in this scope
    7 |   sort(v.begin(),v.end());
      |        ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
 int a,b.c;
 cin>>a>>b>>c;

for (int i =0; i < 100; i++) {
 if(a >= b) {
  swap(a,b);
  if(b >= c){
   swap(b,c);
  }
 }
}



cout << a << b << c; 


}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: expected initializer before '.' token
    5 |  int a,b.c;
      |         ^
a.cc:6:10: error: 'b' was not declared in this scope
    6 |  cin>>a>>b>>c;
      |          ^
a.cc:6:13: error: 'c' was not declared in this scope
    6 |  cin>>a>>b>>c;
      |             ^
Language: C++

#include<bits\stdc++.h>

using namespace std;

int main()
{
    int a[10];

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



    return 0;
}



Compiler output:
a.cc:1:9: fatal error: bits\stdc++.h: No such file or directory
    1 | #include<bits\stdc++.h>
      |         ^~~~~~~~~~~~~~~
compilation terminated.