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

#include <iostream>

int main(void)
{
int i,j;
std::cin >> i >> j;
std::cout<< "a " << (a>b)?">":(a==b)?"==":"<" << " b" << std::endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:22: error: 'a' was not declared in this scope
    7 | std::cout<< "a " << (a>b)?">":(a==b)?"==":"<" << " b" << std::endl;
      |                      ^
a.cc:7:24: error: 'b' was not declared in this scope
    7 | std::cout<< "a " << (a>b)?">":(a==b)?"==":"<" << " b" << std::endl;
      |                        ^
a.cc:7:47: error: invalid operands of types 'const char [2]' and 'const char [3]' to binary 'operator<<'
    7 | std::cout<< "a " << (a>b)?">":(a==b)?"==":"<" << " b" << std::endl;
      |                                           ~~~ ^~ ~~~~
      |                                           |      |
      |                                           |      const char [3]
      |                                           const char [2]
Language: C++

#include <iostream>

int main(void)
{
int i,j;
std::cin >> i >> j;
std::cout<< "a " << (i>j)?">":(i==j)?"==":"<" << " b" << std::endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:47: error: invalid operands of types 'const char [2]' and 'const char [3]' to binary 'operator<<'
    7 | std::cout<< "a " << (i>j)?">":(i==j)?"==":"<" << " b" << std::endl;
      |                                           ~~~ ^~ ~~~~
      |                                           |      |
      |                                           |      const char [3]
      |                                           const char [2]
Language: C++

#include <iostream>

int main(void)
{
int i,j;
std::cin >> i >> j;
std::cout<< (i>j)?"a > b":(i==j)?"a == b":"a < b"  << std::endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:52: error: invalid operands of types 'const char [6]' and '<unresolved overloaded function type>' to binary 'operator<<'
    7 | std::cout<< (i>j)?"a > b":(i==j)?"a == b":"a < b"  << std::endl;
      |                                           ~~~~~~~~~^~~~~~~~~~~~
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main(){
  int a, b;
  cin >> a >> b;
  if(a == b)
    cout << "a" << " == " << "b" << endl;
  else
    cout << "a" << (ia < b ? " < " : " > ") << "b" << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:21: error: 'ia' was not declared in this scope; did you mean 'a'?
   10 |     cout << "a" << (ia < b ? " < " : " > ") << "b" << endl;
      |                     ^~
      |                     a
Language: C++

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

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

if (a > b){
	printf("a > b);
}
else if (a < b){
	printf("a < b");
}
else if (a == b){
	printf("a == b");
}

return (0);
}

Compiler output:
a.cc:9:16: warning: missing terminating " character
    9 |         printf("a > b);
      |                ^
a.cc:9:16: error: missing terminating " character
    9 |         printf("a > b);
      |                ^~~~~~~~
a.cc: In function 'int main()':
a.cc:10:1: error: expected primary-expression before '}' token
   10 | }
      | ^
Language: C++

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

printf("整数>>");
scanf("%d %d", &a, &b);

if (a > b){
	printf("a > b);
}
else if (a < b){
	printf("a < b");
}
else if (a == b){
	printf("a == b");
}

return (0);
}

Compiler output:
a.cc:10:16: warning: missing terminating " character
   10 |         printf("a > b);
      |                ^
a.cc:10:16: error: missing terminating " character
   10 |         printf("a > b);
      |                ^~~~~~~~
a.cc: In function 'int main()':
a.cc:11:1: error: expected primary-expression before '}' token
   11 | }
      | ^
Language: C++


import java.util.*;
public class Main {

	public static void main(String[] args) {
	Scanner n = new Scanner(System.in);
	String s = new String();
	int a = n.nextInt();
	int b = n.nextInt();
	if(a>b){
		s = ">";
	}
	else if(a<b){
		s = "<";
	}
	else if(a==b){
		s = "==";
	}
	System.out.println(a + " " + s + " " + b);
	
	}

}

Compiler output:
a.cc:2:1: error: 'import' does not name a type
    2 | import java.util.*;
      | ^~~~~~
a.cc:2: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>
using namespace std;

int main() {
	int x,y;
	cin>>x>>y;
	if x<y then{
		cout<<"a < b"<<endl;
		return 0;
	}elseif x>y then{
		cout<<"a > b"<<endl;
		return 0;
	}elseif x==y then{
		cout<<"a == b"<<endl;
		return 0;
	}else{
		return 1;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: expected '(' before 'x'
    7 |         if x<y then{
      |            ^
      |            (
a.cc:10:10: error: 'elseif' was not declared in this scope
   10 |         }elseif x>y then{
      |          ^~~~~~
a.cc:13:16: error: expected ';' before 'x'
   13 |         }elseif x==y then{
      |                ^~
      |                ;
a.cc:16:10: error: 'else' without a previous 'if'
   16 |         }else{
      |          ^~~~
Language: C++

#include<iostream>
using namespace std;

int main() {
	int x,y;
	cin>>x>>y;
	if(x<y)then{
		cout<<"a < b"<<endl;
		return 0;
	}else if(x>y) then{
		cout<<"a > b"<<endl;
		return 0;
	}else if(x==y) then{
		cout<<"a == b"<<endl;
		return 0;
	}else{
		return 1;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:16: error: 'then' was not declared in this scope
    7 |         if(x<y)then{
      |                ^~~~
a.cc:10:23: error: 'then' was not declared in this scope
   10 |         }else if(x>y) then{
      |                       ^~~~
a.cc:13:24: error: 'then' was not declared in this scope
   13 |         }else if(x==y) then{
      |                        ^~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:3:2: error: 'cin' was not declared in this scope
    3 |  cin >> a >> b;
      |  ^~~
a.cc:6:3: error: 'cout' was not declared in this scope
    6 |   cout << a << " < " << b << endl;
      |   ^~~~
a.cc:6:30: error: 'endl' was not declared in this scope
    6 |   cout << a << " < " << b << endl;
      |                              ^~~~
a.cc:8:3: error: 'cout' was not declared in this scope
    8 |   cout << a << " > " << b << endl;
      |   ^~~~
a.cc:8:30: error: 'endl' was not declared in this scope
    8 |   cout << a << " > " << b << endl;
      |                              ^~~~
a.cc:10:3: error: 'cout' was not declared in this scope
   10 |   cout << a << " == " << b << endl;
      |   ^~~~
a.cc:10:31: error: 'endl' was not declared in this scope
   10 |   cout << a << " == " << b << endl;
      |                               ^~~~
Language: C++

#include <iostream>

using namespace std;


int main(){



int a,b;


cin >> a >> b;



cout << 

if (a>b){a>b}

else if(a<b){a<b}

else {a==b} << endl;



retrun 0;




}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:1: error: expected primary-expression before 'if'
   19 | if (a>b){a>b}
      | ^~
a.cc:21:1: error: 'else' without a previous 'if'
   21 | else if(a<b){a<b}
      | ^~~~
a.cc:21:17: error: expected ';' before '}' token
   21 | else if(a<b){a<b}
      |                 ^
      |                 ;
a.cc:23:11: error: expected ';' before '}' token
   23 | else {a==b} << endl;
      |           ^
      |           ;
a.cc:23:13: error: expected primary-expression before '<<' token
   23 | else {a==b} << endl;
      |             ^~
a.cc:27:1: error: 'retrun' was not declared in this scope
   27 | retrun 0;
      | ^~~~~~
Language: C++

#include <iostream>
using namespace std;

int main(){


	int a,b;

	cin >> a >> b;

	if (a<b) {
		cout << "a < b\n";
	}

	else if (a>b) {
		cout << "a > b\n";
	}

	else {
		cout << "a == b\n";
	}

	return 0;

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

#include<cstdio>

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

if(a<b)
{  printf("a<b");  }
a>b ?printf("a>b"); : printf("a==b");


}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:19: error: expected ':' before ';' token
   10 | a>b ?printf("a>b"); : printf("a==b");
      |                   ^
      |                   :
a.cc:10:19: error: expected primary-expression before ';' token
a.cc:10:21: error: expected primary-expression before ':' token
   10 | a>b ?printf("a>b"); : printf("a==b");
      |                     ^
Language: C++

#include<cstdio>

int main()
{
int a,b;
scanf("%d %d",&a,&b);
if(a<b)
  printf("a<b");
elseif(a>b)
   printf("a>b");
else
    printf("a==b");

}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:1: error: 'elseif' was not declared in this scope
    9 | elseif(a>b)
      | ^~~~~~
a.cc:11:1: error: 'else' without a previous 'if'
   11 | else
      | ^~~~
Language: C++

#include <iostream>

int main(int argc, char** argv)
{
    int a, b;
    std::cin >> a >> b;

    int size = width * height;
    int length = (width + height) * 2;

    char* compareResult;
    if (a < b) {
        compareResult = "<";
    } else if (a > b){
        compareResult = ">";
    } else {
        compareResult = "==";
    }

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

    return 0;
}

Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:8:16: error: 'width' was not declared in this scope; did you mean 'wcwidth'?
    8 |     int size = width * height;
      |                ^~~~~
      |                wcwidth
a.cc:8:24: error: 'height' was not declared in this scope
    8 |     int size = width * height;
      |                        ^~~~~~
a.cc:13:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   13 |         compareResult = "<";
      |                         ^~~
a.cc:15:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   15 |         compareResult = ">";
      |                         ^~~
a.cc:17:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   17 |         compareResult = "==";
      |                         ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:26: error: invalid operands of types 'int*' and 'int' to binary 'operator&'
    6 |         scanf("%d %d",&a &b);           // scanf("%d",&a); //
      |                       ~~ ^~
      |                       |   |
      |                       |   int
      |                       int*
a.cc:19:19: error: expected ';' before '{' token
   19 |         else(a==b)
      |                   ^
      |                   ;
   20 |         {
      |         ~
Language: C++

#include <iostream>

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

}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:6: error: 'c' was not declared in this scope
   10 | if(a<c){
      |      ^
Language: C++

#include <iostream>

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

}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:10: error: 'c' was not declared in this scope
   10 |     if(a<c){
      |          ^
Language: C++

#include <iostream>


using namespace std;


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

Compiler output:
a.cc:13:42: error: extended character 　 is not valid in an identifier
   13 |                    cout<<"a　<　b"<<endl;　
      |                                          ^
a.cc: In function 'int main()':
a.cc:13:42: error: '\U00003000' was not declared in this scope
   13 |                    cout<<"a　<　b"<<endl;　
      |                                          ^~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: expected '}' before 'else'
   12 |         else {
      |         ^~~~
a.cc:10:21: note: to match this '{'
   10 |         else if(a>b){
      |                     ^
Language: C++

#include <cstdio>

int main(){
scanf("%d %d",&a,&b);
if(a<b){
printf("a < b");
}else if(a>b){
printf("a > b");
}else{
printf("a == b");
}

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:16: error: 'a' was not declared in this scope
    4 | scanf("%d %d",&a,&b);
      |                ^
a.cc:4:19: error: 'b' was not declared in this scope
    4 | scanf("%d %d",&a,&b);
      |                   ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:8: error: 'x' was not declared in this scope
    6 |     if(x>y)cout << "a > b"<< endl;
      |        ^
a.cc:6:10: error: 'y' was not declared in this scope
    6 |     if(x>y)cout << "a > b"<< endl;
      |          ^
Language: C++

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

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

    if(a>b){
        printf("a>b\n");
    }
    else if(a<b){
        printf("a<b\n");
    }
    else{
        printf(a==b\n");
    }
return 0;

}
    

Compiler output:
a.cc:15:20: error: stray '\' in program
   15 |         printf(a==b\n");
      |                    ^
a.cc:15:22: warning: missing terminating " character
   15 |         printf(a==b\n");
      |                      ^
a.cc:15:22: error: missing terminating " character
   15 |         printf(a==b\n");
      |                      ^~~
a.cc: In function 'int main()':
a.cc:15:20: error: expected ')' before 'n'
   15 |         printf(a==b\n");
      |               ~    ^~
      |                    )
Language: C++

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

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

    if(a<b){
        printf("a<b\n");
    }
    else if(a>b){
        printf("a>b\n");
    }
    else{
        printf(a==b\n");
    }
return 0;

}
    

Compiler output:
a.cc:15:20: error: stray '\' in program
   15 |         printf(a==b\n");
      |                    ^
a.cc:15:22: warning: missing terminating " character
   15 |         printf(a==b\n");
      |                      ^
a.cc:15:22: error: missing terminating " character
   15 |         printf(a==b\n");
      |                      ^~~
a.cc: In function 'int main()':
a.cc:15:20: error: expected ')' before 'n'
   15 |         printf(a==b\n");
      |               ~    ^~
      |                    )
Language: C++

number = Array.new()
num = gets
number = num.split(" ")
num1 = number[0].to_i
num2 = number[1].to_i

if num1 == num2
	puts "#{num1} == #{num2}"
end
if num1 > num2
	puts "#{num1} > #{num2}"
end
if num1 < num2
	puts "#{num1} < #{num2}"
end

Compiler output:
a.cc:1:1: error: 'number' does not name a type
    1 | number = Array.new()
      | ^~~~~~
Language: C++

#include <iostream>
using std::cin;
using std::cout;
using std::endl;

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

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

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:12: error: expected ';' before 'a'
    9 |         cin a >> b;
      |            ^~
      |            ;
Language: C++

#include <iostream>
using namespace std;

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

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

#include <iostream>
using namespace std;

int main() {
	// your code goes here
	int a,b;
	cin >> a >> b ;
	if ( a > b) {
		cout << "a > b";
	}
	else if ( a < b) {
		cout << "a < b";
	}
	else if (a == b) {
		cout << "a == b"
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:33: error: expected ';' before '}' token
   15 |                 cout << "a == b"
      |                                 ^
      |                                 ;
   16 |         }
      |         ~
Language: C++

int main() {
	// your code goes here
    int a,b;
    std::cin>>a>>b;

    if(a>b){
        std::cout<<"a>b";
     }else{
        std::cout<<"a<b";
     }
    
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:10: error: 'cin' is not a member of 'std'
    4 |     std::cin>>a>>b;
      |          ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | int main() {
a.cc:7:14: error: 'cout' is not a member of 'std'
    7 |         std::cout<<"a>b";
      |              ^~~~
a.cc:7:14: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:14: error: 'cout' is not a member of 'std'
    9 |         std::cout<<"a<b";
      |              ^~~~
a.cc:9:14: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include <iostream>

int main() {
	// your code goes here
    int a,b;
    cin>>a>>b;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |     cin>>a>>b;
      |     ^~~
      |     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:9:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |         cout<<"a>b\n";
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:11:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |         cout<<"a<b\n";
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:13:10: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 |          cout<<"a==b\n";
      |          ^~~~
      |          std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include <iostream>

int main() {
	// your code goes here
    int a,b;
    std::cin>>a>>b;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:27: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |         std::cout<<"a>b"<<endl;
      |                           ^~~~
      |                           std::endl
In file included from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:11:27: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   11 |         std::cout<<"a<b"<<endl;
      |                           ^~~~
      |                           std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:13:28: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   13 |         std::cout<<"a==b"<<endl;
      |                            ^~~~
      |                            std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <iostream>

int main() {
	// your code goes here
    int a,b;
    std::cin>>a>>b;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:29: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |         std::cout<<"a > b"<<endl;
      |                             ^~~~
      |                             std::endl
In file included from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:11:29: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   11 |         std::cout<<"a < b"<<endl;
      |                             ^~~~
      |                             std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:13:30: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   13 |         std::cout<<"a == b"<<endl;
      |                              ^~~~
      |                              std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <iostream>
using namespace std;
 
int main() {
    // your code goes here
    int a,b;
    std::cin>>a>>b;
 
    if(a>b){
        std::cout<<"a > b"<<endl;
     }else if(a<b){
        std::cout<<"a < b"endl;
     }else{
        std::cout<<"a == b"endl;
     }
     
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:20: error: unable to find string literal operator 'operator""endl' with 'const char [6]', 'long unsigned int' arguments
   12 |         std::cout<<"a < b"endl;
      |                    ^~~~~~~~~~~
a.cc:14:20: error: unable to find string literal operator 'operator""endl' with 'const char [7]', 'long unsigned int' arguments
   14 |         std::cout<<"a == b"endl;
      |                    ^~~~~~~~~~~~
Language: C++

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

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

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:9: error: 'cin' was not declared in this scope
    3 |         cin >> a;
      |         ^~~
a.cc:7:17: error: 'cout' was not declared in this scope
    7 |                 cout << a << " < " << b << endl;
      |                 ^~~~
a.cc:7:44: error: 'endl' was not declared in this scope
    7 |                 cout << a << " < " << b << endl;
      |                                            ^~~~
a.cc:10:17: error: 'cout' was not declared in this scope
   10 |                 cout << a << " > " << b << endl;
      |                 ^~~~
a.cc:10:44: error: 'endl' was not declared in this scope
   10 |                 cout << a << " > " << b << endl;
      |                                            ^~~~
a.cc:13:17: error: 'cout' was not declared in this scope
   13 |                 cout << a << " == " << b << endl;
      |                 ^~~~
a.cc:13:45: error: 'endl' was not declared in this scope
   13 |                 cout << a << " == " << b << endl;
      |                                             ^~~~
Language: C++

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

}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:20: error: expected ';' before '{' token
   14 |          else(a==b){
      |                    ^
      |                    ;
Language: C++

public class Main {

	public static void main(String[] args) {
		java.util.Scanner scan = new java.util.Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		if (a > b) {
			System.out.println("a > b");
		}
		else if(a < b) {
			System.out.println("a < b");
		}
		else {
			System.out.println("a == b");
		}
	}

}

Compiler output:
a.cc:1:1: error: expected unqualified-id before 'public'
    1 | public class Main {
      | ^~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:30: error: 'S' was not declared in this scope
   11 |         cout<<"x == y"<<endl;S
      |                              ^
Language: Java


import java.util.Scanner;

public class SortingThree {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);

		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();

		int min = 0;
		int max = 0;
		int mid = 0;

		if(a < b && a < c) {
			min = a;
		} else if(b < a && b < c) {
			min = b;
		} else if(c < a && c < b) {
			min = c;
		}

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

		if(min < a && a < max) {
			mid = a;
		} else if(min < b && b < max) {
			mid = b;
		} else if(min < c && c < max) {
			mid = c;
		}

		System.out.printf("%d %d %d ", min, mid, max);
	}
}

Compiler output:
Main.java:4: error: class SortingThree is public, should be declared in a file named SortingThree.java
public class SortingThree {
       ^
1 error
Language: Java


import java.util.Scanner;

public class SortingThree {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);

		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();

		int min = 0;
		int max = 0;
		int mid = 0;

		if(a < b && a < c) {
			min = a;
		} else if(b < a && b < c) {
			min = b;
		} else if(c < a && c < b) {
			min = c;
		}

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

		if(min < a && a < max) {
			mid = a;
		} else if(min < b && b < max) {
			mid = b;
		} else if(min < c && c < max) {
			mid = c;
		}

		System.out.printf("%d %d %d", min, mid, max);
	}
}

Compiler output:
Main.java:4: error: class SortingThree is public, should be declared in a file named SortingThree.java
public class SortingThree {
       ^
1 error
Language: Java


import java.util.Scanner;

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();

		if(a < b && a < c) {
			min = a;
		} else if(b < a && b < c) {
			min = b;
		} else if(c < a && c < b) {
			min = c;
		}

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

		if(min < a && a < max) {
			mid = a;
		} else if(min < b && b < max) {
			mid = b;
		} else if(min < c && c < max) {
			mid = c;
		}

		System.out.printf("%d %d %d\n", min, mid, max);
	}
}

Compiler output:
Main.java:13: error: cannot find symbol
			min = a;
			^
  symbol:   variable min
  location: class Main
Main.java:15: error: cannot find symbol
			min = b;
			^
  symbol:   variable min
  location: class Main
Main.java:17: error: cannot find symbol
			min = c;
			^
  symbol:   variable min
  location: class Main
Main.java:21: error: cannot find symbol
			max = a;
			^
  symbol:   variable max
  location: class Main
Main.java:23: error: cannot find symbol
			max = b;
			^
  symbol:   variable max
  location: class Main
Main.java:25: error: cannot find symbol
			max = c;
			^
  symbol:   variable max
  location: class Main
Main.java:28: error: cannot find symbol
		if(min < a && a < max) {
		   ^
  symbol:   variable min
  location: class Main
Main.java:28: error: cannot find symbol
		if(min < a && a < max) {
		                  ^
  symbol:   variable max
  location: class Main
Main.java:29: error: cannot find symbol
			mid = a;
			^
  symbol:   variable mid
  location: class Main
Main.java:30: error: cannot find symbol
		} else if(min < b && b < max) {
		          ^
  symbol:   variable min
  location: class Main
Main.java:30: error: cannot find symbol
		} else if(min < b && b < max) {
		                         ^
  symbol:   variable max
  location: class Main
Main.java:31: error: cannot find symbol
			mid = b;
			^
  symbol:   variable mid
  location: class Main
Main.java:32: error: cannot find symbol
		} else if(min < c && c < max) {
		          ^
  symbol:   variable min
  location: class Main
Main.java:32: error: cannot find symbol
		} else if(min < c && c < max) {
		                         ^
  symbol:   variable max
  location: class Main
Main.java:33: error: cannot find symbol
			mid = c;
			^
  symbol:   variable mid
  location: class Main
Main.java:36: error: cannot find symbol
		System.out.printf("%d %d %d\n", min, mid, max);
		                                ^
  symbol:   variable min
  location: class Main
Main.java:36: error: cannot find symbol
		System.out.printf("%d %d %d\n", min, mid, max);
		                                     ^
  symbol:   variable mid
  location: class Main
Main.java:36: error: cannot find symbol
		System.out.printf("%d %d %d\n", min, mid, max);
		                                          ^
  symbol:   variable max
  location: class Main
18 errors
Language: Java

import java.util.Scanner;

public class J10004{
	public static void main(String args[]){
		Scanner sc=new Scanner(System.in);
		int[] a;
		a=new int[3];
		for(int i=0;i<3;i++)a[i]=sc.nextInt();
		for(int i=0;i<3;i++){
			for(int j=i+1;j<3;j++)if(a[i]>a[j]){
				int c=a[i];
				a[i]=a[j];
				a[j]=c;
			}
		}
		System.out.printf("%d %d %d\n",a[0],a[1],a[2]);
	}
}

Compiler output:
Main.java:3: error: class J10004 is public, should be declared in a file named J10004.java
public class J10004{
       ^
1 error
Language: Java

import java.util.Scanner;
 
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();
int d;
if( a < b){
 d = b; b = a; a = d;
}
if( b < c){
 d = c; c = b; b = d;
}
if( a < b){
 d = b; b = a; a = d;
}
System.out.printin(a + " " + b + " " + c);
}
}
 

Compiler output:
Main.java:19: error: cannot find symbol
System.out.printin(a + " " + b + " " + c);
          ^
  symbol:   method printin(String)
  location: variable out of type PrintStream
1 error
Language: Java

package ????????°???????????°A;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scanner=new  Scanner(System.in);
		try{String line1 = scanner.next();
			String line2 = scanner.next();
			String line3 = scanner.next();

			int a =Integer.parseInt(line1);
			int b =Integer.parseInt(line2);
			int c =Integer.parseInt(line3);
			if(a<b){
				if(b<c)
					System.out.println(a+" "+b+" "+c);
				else if(a>c)
					System.out.println(c+" "+a+" "+b);
				else if(c>a)
					System.out.println(a+" "+c+" "+b);
			}
			if(a>b){
				if(b>c)
					System.out.println(c+" "+b+" "+a);
				else if(a>c)
					System.out.println(b+" "+c+" "+a);
				else if(c>a)
					System.out.println(b+" "+a+" "+c);
			}
			scanner.close();

		}
		 	catch (NumberFormatException e) {
			 System.out.println("??°????????¢????????£????????????????????????");
			 }


	}

}

Compiler output:
Main.java:1: error: <identifier> expected
package ?????????????????????A;
       ^
Main.java:1: error: illegal character: '\u00b0'
package ?????????????????????A;
                ^
Main.java:1: error: illegal character: '\u00b0'
package ?????????????????????A;
                            ^
3 errors
Language: Java

import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// ?¨??????\???????????????????????????????????????
Scanner sc = new Scanner(System.in);
// 3?????????????????????????????????????????´??°?????¨???????????????????????? 
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 if (c < a){
     System.out.printf("%d %d %d?\n", c, a, b);
   }
}else(b > a) { 
   if (a < c) {
      System.out.printf("%d %d %d?\n", b, a, c);
   } else if (b < c) { 
     System.out.printf("%d %d %d?\n", b, c, a);
   } else if (c < b){
   	System.out.printf("%d %d %d?\n", c, b, a); 
   	} 
}
}

Compiler output:
Main.java:18: error: not a statement
}else(b > a) { 
     ^
Main.java:18: error: ';' expected
}else(b > a) { 
            ^
Main.java:27: error: reached end of file while parsing
}
 ^
3 errors
Language: Java

import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// ?¨??????\???????????????????????????????????????
Scanner sc = new Scanner(System.in);
// 3?????????????????????????????????????????´??°?????¨???????????????????????? 
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 if (c < a){
     System.out.printf("%d %d %d?\n", c, a, b);
   }
}else{ 
   if (a < c) {
      System.out.printf("%d %d %d?\n", b, a, c);
   } else if (b < c) { 
     System.out.printf("%d %d %d?\n", b, c, a);
   } else if (c < b){
   	System.out.printf("%d %d %d?\n", c, b, a); 
   	} 
}
}

Compiler output:
Main.java:27: error: reached end of file while parsing
}
 ^
1 error
Language: Java

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scanner=new  Scanner(System.in);
		try{String line1 = scanner.next();
			String line2 = scanner.next();
			String line3 = scanner.next();

			int a =Integer.parseInt(line1);
			int b =Integer.parseInt(line2);
			int c =Integer.parseInt(line3);
			int num []=new int[3];
			int i,j,temp;
			num[0]=a;
			num[1]=b;
			num[2]=c;
			for(i=0;i<3;i++){
				for(j=0;j<3;j++){
					if(num[i]<num[j]){
						temp=num[i];
						num[i]=num[j];
						num[j]=temp;
					}
				}
			}
			for(i=0;i<3;i++){
				System.out.print(num[i]+" ");

				}
			}
				scanner.close();

		}
		 	catch (NumberFormatException e) {
			 System.out.println("??°????????¢????????£????????????????????????");
			 }


	}

}

Compiler output:
Main.java:7: error: 'try' without 'catch', 'finally' or resource declarations
		try{String line1 = scanner.next();
		^
Main.java:36: error: illegal start of type
		 	catch (NumberFormatException e) {
		 	^
Main.java:36: error: ';' expected
		 	catch (NumberFormatException e) {
		 	                              ^
Main.java:43: error: class, interface, enum, or record expected
}
^
4 errors
Language: Java

import java.util.Scanner;
public class SortingThreeNumbers {
public static void main(String[] args) {
// ?¨??????\???????????????????????????????????????
Scanner sc = new Scanner(System.in);
// 3?????????????????????????????????????????´??°?????¨???????????????????????? 
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 if (c < a){
     System.out.printf("%d %d %d?\n", c, a, b);
   }
}else{ 
   if (a < c) {
      System.out.printf("%d %d %d?\n", b, a, c);
   } else if (b < c) { 
     System.out.printf("%d %d %d?\n", b, c, a);
   } else if (c < b){
   	System.out.printf("%d %d %d?\n", c, b, a); 
   	} 
}
}
}

Compiler output:
Main.java:2: error: class SortingThreeNumbers is public, should be declared in a file named SortingThreeNumbers.java
public class SortingThreeNumbers {
       ^
1 error
Language: Java

import java.util.Scanner;
 
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();

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

        }

Compiler output:
Main.java:30: error: reached end of file while parsing
        }
         ^
1 error
Language: Java

import java.util.Scanner;
public class SortingThreeNumbers {
public static void main(String[] args) {
// ?¨??????\???????????????????????????????????????
Scanner sc = new Scanner(System.in);
// 3?????????????????????????????????????????´??°?????¨???????????????????????? 
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 (a < c) {
      System.out.printf("%d %d %d?\n", b, a, c);
   } else if (b < c) { 
     System.out.printf("%d %d %d?\n", b, c, a);
   } else {
   	 System.out.printf("%d %d %d?\n", c, b, a); 
   	} 
}
}
}

Compiler output:
Main.java:2: error: class SortingThreeNumbers is public, should be declared in a file named SortingThreeNumbers.java
public class SortingThreeNumbers {
       ^
1 error
Language: Java

import java.util.Scanner;
public class Three{
	public static void main(String[]args){
	Scanner sc=new Scanner(System.in);
	int a=sc.nextInt();
	int b=sc.nextInt();
	int c=sc.nextInt();	
	if(a<b&&b<c){
	System.out.printf("%d %d %d?\n",a,b,c);
	}else if(a<c&&c<b){
	System.out.printf("%d %d %d?\n",a,c,b);
	}else if(b<a&&a<c){	
	System.out.printf("%d %d %d?\n",b,a,c);
	}else if(b<c&&c<a){
	System.out.printf("%d %d %d?\n",b,c,a);
	}else if(c<a&&a<b){
	System.out.printf("%d %d %d?\n",c,a,b);
	}else if(c<b&&b<a){
	System.out.printf("%d %d %d?\n",c,b,a);
	}
	}
}

Compiler output:
Main.java:2: error: class Three is public, should be declared in a file named Three.java
public class Three{
       ^
1 error
Language: Java

import java.util.Scanner;
 
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();

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

     }
 }

Compiler output:
Main.java:11: error: bad operand types for binary operator '<='
        if(a<=b<=c){
               ^
  first type:  boolean
  second type: int
Main.java:15: error: bad operand types for binary operator '<='
         	if(a<=c<=b){
         	       ^
  first type:  boolean
  second type: int
Main.java:18: error: bad operand types for binary operator '<='
         	if(b<=a<=c){
         	       ^
  first type:  boolean
  second type: int
Main.java:21: error: bad operand types for binary operator '<='
         	if(b<=c<=a){
         	       ^
  first type:  boolean
  second type: int
Main.java:24: error: bad operand types for binary operator '<='
         	if(c<=a<=b){
         	       ^
  first type:  boolean
  second type: int
Main.java:27: error: bad operand types for binary operator '<='
         	if(c<=b<=a){
         	       ^
  first type:  boolean
  second type: int
6 errors
Language: Java

import java.util.Scanner;

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();
		if(a<b<c){
			System.out.printf("%d %d %d?\n", a, b, c);
		}else if(a<c<b){
			System.out.printf("%d %d %d?\n", a, b, c);
		}
		else if(b<a<c){
			System.out.printf("%d %d %d?\n", b, a, c);
		}
		else if(b<c<a){
			System.out.printf("%d %d %d?\n", b, c, a);
		}
		else if(c<a<b){
			System.out.printf("%d %d %d?\n", c, a, b);
		}
		else if(c<b<a){
			System.out.printf("%d %d %d?\n", c, b, a);
		}

	
		}
	}

Compiler output:
Main.java:9: error: bad operand types for binary operator '<'
		if(a<b<c){
		      ^
  first type:  boolean
  second type: int
Main.java:11: error: bad operand types for binary operator '<'
		}else if(a<c<b){
		            ^
  first type:  boolean
  second type: int
Main.java:14: error: bad operand types for binary operator '<'
		else if(b<a<c){
		           ^
  first type:  boolean
  second type: int
Main.java:17: error: bad operand types for binary operator '<'
		else if(b<c<a){
		           ^
  first type:  boolean
  second type: int
Main.java:20: error: bad operand types for binary operator '<'
		else if(c<a<b){
		           ^
  first type:  boolean
  second type: int
Main.java:23: error: bad operand types for binary operator '<'
		else if(c<b<a){
		           ^
  first type:  boolean
  second type: int
6 errors
Language: Java

package class_2;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		// ?¨??????\???????????????????????????????????????
		Scanner sc= newScanner(System.in);
		// 3?????????????????????????????????????????´??°?????¨????????????????????????
		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(a < c){
				System.out.printf("%d %d %d\n", b, a, c);
			} else if(b < c){
				System.out.printf("%d %d %d\n", b, c, a);
			} else {
				System.out.printf("%d %d %d\n", c, b, a);
			}
		}
	}
}

Compiler output:
Main.java:7: error: cannot find symbol
		Scanner sc= newScanner(System.in);
		            ^
  symbol:   method newScanner(InputStream)
  location: class Main
1 error
Language: Java

import java.util.Scanner;

public class stn{
public static void main(String[] args){
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);
	}
	}
	
	if(b <c){
	 if(c < a){
	System.out.printf("%d %d %d\n",b,c,a);
	}else if (b < a){
	System.out.printf("%d %d %d\n",b,a,c);
	}
	}
	if ( c < a){
	if ( a < b){
	System.out.printf("%d %d %d\n",c,a,b);
	}else if (c <b){
	System.out.printf("%d %d %d\n",c,b,a);
	}
	}
	}
	}

Compiler output:
Main.java:3: error: class stn is public, should be declared in a file named stn.java
public class stn{
       ^
1 error
Language: Java

import java.util.Scanner;

public class Sorting{
    public static void main(Sorting[] args){

        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 && c < b){
                System.out.printf("%d %d %d\n",a,c,b);
            }
        }else if(b < c){
            if(c < a){
                System.out.printf("%d %d %d\n",b,c,a);
            }else if(a < c && b < a){
                System.out.printf("%d %d %d\n",b,a,c);
            }
        }else if(c < a){
            if(a < b){
                System.out.printf("%d %d %d\n",c,a,b);
            }else if(c < b && b < a){
                System.out.printf("%d %d %d\n",c,b,a);
            }
        }
    }
}

Compiler output:
Main.java:3: error: class Sorting is public, should be declared in a file named Sorting.java
public class Sorting{
       ^
1 error
Language: Java

import java.util.Scanner;

public class Main{
    public static void main(Sorting[] args){

        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 && c < b){
                System.out.printf("%d %d %d\n",a,c,b);
            }
        }else if(b < c){
            if(c < a){
                System.out.printf("%d %d %d\n",b,c,a);
            }else if(a < c && b < a){
                System.out.printf("%d %d %d\n",b,a,c);
            }
        }else if(c < a){
            if(a < b){
                System.out.printf("%d %d %d\n",c,a,b);
            }else if(c < b && b < a){
                System.out.printf("%d %d %d\n",c,b,a);
            }
        }
    }
}

Compiler output:
Main.java:4: error: cannot find symbol
    public static void main(Sorting[] args){
                            ^
  symbol:   class Sorting
  location: class Main
1 error
Language: Java

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scanner=new  Scanner(System.in);
		try{String line1 = scanner.next();
			String line2 = scanner.next();
			String line3 = scanner.next();

			int a =Integer.parseInt(line1);
			int b =Integer.parseInt(line2);
			int c =Integer.parseInt(line3);
			int num []=new int[3];
			int i,j,temp;
			num[0]=a;
			num[1]=b;
			num[2]=c;
			for(i=0;i<3;i++){
				for(j=0;j<3;j++){
					if(num[i]<num[j]){
						temp=num[i];
						num[i]=num[j];
						num[j]=temp;
					}
				}
			}
			for(i=0;i<3;i++){
				System.out.print(num[i]+" ");

				}
				System.out.println("");
			}
				scanner.close();

		}
		 	catch (NumberFormatException e) {
			 System.out.println("??°????????¢????????£????????????????????????");
			 }


	}

}

Compiler output:
Main.java:7: error: 'try' without 'catch', 'finally' or resource declarations
		try{String line1 = scanner.next();
		^
Main.java:37: error: illegal start of type
		 	catch (NumberFormatException e) {
		 	^
Main.java:37: error: ';' expected
		 	catch (NumberFormatException e) {
		 	                              ^
Main.java:44: error: class, interface, enum, or record expected
}
^
4 errors