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

#include<iostream>
usgin namespace std;
 
int main(){
  int a,b,c;
  cin >> a >> b >> c;
  if(a<b & b<c){
     cout << a << b << c << endl;
  }elseif(a<c & c<b){
     cout << a << c << b << endl;
  }elseif(b<a & a<c){
     cout << b << a << c << endl;
  }elseif(b<c & c<a){
     cout << b << c << a << endl;
  }elseif(c<a & a < b){
     cout << c << a << b << endl;
  }elseif(c<b & b<a){
     cout << c << b << a << endl;
  }
return 0;
}



Compiler output:
a.cc:2:1: error: 'usgin' does not name a type
    2 | usgin namespace std;
      | ^~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin >> a >> b >> c;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:8:6: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |      cout << a << b << c << endl;
      |      ^~~~
      |      std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:8:29: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |      cout << a << b << c << endl;
      |                             ^~~~
      |                             std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:9:4: error: 'elseif' was not declared in this scope
    9 |   }elseif(a<c & c<b){
      |    ^~~~~~
Language: C++

#include<iostream>
int main()
{
	int v1, v2, v3;
	std::cin >> v1 >> v2 >> v3;
	int a[3]={v1, v2, v3};
	int i,j;
	for ( i=0; i<3; i++)
	for ( j=0; j<2-i; j++)
	if ( a[j]>a[j+1] )
	{
    int t = a[j];
    a[j] = a[j+1];
    a[j+1] = t;
	}
	for(i=0;i<3;i++)
	std::cout << a1 << " " <<  a2 << " " << a3 << std::endl;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:22: error: 'a1' was not declared in this scope; did you mean 'a'?
   17 |         std::cout << a1 << " " <<  a2 << " " << a3 << std::endl;
      |                      ^~
      |                      a
a.cc:17:36: error: 'a2' was not declared in this scope; did you mean 'a'?
   17 |         std::cout << a1 << " " <<  a2 << " " << a3 << std::endl;
      |                                    ^~
      |                                    a
a.cc:17:49: error: 'a3' was not declared in this scope; did you mean 'a'?
   17 |         std::cout << a1 << " " <<  a2 << " " << a3 << std::endl;
      |                                                 ^~
      |                                                 a
Language: C++

int v1, v2, v3;
	std::cin >> v1 >> v2 >> v3;
	int a[3]={v1, v2, v3};
	int i,j;
	for ( i=0; i<2; i++)
		for ( j=0; j<2-i; j++)
			if ( a[j]>a[j+1] )
			{
				int t = a[j];
				a[j] = a[j+1];
				a[j+1] = t;
			}
			std::cout << a[0] << " " <<  a[1] << " " << a[2] << std::endl;
			return 0;


Compiler output:
a.cc:2:14: error: 'cin' in namespace 'std' does not name a type
    2 |         std::cin >> v1 >> v2 >> v3;
      |              ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | int v1, v2, v3;
a.cc:5:9: error: expected unqualified-id before 'for'
    5 |         for ( i=0; i<2; i++)
      |         ^~~
a.cc:5:20: error: 'i' does not name a type
    5 |         for ( i=0; i<2; i++)
      |                    ^
a.cc:5:25: error: 'i' does not name a type
    5 |         for ( i=0; i<2; i++)
      |                         ^
a.cc:6:28: error: 'j' does not name a type
    6 |                 for ( j=0; j<2-i; j++)
      |                            ^
a.cc:6:35: error: 'j' does not name a type
    6 |                 for ( j=0; j<2-i; j++)
      |                                   ^
a.cc:13:30: error: 'cout' in namespace 'std' does not name a type
   13 |                         std::cout << a[0] << " " <<  a[1] << " " << a[2] << std::endl;
      |                              ^~~~
a.cc:13:25: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
   13 |                         std::cout << a[0] << " " <<  a[1] << " " << a[2] << std::endl;
      |                         ^~~
a.cc:14:25: error: expected unqualified-id before 'return'
   14 |                         return 0;
      |                         ^~~~~~
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 << a <<" " << b << " " << c << endl;
	}else if(c < a && a < b){
		cout << c <<" " << a << " " << b << endl;
	}else if(c < b && b < a){
		cout << c <<" " << b << " " << a << endl;
	}else
	}
	return 0;
}




Compiler output:
a.cc: In function 'int main()':
a.cc:20:9: error: expected primary-expression before '}' token
   20 |         }
      |         ^
a.cc: At global scope:
a.cc:21:9: error: expected unqualified-id before 'return'
   21 |         return 0;
      |         ^~~~~~
a.cc:22:1: error: expected declaration before '}' token
   22 | }
      | ^
Language: C++

#include<iostream>
using namespace std;

int main(){
	int a[3];

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

	sor(a,a+3)

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



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

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

int main(){
	int a[3];

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

	sor(a,a+3)

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: 'sor' was not declared in this scope
   10 |         sor(a,a+3)
      |         ^~~
Language: C++

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

int main(){
	int A[3];

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

	sor(A,A+3)

	cout << A[0] << " " <<A[1] << " " << A[2] << endl;
	return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: 'sor' was not declared in this scope
   10 |         sor(A,A+3)
      |         ^~~
Language: C++

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

int main(){
	int A[3];

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

	sor(A,A+3)

	cout << A[0] << " " <<A[1] << " " << A[2] << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: 'sor' was not declared in this scope
   10 |         sor(A,A+3)
      |         ^~~
Language: C++

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

int main(){
	int A[3];

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

	sor(A,A+3);

	cout << A[0] << " " <<A[1] << " " << A[2] << endl;
	return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: 'sor' was not declared in this scope
   10 |         sor(A,A+3);
      |         ^~~
Language: C++

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

int main(){
	int A[3];

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

	sor(A,A+3);

	cout << A[0] << " " <<A[1] << " " << A[2] << endl;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: 'sor' was not declared in this scope
   10 |         sor(A,A+3);
      |         ^~~
Language: C++

#include <iostream>
using namespace std;

int main(){
 int a,b,c;
 cin >> a >> b >> c;
 int i,j,k;
 i=max(max(a,b),c);
 j=min(min(a,b),c);
 k=a+b+c-i-j;
 cout << j k i << endl;
}
 



Compiler output:
a.cc: In function 'int main()':
a.cc:11:11: error: expected ';' before 'k'
   11 |  cout << j k i << endl;
      |           ^~
      |           ;
Language: C++

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




Compiler output:
a.cc:14:1: error: extended character 　 is not valid in an identifier
   14 | 　　else{
      | ^
a.cc:14:1: error: extended character 　 is not valid in an identifier
a.cc: In function 'int main()':
a.cc:14:1: error: '\U00003000\U00003000else' was not declared in this scope
   14 | 　　else{
      | ^~~~~~~~
Language: C++

abc_s = input()
abc_a = abc_s.split(" ")
abc = [int(x) for x in abc_a]

sorted = False

while sorted == False:
  sorted = True
  if abc[0] > abc[1]:
    sorted == False
    tmp = abc[0]
    abc[0] = abc[1]
    abc[1] = tmp
  if abc[1] > abc[2]:
    sorted == False
    tmp = abc[1]
    abc[1] = abc[2]
    abc[2] = tmp

print("{array[0]} {array[1]} {array[2]}".format(abc))


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

abc_s = input()
abc_a = abc_s.split(" ")
abc = [int(x) for x in abc_a]

sorted = False

while sorted == False:
  sorted = True
  if abc[0] > abc[1]:
    sorted == False
    tmp = abc[0]
    abc[0] = abc[1]
    abc[1] = tmp
  if abc[1] > abc[2]:
    sorted == False
    tmp = abc[1]
    abc[1] = abc[2]
    abc[2] = tmp

print("{0[0]} {0[1]} {0[2]}".format(abc))


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

#include<iostream>
#include<algorithm>

using namespace std;

int main(){
int A[3];

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

sort(A,A+3);

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

}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:32: error: expected primary-expression before '<<' token
   13 | cout << A[0]  << " "<< A[1] << << " " A[2] << endl;
      |                                ^~
Language: C++

#include <iostream>
using namespace std;
int main(){
  int n[3];
  cin >> n[0] >> n[1] >> n[2];
  sort(n, n + 3);
  cout << n[0] << ' ' << n[1] << ' ' << n[2] << endl;
  return 0;
}

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

#include<iostream>
using namespace std;
int main(){
int x[3];
cin >> x[0] >> x[1] >> x[2];
sort(x, x+3);
cout << x[0] << x[1] << x[2] << endl;
}

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

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

int main(){
int a[3];
scanf("%d %d %d",&a[0],&a[1],&b[2]);
sort(a,a+3);
printf("%d %d %d",a[0],a[1],b[2]);


return 0;


}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:31: error: 'b' was not declared in this scope
    7 | scanf("%d %d %d",&a[0],&a[1],&b[2]);
      |                               ^
Language: C++

#include<stdio.h>
#include<algorithm>
using namespace std;
int main(){
long long a[4];
scanf("%lld%lld%lld",&a[0],&a[1],&a[2]));
sort(a,a+3);
for(int i=0;i<3;i++){
printf("%lld\n",a[i]);
}
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:40: error: expected ';' before ')' token
    6 | scanf("%lld%lld%lld",&a[0],&a[1],&a[2]));
      |                                        ^
      |                                        ;
Language: C++

#include <iostream>
#include <alogrithm>

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

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

#include <iostream>
#include <algorithm>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:63: error: expected ')' before ';' token
    9 |                         if(x[j]>x[j+1]) std::swap(x[j], x[j+1];
      |                                                  ~            ^
      |                                                               )
Language: C++

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

int main(){
	vector<int> x;
	std::cin >> x;
	std::sort(x.begin(), x.end());
	std::cout << x[0] << ' ' << x[1] << ' ' << x[2] << std::endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'vector' was not declared in this scope
    6 |         vector<int> x;
      |         ^~~~~~
a.cc:6:9: note: suggested alternatives:
In file included from /usr/include/c++/14/vector:66,
                 from a.cc:2:
/usr/include/c++/14/bits/stl_vector.h:428:11: note:   'std::vector'
  428 |     class vector : protected _Vector_base<_Tp, _Alloc>
      |           ^~~~~~
/usr/include/c++/14/vector:93:13: note:   'std::pmr::vector'
   93 |       using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>;
      |             ^~~~~~
a.cc:6:16: error: expected primary-expression before 'int'
    6 |         vector<int> x;
      |                ^~~
a.cc:7:21: error: 'x' was not declared in this scope
    7 |         std::cin >> x;
      |                     ^
Language: C++

#include <iostream>
#include <algorithm>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |         cin >> a >> b >> c;
      |         ^~~
      |         std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
Language: C++

#include <iostream>
using namespace std;

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

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

#include <iostream>
using namespace std;

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

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

#include <iostream>
using namespace std;

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

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

#include <iostream>
using namespace std;

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

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

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:1: error: 'd' was not declared in this scope
    8 | d = a
      | ^
a.cc:13:1: error: 'd' was not declared in this scope
   13 | d = b
      | ^
a.cc:18:1: error: 'd' was not declared in this scope
   18 | d = a
      | ^
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:18: error: expected ')' before '$$'
    7 |         if (b < a $$ c < b){
      |            ~     ^~~
      |                  )
a.cc:10:4: error: 'else' without a previous 'if'
   10 |    else if (a < b $$ c < a){
      |    ^~~~
a.cc:10:18: error: expected ')' before '$$'
   10 |    else if (a < b $$ c < a){
      |            ~     ^~~
      |                  )
a.cc:13:3: error: 'else' without a previous 'if'
   13 |   else if (a < c $$ b < a){
      |   ^~~~
a.cc:13:17: error: expected ')' before '$$'
   13 |   else if (a < c $$ b < a){
      |           ~     ^~~
      |                 )
a.cc:16:3: error: 'else' without a previous 'if'
   16 |   else if (c < a $$ b < c){
      |   ^~~~
a.cc:16:17: error: expected ')' before '$$'
   16 |   else if (c < a $$ b < c){
      |           ~     ^~~
      |                 )
a.cc:19:3: error: 'else' without a previous 'if'
   19 |   else if (b < c $$ a < b){
      |   ^~~~
a.cc:19:17: error: expected ')' before '$$'
   19 |   else if (b < c $$ a < b){
      |           ~     ^~~
      |                 )
a.cc:22:3: error: 'else' without a previous 'if'
   22 |   else if ( a < c $$ c < b)
      |   ^~~~
a.cc:22:18: error: expected ')' before '$$'
   22 |   else if ( a < c $$ c < b)
      |           ~      ^~~
      |                  )
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:18: error: expected ')' before '$$'
    7 |         if (b < a $$ c < b){
      |            ~     ^~~
      |                  )
a.cc:10:4: error: 'else' without a previous 'if'
   10 |    else if (a < b $$ c < a){
      |    ^~~~
a.cc:10:18: error: expected ')' before '$$'
   10 |    else if (a < b $$ c < a){
      |            ~     ^~~
      |                  )
a.cc:13:3: error: 'else' without a previous 'if'
   13 |   else if (a < c $$ b < a){
      |   ^~~~
a.cc:13:17: error: expected ')' before '$$'
   13 |   else if (a < c $$ b < a){
      |           ~     ^~~
      |                 )
a.cc:16:3: error: 'else' without a previous 'if'
   16 |   else if (c < a $$ b < c){
      |   ^~~~
a.cc:16:17: error: expected ')' before '$$'
   16 |   else if (c < a $$ b < c){
      |           ~     ^~~
      |                 )
a.cc:19:3: error: 'else' without a previous 'if'
   19 |   else if (b < c $$ a < b){
      |   ^~~~
a.cc:19:17: error: expected ')' before '$$'
   19 |   else if (b < c $$ a < b){
      |           ~     ^~~
      |                 )
a.cc:22:3: error: 'else' without a previous 'if'
   22 |   else if ( a < c $$ c < b)
      |   ^~~~
a.cc:22:18: error: expected ')' before '$$'
   22 |   else if ( a < c $$ c < b)
      |           ~      ^~~
      |                  )
a.cc: At global scope:
a.cc:25:9: error: expected unqualified-id before 'return'
   25 |         return 0;
      |         ^~~~~~
a.cc:26:1: error: expected declaration before '}' token
   26 | }
      | ^
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:18: error: expected ')' before '$$'
    7 |         if (b < a $$ c < b){
      |            ~     ^~~
      |                  )
a.cc:10:4: error: 'else' without a previous 'if'
   10 |    else if (a < b $$ c < a){
      |    ^~~~
a.cc:10:18: error: expected ')' before '$$'
   10 |    else if (a < b $$ c < a){
      |            ~     ^~~
      |                  )
a.cc:13:3: error: 'else' without a previous 'if'
   13 |   else if (a < c $$ b < a){
      |   ^~~~
a.cc:13:17: error: expected ')' before '$$'
   13 |   else if (a < c $$ b < a){
      |           ~     ^~~
      |                 )
a.cc:16:3: error: 'else' without a previous 'if'
   16 |   else if (c < a $$ b < c){
      |   ^~~~
a.cc:16:17: error: expected ')' before '$$'
   16 |   else if (c < a $$ b < c){
      |           ~     ^~~
      |                 )
a.cc:19:3: error: 'else' without a previous 'if'
   19 |   else if (b < c $$ a < b){
      |   ^~~~
a.cc:19:17: error: expected ')' before '$$'
   19 |   else if (b < c $$ a < b){
      |           ~     ^~~
      |                 )
a.cc:22:3: error: 'else' without a previous 'if'
   22 |   else{
      |   ^~~~
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:18: error: expected ')' before '$$'
    7 |         if (b < a $$ c < b){
      |            ~     ^~~
      |                  )
a.cc:10:4: error: 'else' without a previous 'if'
   10 |    else if (a < b $$ c < a){
      |    ^~~~
a.cc:10:18: error: expected ')' before '$$'
   10 |    else if (a < b $$ c < a){
      |            ~     ^~~
      |                  )
a.cc:13:3: error: 'else' without a previous 'if'
   13 |   else if (a < c $$ b < a){
      |   ^~~~
a.cc:13:17: error: expected ')' before '$$'
   13 |   else if (a < c $$ b < a){
      |           ~     ^~~
      |                 )
a.cc:16:3: error: 'else' without a previous 'if'
   16 |   else if (c < a $$ b < c){
      |   ^~~~
a.cc:16:17: error: expected ')' before '$$'
   16 |   else if (c < a $$ b < c){
      |           ~     ^~~
      |                 )
a.cc:19:3: error: 'else' without a previous 'if'
   19 |   else if (b < c $$ a < b){
      |   ^~~~
a.cc:19:17: error: expected ')' before '$$'
   19 |   else if (b < c $$ a < b){
      |           ~     ^~~
      |                 )
a.cc:22:3: error: 'else' without a previous 'if'
   22 |   else{
      |   ^~~~
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:30: error: expected primary-expression before ';' token
    6 |         cin >> a >> b >> c >>;
      |                              ^
a.cc:7:18: error: expected ')' before '$$'
    7 |         if (b < a $$ c < b){
      |            ~     ^~~
      |                  )
a.cc:10:4: error: 'else' without a previous 'if'
   10 |    else if (a < b $$ c < a){
      |    ^~~~
a.cc:10:18: error: expected ')' before '$$'
   10 |    else if (a < b $$ c < a){
      |            ~     ^~~
      |                  )
a.cc:13:3: error: 'else' without a previous 'if'
   13 |   else if (a < c $$ b < a){
      |   ^~~~
a.cc:13:17: error: expected ')' before '$$'
   13 |   else if (a < c $$ b < a){
      |           ~     ^~~
      |                 )
a.cc:16:3: error: 'else' without a previous 'if'
   16 |   else if (c < a $$ b < c){
      |   ^~~~
a.cc:16:17: error: expected ')' before '$$'
   16 |   else if (c < a $$ b < c){
      |           ~     ^~~
      |                 )
a.cc:19:3: error: 'else' without a previous 'if'
   19 |   else if (b < c $$ a < b){
      |   ^~~~
a.cc:19:17: error: expected ')' before '$$'
   19 |   else if (b < c $$ a < b){
      |           ~     ^~~
      |                 )
a.cc:22:3: error: 'else' without a previous 'if'
   22 |   else{
      |   ^~~~
Language: C++

#include<iostream>

using namespace std;

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

}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:8: error: request for member 'begin' in 'a', which is of non-class type 'int [3]'
    8 | sort(a.begin(),a.end());
      |        ^~~~~
a.cc:8:18: error: request for member 'end' in 'a', which is of non-class type 'int [3]'
    8 | sort(a.begin(),a.end());
      |                  ^~~
a.cc:8:1: error: 'sort' was not declared in this scope; did you mean 'short'?
    8 | sort(a.begin(),a.end());
      | ^~~~
      | short
Language: C++

#include<iostream>
#include<algorithm>

using namespace std;

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

}

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

#include<iostream>
#include<algorithm>

using namespace std;

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

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

#include <iostream>
#include <array>

int main(void)
{
    std::array<int, 3> ary;
    std::cin >> ary[0] >> ary[1] >> ary[2];

    std::sort(ary.begin(), ary.end());
    std::cout << ary[0] << " " << ary[1] << " " << ary[2] << std::endl;

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:10: error: 'sort' is not a member of 'std'; did you mean 'qsort'?
    9 |     std::sort(ary.begin(), ary.end());
      |          ^~~~
      |          qsort
Language: C++

#include <iostream>
using namespace std;
int main(){

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

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

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

#include<iostream>
#include<algorithm>
using namespace std;
 
int main()
{
int a[3];
cin>>a[0]>>a[1]>>a[2];
for(int i=0;i<3;i++)
for(int j=i;j<3;j++)
if(a[i]>a[j])
swap(a[i],a[j]);
for(int i=0;i<3;i++)
{
cout<<a[i];
if(a==2)
cout<<endl;
else
cout<<" ";
}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:5: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   16 | if(a==2)
      |    ~^~~
Language: C++

#include<iostream>
#include<algorithm>
using namespace std;
??
int main()
{
int a[3];
cin>>a[0]>>a[1]>>a[2];
for(int i=0;i<3;i++)
for(int j=i;j<3;j++)
if(a[i]>a[j])
swap(a[i],a[j]);
for(int i=0;i<3;i++)
{
cout<<a[i];
if(i==2)
cout<<endl;
else
cout<<" ";
}
}

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

#include <iostream>
using namespace std;
int main (){
	int a[2];
	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: In function 'int main()':
a.cc:8:9: error: 'sort' was not declared in this scope; did you mean 'short'?
    8 |         sort(a,a+3);
      |         ^~~~
      |         short
Language: C++

int main (){

  int a,b,c;
 
  cin >>  a >> b >> c;
  
  if (a<b && b<c)  cout<<a<<" "<<b<<" "<<c<< '\n';
  else if (c<b && b<a)  cout<<c<<" "<<b<<" "<<a<<'\n';
  else if (b<c && c<a) cout <<b<<" "<<c<<" "<<a<<'\n'; 
  else if (b<a && a<c) cout << b<<" "<< a<<" "<< c <<'\n';
  else if (a<c && c<b) cout << a<<" "<< c<<" "<< b << '\n';
  else if (c<a && a<b) cout << c<<" "<< a<<" "<< b <<'\n';
 
return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   cin >>  a >> b >> c;
      |   ^~~
a.cc:7:20: error: 'cout' was not declared in this scope
    7 |   if (a<b && b<c)  cout<<a<<" "<<b<<" "<<c<< '\n';
      |                    ^~~~
a.cc:8:25: error: 'cout' was not declared in this scope
    8 |   else if (c<b && b<a)  cout<<c<<" "<<b<<" "<<a<<'\n';
      |                         ^~~~
a.cc:9:24: error: 'cout' was not declared in this scope
    9 |   else if (b<c && c<a) cout <<b<<" "<<c<<" "<<a<<'\n';
      |                        ^~~~
a.cc:10:24: error: 'cout' was not declared in this scope
   10 |   else if (b<a && a<c) cout << b<<" "<< a<<" "<< c <<'\n';
      |                        ^~~~
a.cc:11:24: error: 'cout' was not declared in this scope
   11 |   else if (a<c && c<b) cout << a<<" "<< c<<" "<< b << '\n';
      |                        ^~~~
a.cc:12:24: error: 'cout' was not declared in this scope
   12 |   else if (c<a && a<b) cout << c<<" "<< a<<" "<< b <<'\n';
      |                        ^~~~
Language: C++

#include<iostream>
using namespace std;

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

int main()
{
  int a, b, c, e;
  cin >> a >> b >> c;
  if(a >= b && b <= c){
    e=b;
    b=a;
    a=e;
    cout << a << " " << b << " " << c << "\n";
}
  if(a <= b && b >= c){
    e=c;
    c=b;
    b=e;
    cout << a << " " << b << " " << c << "\n";
}
  if(a > b && b < c){ 
    e=c;
    c=a;
    a=e;
    cout << a << " " << b << " " << c << "\n";
}
   return 0;
}
    b=a;
    a=e;
    cout << a << " " << b << " " << c << "\n";
}
  if(a <= b && b >= c){
    e=c;
    c=b;
    b=e;
    cout << a << " " << b << " " << c << "\n";
}
  if(a > b && b < c){ 
    e=c;
    c=a;
    a=e;
    cout << a << " " << b << " " << c << "\n";
}
   return 0;
}

Compiler output:
a.cc:9:9: error: stray '#' in program
    9 |     e=b;#include<iostream>
      |         ^
a.cc: In function 'int main()':
a.cc:9:10: error: 'include' was not declared in this scope
    9 |     e=b;#include<iostream>
      |          ^~~~~~~
a.cc:9:26: error: expected primary-expression before '>' token
    9 |     e=b;#include<iostream>
      |                          ^
a.cc:10:1: error: expected primary-expression before 'using'
   10 | using namespace std;
      | ^~~~~
a.cc:12:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   12 | int main()
      |         ^~
a.cc:12:9: note: remove parentheses to default-initialize a variable
   12 | int main()
      |         ^~
      |         --
a.cc:12:9: note: or replace parentheses with braces to value-initialize a variable
a.cc:13:1: error: a function-definition is not allowed here before '{' token
   13 | {
      | ^
Language: C++

  int a, b, c, e;
  cin >> a >> b >> c;
  if(a >= b && b <= c){
    e=b;
    b=a;
    a=e;
    cout << a << " " << b << " " << c << "\n";
}
  if(a <= b && b >= c){
    e=c;
    c=b;
    b=e;  int a, b, c, e;
  cin >> a >> b >> c;
  if(a >= b && b <= c){
    e=b;
    b=a;
    a=e;
    cout << a << " " << b << " " << c << "\n";
}
  if(a <= b && b >= c){
    e=c;
    c=b;
    b=e;
    cout << a << " " << b << " " << c << "\n";
}
  if(a >= c){ 
    e=c;
    c=a;
    a=e;
    cout << a << " " << b << " " << c << "\n";
}
   return 0;
}

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

Compiler output:
a.cc:2:3: error: 'cin' does not name a type
    2 |   cin >> a >> b >> c;
      |   ^~~
a.cc:3:3: error: expected unqualified-id before 'if'
    3 |   if(a >= b && b <= c){
      |   ^~
a.cc:9:3: error: expected unqualified-id before 'if'
    9 |   if(a <= b && b >= c){
      |   ^~
a.cc:35:5: error: 'cout' does not name a type
   35 |     cout << a << " " << b << " " << c << "\n";
      |     ^~~~
a.cc:36:1: error: expected declaration before '}' token
   36 | }
      | ^
a.cc:37:3: error: expected unqualified-id before 'if'
   37 |   if(a >= c){
      |   ^~
a.cc:43:4: error: expected unqualified-id before 'return'
   43 |    return 0;
      |    ^~~~~~
a.cc:44:1: error: expected declaration before '}' token
   44 | }
      | ^
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<< '\n';
  else if (c<b && b<a)  cout<<c<<" "<<b<<" "<<a<<'\n';
  else if (b<c && c<a) cout <<b<<" "<<c<<" "<<a<<'\n'; 
  else if (b<a && a<c) cout << b<<" "<< a<<" "<< c <<'\n';
  else if (a<c && c<b) cout << a<<" "<< c<<" "<< b << '\n';
  else if (c<a && a<b) cout << c<<" "<< a<<" "<< b <<'\n';
 
return 0;

}

Compiler output:
a.cc:2:20: error: expected ';' before 'int'
    2 | using namespace std
      |                    ^
      |                    ;
    3 | int main (){
      | ~~~
Language: C++

using namespace std;

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin>>a;
      |   ^~~
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:26:3: error: 'cout' was not declared in this scope
   26 |   cout<<a<<" "<<b<<" "<<c<<endl;
      |   ^~~~
a.cc:26:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:26:28: error: 'endl' was not declared in this scope
   26 |   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++

#include <iostream>

using namespace std 

int main(){

int a,b,c

cin >> a >> b >> c ;


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



 return 0;
}

Compiler output:
a.cc:3:20: error: expected ';' before 'int'
    3 | using namespace std
      |                    ^
      |                    ;
    4 | 
    5 | int main(){
      | ~~~                 
a.cc: In function 'int main()':
a.cc:9:1: error: expected initializer before 'cin'
    9 | cin >> a >> b >> c ;
      | ^~~
a.cc:13:7: error: 'c' was not declared in this scope
   13 |  if(b>c){
      |       ^
a.cc:20:12: error: 'c' was not declared in this scope
   20 | }else if(b<c){
      |            ^
Language: C++

#include <iostream>

using namespace std;

int main(){

int a,b,c

cin >> a >> b >> c ;


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



 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:1: error: expected initializer before 'cin'
    9 | cin >> a >> b >> c ;
      | ^~~
a.cc:13:7: error: 'c' was not declared in this scope
   13 |  if(b>c){
      |       ^
a.cc:20:12: error: 'c' was not declared in this scope
   20 | }else if(b<c){
      |            ^
Language: C++

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

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

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

int a[2];

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:6: error: 'A' was not declared in this scope
    9 | sort(A,A+3);
      |      ^
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;

class Main{
  public static void main(String[] args){
    try{
      BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
      String str = br.readLine();
      String str2 = str.split(" ");
      int w = Integer.parseInt(str2[0]);
      int h = Integer.parseInt(str2[1]);
      int x = Integer.parseInt(str2[2]);
      int y = Integer.parseInt(str2[3]);
      int r = Integer.parseInt(str2[4]);
      if (w >= (x + r) && (x - r) >= 0 && h >= (y + r) && (y -r) >= 0){
        System.out.println("Yes");
      else {
        System.out.println("No");
      }
    } catch(IOException e){
      System.err.println(e.toString());
    }
  }
}


Compiler output:
Main.java:18: error: 'else' without 'if'
      else {
      ^
Main.java:21: error: 'catch' without 'try'
    } catch(IOException e){
      ^
Main.java:7: error: 'try' without 'catch', 'finally' or resource declarations
    try{
    ^
Main.java:25: error: reached end of file while parsing
}
 ^
4 errors
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;

class Main{
  public static void main(String[] args){
    try{
      BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
      String str = br.readLine();
      String str2 = str.split(" ");
      int w = Integer.parseInt(str2[0]);
      int h = Integer.parseInt(str2[1]);
      int x = Integer.parseInt(str2[2]);
      int y = Integer.parseInt(str2[3]);
      int r = Integer.parseInt(str2[4]);
      if (w >= (x + r) && (x - r) >= 0 && h >= (y + r) && (y -r) >= 0){
        System.out.println("Yes");
      } else {
        System.out.println("No");
      }
    } catch(IOException e){
      System.err.println(e.toString());
    }
  }
}


Compiler output:
Main.java:10: error: incompatible types: String[] cannot be converted to String
      String str2 = str.split(" ");
                             ^
Main.java:11: error: array required, but String found
      int w = Integer.parseInt(str2[0]);
                                   ^
Main.java:12: error: array required, but String found
      int h = Integer.parseInt(str2[1]);
                                   ^
Main.java:13: error: array required, but String found
      int x = Integer.parseInt(str2[2]);
                                   ^
Main.java:14: error: array required, but String found
      int y = Integer.parseInt(str2[3]);
                                   ^
Main.java:15: error: array required, but String found
      int r = Integer.parseInt(str2[4]);
                                   ^
6 errors
Language: Java

class Main
  str = gets
  str = str.split(" ")
  w = str[0]
  h = str[1]
  x = str[2]
  y = str[3]
  r = str[4]
  if w >= (r + x) && h >= (r + y)
    puts "Yes"
  else 
    puts "No"
  end
end


Compiler output:
Main.java:1: error: '{' expected
class Main
          ^
1 error
Language: Java

class Main
  str = gets
  str = str.split(" ")
  w = str[0]
  h = str[1]
  x = str[2]
  y = str[3]
  r = str[4]
  if w >= (x + r) && h >= (y + r) && 0 <= (x - r) && 0 <= (y - r)
    puts "Yes"
  else 
    puts "No"
  end
end


Compiler output:
Main.java:1: error: '{' expected
class Main
          ^
1 error
Language: Java

import util.java.Scanner;

public class Main{
   Public static void main(string [] Args){
      Scanner sc = new Scanner(System.in);
      int  W = sc.nextInt();
      int  H = sc.nextInt();
      int  x = sc.nextInt();
      int  y = sc.nextInt();
      int  r = sc.nextInt();
      
      int a;
      a = W*H;
      s = r*r*Math.PI;
      e=a-s;
      if(x<W && y<H && x>0 && y>0)
        System.out.println("Yes");
      else
        System.out.println("No");
   }
}


Compiler output:
Main.java:4: error: <identifier> expected
   Public static void main(string [] Args){
         ^
1 error
Language: Java

import util.java.Scanner;

public class Main{
   Public static void main(String [] Args){
      Scanner sc = new Scanner(System.in);
      int  W = sc.nextInt();
      int  H = sc.nextInt();
      int  x = sc.nextInt();
      int  y = sc.nextInt();
      int  r = sc.nextInt();
      
      int a;
      a = W*H;
      s = r*r*Math.PI;
      e=a-s;
      if(x<W && y<H && x>0 && y>0)
        System.out.println("Yes");
      else
        System.out.println("No");
   }
}


Compiler output:
Main.java:4: error: <identifier> expected
   Public static void main(String [] Args){
         ^
1 error
Language: Java

import util.java.Scanner;

public class Main{
   public static void main(String [] Args){
      Scanner sc = new Scanner(System.in);
      int  W = sc.nextInt();
      int  H = sc.nextInt();
      int  x = sc.nextInt();
      int  y = sc.nextInt();
      int  r = sc.nextInt();
      
     
      if(x<W && y<H && x>0 && y>0 && r+x<W && r+y<H)
        System.out.println("Yes");
      else
        System.out.println("No");
   }
}


Compiler output:
Main.java:1: error: cannot find symbol
import util.java.Scanner;
                ^
  symbol:   class Scanner
  location: package util.java
Main.java:5: error: cannot find symbol
      Scanner sc = new Scanner(System.in);
      ^
  symbol:   class Scanner
  location: class Main
Main.java:5: error: cannot find symbol
      Scanner sc = new Scanner(System.in);
                       ^
  symbol:   class Scanner
  location: class Main
3 errors
Language: Java

import java.util.Scanner;

public class Circle {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int W = sc.nextInt();
		int H = sc.nextInt();
		int x = sc.nextInt();
		int y = sc.nextInt();
		int r = sc.nextInt();

		if (0>(x+r) || 0>(y+r)) {
			System.out.println("No");
		} else if (W < (x + r) || H < (y + r)) {
			System.out.println("No");
		} else {
			System.out.println("Yes");
		}
	}
}


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

import java.util.*;

public class Main { //クラス名はMain
    public static void main(String[] args) {
     Scanner sc = new Scanner(System.in);


int w = sc.nextInt();

int h = sc.nextInt();

int x = sc.nextInt();

int y = sc.nextInt();

int r = sc.nextInt();

int mainasu = x-r;
int plas = x+r;

if(mainasu < 0 || plas >w)
{
System.out.println("No");
}else if(mainasu >= 0 $$ plas <= w)
{
System.out.println("Yes");
}

    }
}


Compiler output:
Main.java:24: error: ')' expected
}else if(mainasu >= 0 $$ plas <= w)
                     ^
Main.java:24: error: ';' expected
}else if(mainasu >= 0 $$ plas <= w)
                             ^
Main.java:24: error: variable declaration not allowed here
}else if(mainasu >= 0 $$ plas <= w)
                         ^
Main.java:24: error: not a statement
}else if(mainasu >= 0 $$ plas <= w)
                                 ^
Main.java:24: error: ';' expected
}else if(mainasu >= 0 $$ plas <= w)
                                  ^
5 errors
Language: Java

import java.util.*;

public class Main { //クラス名はMain
    public static void main(String[] args) {
     Scanner sc = new Scanner(System.in);


int w = sc.nextInt();

int h = sc.nextInt();

int x = sc.nextInt();

int y = sc.nextInt();

int r = sc.nextInt();

int mainasu = x-r;
int plas = x+r;

if(mainasu < 0 || plas >w)
{
System.out.println("No");
}else if(mainasu >= 0 $$ plas <= w)
{
System.out.println("Yes");
}
}

    }
}


Compiler output:
Main.java:24: error: ')' expected
}else if(mainasu >= 0 $$ plas <= w)
                     ^
Main.java:24: error: ';' expected
}else if(mainasu >= 0 $$ plas <= w)
                             ^
Main.java:24: error: variable declaration not allowed here
}else if(mainasu >= 0 $$ plas <= w)
                         ^
Main.java:24: error: not a statement
}else if(mainasu >= 0 $$ plas <= w)
                                 ^
Main.java:24: error: ';' expected
}else if(mainasu >= 0 $$ plas <= w)
                                  ^
Main.java:31: error: class, interface, enum, or record expected
}
^
6 errors
Language: Java

import java.util.*;

public class Main { //クラス名はMain
    public static void main(String[] args) {
     Scanner sc = new Scanner(System.in);


int w = sc.nextInt();

int h = sc.nextInt();

int x = sc.nextInt();

int y = sc.nextInt();

int r = sc.nextInt();

int mainasu = x-r;
int plas = x+r;

if(mainasu < 0 || plas >w)
{
System.out.println("No");
}else if(mainasu >= 0 && plas <= w)
{
System.out.println("Yes");
}
}

    }
}


Compiler output:
Main.java:31: error: class, interface, enum, or record expected
}
^
1 error