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

#include

<cstdio>


double
xA,yA,xB,yB,xC,yC,xD,yD;

int
main()
{

	

while
(~scanf(

"%lf%lf%lf%lf%lf%lf%lf%lf"
,&xA,&yA,&xB,&yB,&xC,&yC,&xD,&yD))

	

{

		

if
((xB-xA)*(xD-xC)+(yB-yA)*(yD-yC)==0)printf(

"YES\n"
);

		

else
printf(

"NO\n"
);

	

}
}

Compiler output:
a.cc:1:9: error: #include expects "FILENAME" or <FILENAME>
    1 | #include
      |         ^
a.cc:3:1: error: expected unqualified-id before '<' token
    3 | <cstdio>
      | ^
a.cc: In function 'int main()':
a.cc:19:3: error: 'xA' was not declared in this scope
   19 | ,&xA,&yA,&xB,&yB,&xC,&yC,&xD,&yD))
      |   ^~
a.cc:19:7: error: 'yA' was not declared in this scope
   19 | ,&xA,&yA,&xB,&yB,&xC,&yC,&xD,&yD))
      |       ^~
a.cc:19:11: error: 'xB' was not declared in this scope
   19 | ,&xA,&yA,&xB,&yB,&xC,&yC,&xD,&yD))
      |           ^~
a.cc:19:15: error: 'yB' was not declared in this scope
   19 | ,&xA,&yA,&xB,&yB,&xC,&yC,&xD,&yD))
      |               ^~
a.cc:19:19: error: 'xC' was not declared in this scope
   19 | ,&xA,&yA,&xB,&yB,&xC,&yC,&xD,&yD))
      |                   ^~
a.cc:19:23: error: 'yC' was not declared in this scope
   19 | ,&xA,&yA,&xB,&yB,&xC,&yC,&xD,&yD))
      |                       ^~
a.cc:19:27: error: 'xD' was not declared in this scope
   19 | ,&xA,&yA,&xB,&yB,&xC,&yC,&xD,&yD))
      |                           ^~
a.cc:19:31: error: 'yD' was not declared in this scope
   19 | ,&xA,&yA,&xB,&yB,&xC,&yC,&xD,&yD))
      |                               ^~
a.cc:16:3: error: 'scanf' was not declared in this scope
   16 | (~scanf(
      |   ^~~~~
a.cc:28:37: error: 'printf' was not declared in this scope
   28 | ((xB-xA)*(xD-xC)+(yB-yA)*(yD-yC)==0)printf(
      |                                     ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | #include
a.cc:36:1: error: 'printf' was not declared in this scope
   36 | printf(
      | ^~~~~~
a.cc:36:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C++

#include

<cstdio>

using namespace std;


double
xA,yA,xB,yB,xC,yC,xD,yD;

int
main()
{

	

while
(~scanf(

"%lf%lf%lf%lf%lf%lf%lf%lf"
,&xA,&yA,&xB,&yB,&xC,&yC,&xD,&yD))

	

{

		

if
((xB-xA)*(xD-xC)+(yB-yA)*(yD-yC)==0)printf(

"YES\n"
);

		

else
printf(

"NO\n"
);

	

}
}

Compiler output:
a.cc:1:9: error: #include expects "FILENAME" or <FILENAME>
    1 | #include
      |         ^
a.cc:3:1: error: expected unqualified-id before '<' token
    3 | <cstdio>
      | ^
a.cc: In function 'int main()':
a.cc:18:3: error: 'scanf' was not declared in this scope
   18 | (~scanf(
      |   ^~~~~
a.cc:30:37: error: 'printf' was not declared in this scope
   30 | ((xB-xA)*(xD-xC)+(yB-yA)*(yD-yC)==0)printf(
      |                                     ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | #include
a.cc:38:1: error: 'printf' was not declared in this scope
   38 | printf(
      | ^~~~~~
a.cc:38:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C++

#include <iostream>

2.#include <cstdio>

3.using namespace std;

4. 

5.struct point

6.{

7.	double x, y;

8.};

9. 

10.int main() {

11.	point p[4];

12.	while (true){

13.		for (int i = 0; i < 4; i++){

14.			if (scanf("%lf%lf", &p[i].x, &p[i].y) == EOF) return 0;

15.		}

16.		//cout << (p[1].x - p[0].x) * (p[3].x - p[2].x) + (p[1].y - p[0].y) * (p[3].y - p[2].y) << endl;

17.		if ((p[1].x - p[0].x) * (p[3].x - p[2].x) + 

18.		    (p[1].y - p[0].y) * (p[3].y - p[2].y) == 0.00){

19.			cout << "YES" << endl;

20.		}

21.		else {

22.			cout << "NO" << endl;

23.		}

24.	}

25.}

Compiler output:
a.cc:3:3: error: stray '#' in program
    3 | 2.#include <cstdio>
      |   ^
a.cc:3:1: error: expected unqualified-id before numeric constant
    3 | 2.#include <cstdio>
      | ^~
a.cc:7:1: error: expected unqualified-id before numeric constant
    7 | 4.
      | ^~
a.cc:17:1: error: expected unqualified-id before numeric constant
   17 | 9.
      | ^~
Language: C++

#include<cstdio>
#include<cmath>
#include<algorithm>
#include<iostream>
#include<string>
#include <vector>
#include <map>
#include<cstdlib>


using namespace std;

void Solution()
{
    double xA, yA;
    double xB, yB;
    double xC, yC;
    double xD, yD;
    
    while(cin>>xA>>yA>xB>>yB>>xC>>yC>>xD>>yD)
    {
        //algorithm
        double a,b,c,d;
        
        a = (yA-yB);
        b = (xA-xB);
        c = (yC-yD);
        d = (xC-xD);
        
        (a*c + b*d == 0) ? puts("YES") : puts("NO");
    }

}


int main()
{
    Solution();
    return 0;
}

Compiler output:
a.cc: In function 'void Solution()':
a.cc:20:25: error: invalid operands of types 'double' and 'double' to binary 'operator>>'
   20 |     while(cin>>xA>>yA>xB>>yB>>xC>>yC>>xD>>yD)
      |                       ~~^~~~
      |                       |   |
      |                       |   double
      |                       double
Language: C++

main(){float a,b,c,d,e,f,g,h;while(~scanf("%f%f%f%f%f%f%f%f",&a,&b,&c,&d,&e,&f,&g,&h)){puts((c-a)*(g-e)+(d-b)*(h-f)?"NO":"YES");}exit(0);}

Compiler output:
a.cc:1:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    1 | main(){float a,b,c,d,e,f,g,h;while(~scanf("%f%f%f%f%f%f%f%f",&a,&b,&c,&d,&e,&f,&g,&h)){puts((c-a)*(g-e)+(d-b)*(h-f)?"NO":"YES");}exit(0);}
      | ^~~~
a.cc: In function 'int main()':
a.cc:1:37: error: 'scanf' was not declared in this scope
    1 | main(){float a,b,c,d,e,f,g,h;while(~scanf("%f%f%f%f%f%f%f%f",&a,&b,&c,&d,&e,&f,&g,&h)){puts((c-a)*(g-e)+(d-b)*(h-f)?"NO":"YES");}exit(0);}
      |                                     ^~~~~
a.cc:1:88: error: 'puts' was not declared in this scope
    1 | main(){float a,b,c,d,e,f,g,h;while(~scanf("%f%f%f%f%f%f%f%f",&a,&b,&c,&d,&e,&f,&g,&h)){puts((c-a)*(g-e)+(d-b)*(h-f)?"NO":"YES");}exit(0);}
      |                                                                                        ^~~~
a.cc:1:130: error: 'exit' was not declared in this scope
    1 | main(){float a,b,c,d,e,f,g,h;while(~scanf("%f%f%f%f%f%f%f%f",&a,&b,&c,&d,&e,&f,&g,&h)){puts((c-a)*(g-e)+(d-b)*(h-f)?"NO":"YES");}exit(0);}
      |                                                                                                                                  ^~~~
a.cc:1:1: note: 'exit' is defined in header '<cstdlib>'; this is probably fixable by adding '#include <cstdlib>'
  +++ |+#include <cstdlib>
    1 | main(){float a,b,c,d,e,f,g,h;while(~scanf("%f%f%f%f%f%f%f%f",&a,&b,&c,&d,&e,&f,&g,&h)){puts((c-a)*(g-e)+(d-b)*(h-f)?"NO":"YES");}exit(0);}
Language: C++

#include <iostream>

using namespace std;

int main(){
  double xa,ya,xb,yb,xc,yc,xd,yd;
  while(cin>>xa>>ya>>xb>>yb>>xc>>yc>>xd>>yd){
    if((yb-ya)*(yd-yc)+(xb-xa)*(xd-xc)==0) cout<<"YES"<<endl;;
    else cout<<"NO"<<endl;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: 'else' without a previous 'if'
    9 |     else cout<<"NO"<<endl;
      |     ^~~~
Language: C++

#include <iostream>
using namespace std;

int main()
{
	double x[4];
	double y[4];
	while (true)
	{
		for (int i = 0; i < 4; i++)
		{
			if (!(cin >> x[i] >> y[i])) break;
		}

		double dx1 = x[1] - x[0];
		double dy1 = y[1] - y[0];
		double dx2 = x[3] - x[2];
		double dy2 = y[3] - y[2];
		double innerProduct = (dx1 * dx2) + (dy1 * dy2);

		if (fabs(innerProduct) < 0.0000001) cout << "YES" << endl;
		else cout << "NO" << endl;
	}

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:21: error: 'fabs' was not declared in this scope; did you mean 'labs'?
   21 |                 if (fabs(innerProduct) < 0.0000001) cout << "YES" << endl;
      |                     ^~~~
      |                     labs
Language: C++

#include<iostream>

using namespace std;

double ESP = 1e-10

struct point {
  double x, y;
};

int main() {
  point P[4];

  while(true){
    for(int i = 0; i < 4; i++){
      cin >> P[i].x >> P[i].y;
    }
    if(cin.eof()) break;

    if((P[1].y - P[0].y)*(P[3].y - P[2].y) + (P[3].x - P[2].x)*(P[1].x - P[0].x) < ESP) {
      cout << "YES" << endl;
    } else {
      cout << "NO" << endl;
    }
  }

    return 0;
}

Compiler output:
a.cc:7:1: error: expected ',' or ';' before 'struct'
    7 | struct point {
      | ^~~~~~
a.cc: In function 'int main()':
a.cc:12:3: error: 'point' was not declared in this scope
   12 |   point P[4];
      |   ^~~~~
a.cc:16:14: error: 'P' was not declared in this scope
   16 |       cin >> P[i].x >> P[i].y;
      |              ^
a.cc:20:9: error: 'P' was not declared in this scope
   20 |     if((P[1].y - P[0].y)*(P[3].y - P[2].y) + (P[3].x - P[2].x)*(P[1].x - P[0].x) < ESP) {
      |         ^
Language: C++

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

double ESP = 1e-10;

struct point {
  double x, y;
};

int main() {
  point P[4];

  while(true){
    for(int i = 0; i < 4; i++){
      cin >> P[i].x >> P[i].y;
    }
    if(cin.eof()) break;

    if(abs((P[1].y - P[0].y)*(P[3].y - P[2].y) + (P[3].x - P[2].x)*(P[1].x - P[0].x)) < ESP) {
      cout << "YES" << endl;
    } else {
      cout << "NO" << endl;
    }
  }

    return 0;
}

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

1.0 1.0 2.0 2.0 0.0 0.0 1.0 -1.0
0.0 0.0 2.0 0.0 -1.0 2.0 2.0 2.0
10.0 6.0 3.4 5.2 6.8 9.5 4.3 2.1
2.5 3.5 2.5 4.5 -3.3 -2.3 6.8 -2.3

Compiler output:
a.cc:1:1: error: expected unqualified-id before numeric constant
    1 | 1.0 1.0 2.0 2.0 0.0 0.0 1.0 -1.0
      | ^~~
Language: C++

#include<stdio.h>
#include<cstudio>
#include<iostream>
double abs(double a){return a<0?-a:a;}
int main(){
    double xa,xb,xc,xd,ya,yb,yc,yd;
    while(~scanf("%lf%lf%lf%lf%lf%lf%lf%lf",&xa,&ya,&xb,&yb,&xc,&yc,&xd,&yd)){
        double t=(xa-xb)*(xc-xd)+(ya-yb)*(yc-yd);
        if(abs(t)<0.00001)printf("YES\n");
        else printf("NO\n");
    }
}


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

include <iostream>
using namespace std;

struct Point {
  double x, y;
  Point(double x = 0, double y = 0):x(x), y(y){}
  Point operator +(Point p) { return Point(x+p.x, y+p.y);}
  Point operator -(Point p) { return Point(x-p.x, y-p.y);}
  Point operator *(double t) { return Point(x*t, y*t);}
};

typedef Point Vector;

int naiseki(Vector a, Vector b);

int isTyokko(Point a1, Point a2, Point b1, Point b2) {
  if(naiseki(Vector(a1.x-a2.x, a1.y-a2.y), Vector(b1.x-b2.x, b1.y-b2.y)) == 0) {
    return 1;
  } else {
    return 0;
  }
}

int naiseki(Vector a, Vector b) {
  return a.x*b.x + a.y*b.y;
}

int main() {
  Point a, b, c, d;
  while(scanf("%lf %lf %lf %lf %lf %lf %lf %lf", &a.x, &a.y, &b.x, &b.y, &c.x, &c.y, &d.x, &d.y) != EOF) {
    if(isTyokko(a, b, c, d)) printf("YES\n");
    else printf("NO\n");
  }
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:30:9: error: 'scanf' was not declared in this scope
   30 |   while(scanf("%lf %lf %lf %lf %lf %lf %lf %lf", &a.x, &a.y, &b.x, &b.y, &c.x, &c.y, &d.x, &d.y) != EOF) {
      |         ^~~~~
a.cc:30:101: error: 'EOF' was not declared in this scope
   30 |   while(scanf("%lf %lf %lf %lf %lf %lf %lf %lf", &a.x, &a.y, &b.x, &b.y, &c.x, &c.y, &d.x, &d.y) != EOF) {
      |                                                                                                     ^~~
a.cc:1:1: note: 'EOF' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | include <iostream>
a.cc:31:30: error: 'printf' was not declared in this scope
   31 |     if(isTyokko(a, b, c, d)) printf("YES\n");
      |                              ^~~~~~
a.cc:31:30: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
a.cc:32:10: error: 'printf' was not declared in this scope
   32 |     else printf("NO\n");
      |          ^~~~~~
a.cc:32:10: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C++

#include <cmath>
#include <complex>
#include <vector>
#include <cfloat>
#include <algorithm>
using namespace std;


///////////////////////
//二次元幾何テンプレート
//点クラス point->x,y
//直線クラス line->s,v
//
class point;
class line;
point vec_add(point vec1,point vec2);//ベクトルの足し算
point vec_sub(point vec1,point vec2);//ベクトルの引き算
double inner_product(point a,point b);//内積
double outer_product(point a,point b);//外積
bool vec_parallel(point vec1,point vec2);//ベクトルの並行判定(交差判定falseとしても使える)
bool vec_angle_right(point vec1,point vec2);//ベクトルの直行判定
bool cross_line_segment(line a,point p1,point p2);//直線と線分の交差判定
//
class point{
public:
	double x,y;
	point(){
		x=0;
		y=0;
	}
	point(double a,double b){
		x=a;
		y=b;
	}
};

//直線クラス
class line{
public:
	point s,v;
public:
	line(point a,point b){
		s=a;
		v=vec_sub(a,b);
	}
};
///////////////////////


int main(){
	point a[4];
	while(std::cin>>a[0].x>>a[0].y){
		for(int i=1;i<4;i++){
			cin>>a[i].x>>a[i].y;
		}
		bool f=vec_angle_right(vec_sub(a[0],a[1]),vec_sub(a[2],a[3]));
		if(f){
			cout<<"YES"<<endl;
		}else{
			cout<<"NO"<<endl;
		}
	}
}
//


//多角形(頂点を保持する)
typedef vector<point> polygon;

//ベクトルの足し算
point vec_add(point vec1,point vec2){
	point res(vec1.x+vec2.x,vec1.y+vec2.y);
	return res;
}
//ベクトルの引き算
point vec_sub(point vec1,point vec2){
	point res(vec1.x-vec2.x,vec1.y-vec2.y);
	return res;
}
//内積
double inner_product(point a,point b){
	return a.x * b.x + a.y * b.y;
}
//外積
double outer_product(point a,point b){
	return a.x * b.y - a.y * b.x;
}


//ベクトルの並行判定
bool vec_parallel(point vec1,point vec2){
	if(outer_product(vec1,vec2)==0){
		return true;
	}else{
		return false;
	}
}
//ベクトルの直交判定
bool vec_angle_right(point vec1,point vec2){
	if(inner_product(vec1,vec2)==0){
		return true;
	}else{
		return false;
	}
}

bool cross_line_segment(line l,point p1,point p2){
	p1=vec_sub(p1,l.s);
	p2=vec_sub(p2,l.s);
	if(outer_product(p1,l.v)*outer_product(p2,l.v)<0){
		return true;
	}else{
		return false;
	}
}



//

Compiler output:
a.cc: In function 'int main()':
a.cc:52:20: error: 'cin' is not a member of 'std'
   52 |         while(std::cin>>a[0].x>>a[0].y){
      |                    ^~~
a.cc:6:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    5 | #include <algorithm>
  +++ |+#include <iostream>
    6 | using namespace std;
a.cc:54:25: error: 'cin' was not declared in this scope
   54 |                         cin>>a[i].x>>a[i].y;
      |                         ^~~
a.cc:54:25: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:58:25: error: 'cout' was not declared in this scope
   58 |                         cout<<"YES"<<endl;
      |                         ^~~~
a.cc:58:25: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:60:25: error: 'cout' was not declared in this scope
   60 |                         cout<<"NO"<<endl;
      |                         ^~~~
a.cc:60:25: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include <iostream>

using namespace std;

/** Problem0058 : Orthogonal **/
int main()
{
	double xA, yA, xB, yB, xC, yC, xD, yD, EPS=1e-12;
	
	while (cin >> xA >> yA >>xB >> yB >> xC >> yC >> xD >> yD) {
		if (fabs((xB-xA)*(xD-xC)+(yB-yA)*(yD-yC))<EPS)
			cout << "YES" << endl;
		else
			cout << "NO" << endl;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:21: error: 'fabs' was not declared in this scope; did you mean 'labs'?
   11 |                 if (fabs((xB-xA)*(xD-xC)+(yB-yA)*(yD-yC))<EPS)
      |                     ^~~~
      |                     labs
Language: Java

import java.util.*;
import java.io.*;
import static java.lang.Math.*;

class Main {

    static final eps = 1.0e-8;
    static final int X = 0;
    static final int Y = 1;
    
    public static void main( String[] args ) {

	final Scanner stdin = new Scanner( System.in );

	while ( stdin.hasNextDouble() ) {
	    final double[][] ps = new double[4][2];
	    for ( int i = 0; i < 4; i++ ){
		ps[i][X] = stdin.nextDouble();
		ps[i][Y] = stdin.nextDouble();
	    }

	    if ( inside( ps[0], ps[1], ps[2][X], ps[2][Y] ) ||
		 inside( ps[0], ps[1], ps[2][X], ps[3][Y] ) ||
		 inside( ps[0], ps[1], ps[3][X], ps[2][Y] ) ||
		 inside( ps[0], ps[1], ps[3][X], ps[3][Y] ) ){

		System.out.println( "YES" );
	    } else {
		System.out.println( "NO" );
	    }
	}
    }

    static boolean inside( final double[] p1, final double[] p2, final double x, final double y ) {
	return ( min( p1[X], p2[X] ) - eps <= x && x <= max( p1[X], p2[X] ) + eps &&
		 min( p1[Y], p2[Y] ) - eps <= y && y <= max( p1[Y], p2[Y] ) + eps );
    }    
}

Compiler output:
Main.java:7: error: <identifier> expected
    static final eps = 1.0e-8;
                    ^
1 error
Language: C

#include <stdio.h>
#include <math.h>
??
int main(void) {
????????double xa1, ya1, xa2, ya2, xb1, yb1, xb2, yb2;
????????while (scanf("%lf %lf %lf %lf %lf %lf %lf %lf", &xa1, &ya1, &xa2, &ya2, &xb1, &yb1, &xb2, &yb2) != EOF) {
????????????????if (fabs((xa1+xa2)-(xb1+xb2))/2.0 <= (fabs(xa2-xa1)+fabs(xb2-xb1))/2.0 || fabs((ya1+ya2)-(yb1+yb2))/2.0 <= (fabs(ya2-ya1)+fabs(yb2-yb1))/2.0)
????????????????????????printf("YES\n");
????????????????else
????????????????????????printf("NO\n");
????????}
????????return 0;
}

Compiler output:
main.c:3:1: error: expected identifier or '(' before '?' token
    3 | ??
      | ^
Language: C

#include<stdio.h>
int main(void){
   int xa1, xa2, xb1, xb2, ya1, ya2, yb1, yb2, key;
   scanf("%d %d %d %d %d %d %d %d %d", &xa1, &ya1, &xa2, &ya2, &xb1, &yb1, &xb2, &yb2);
   if ( xa1 > xa2 ) { xa1 = key; xa1 = xa2; xa2 = key; }
   if ( ya1 > ya2 ) { ya1 = key; ya1 = ya2; ya2 = key; }
   if ( xb1 > xb2 ) { xb1 = key; xb1 = xb2; xb2 = key; }
   if ( yb1 > yb2 ) { yb1 = key; yb1 = yb2; yb2 = key; }

   if ( xa1 < xb1 && xb1 < xa2 ) {
      if ( ya1 < yb1 && yb1< ya2) printf("YES");
      else if (ya1 < yb2 && yb2 < ya2 ) printf("YES");
      else printf("NO");
   }
   else if (xa1 < xb2 && xb2 < xa2 ) {
      if ( ya1 < yb1 && yb1 < ya2 ) printf("YES");
      else if ( ya1 < yb2 && yb2 < ya2 ) printf("NO");
      else printf("NO");
   else printf("NO");
   return 0;
}
 

Compiler output:
main.c: In function 'main':
main.c:19:4: error: expected '}' before 'else'
   19 |    else printf("NO");
      |    ^~~~
Language: C

include <stdio.h>

int main(){
  double xa1,ya1,xa2,ya2,xb1,yb1,xb2,yb2;
  while(scanf("%lf %lf %lf %lf %lf %lf %lf %lf",
              &xa1,&ya1,&xa2,&ya2,&xb1,&yb1,&xb2,&yb2)!=EOF){
    if (((xb1<=xa1 && xa1<=xb2) && (yb1<=ya2 && ya2<=yb2)) ||
        ((xb1<=xa1 && xa1<=xb2) && (yb1<=ya1 && ya1<=yb2)) ||
        ((xb1<=xa2 && xa2<=xb2) && (yb1<=ya2 && ya2<=yb2)) ||
        ((xb1<=xa2 && xa2<=xb2) && (yb1<=ya1 && ya1<=yb2)) ||
        ((xa1<=xb1 && xb1<=xa2) && (ya1<=yb2 && yb2<=ya2)) ||
        ((xa1<=xb1 && xb1<=xa2) && (ya1<=yb1 && yb1<=ya2)) ||
        ((xa1<=xb2 && xb2<=xa2) && (ya1<=yb2 && yb2<=ya2)) ||
        ((xa1<=xb2 && xb2<=xa2) && (ya1<=yb1 && yb1<=ya2)))
      puts("YES");
    else
      puts("NO");
  }
  return 0;
}

Compiler output:
main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include <stdio.h>
      |         ^
Language: C

#include <stdio.h>

int main(){
  double xa1,ya1,xa2,ya2,xb1,yb1,xb2,yb2;
  while(scanf("%lf %lf %lf %lf %lf %lf %lf %lf",
              &xa1,&ya1,&xa2,&ya2,&xb1,&yb1,&xb2,&yb2)!=EOF){
    if (((xb1<=xa1 && xa1<=xb2) && (yb1<=ya2 && ya2<=yb2)) ||
        ((xb1<=xa1 && xa1<=xb2) && (yb1<=ya1 && ya1<=yb2)) ||
)
      puts("YES");
    else
      puts("NO");
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:1: error: expected expression before ')' token
    9 | )
      | ^
Language: C++

import sys
for s in sys.stdin:
  a,b,c,d,e,f,g,h=map(float,s.split())
  print ["YES","NO"][any([c<e,g<a,d<f,h<b])]

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import sys
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

#include <iostream>

using namespace std;

int function(double xa1,double ya1,double xb1,double yb1,double xa2,double ya2,double xb2,double yb2){
	if( (xa1<=xa2&&xa2<=xb1) && (ya1<=yb2&&yb2<=yb1)||
			(xa1<=xa2&&xb1<=xb2)&&(ya1<=ya2&&ya2<=yb1)||
			(xa1<=xb2&&xb2<=xb1)&&(ya1<=yb2&&yb2<=yb1)||
			(xa1<=xb2&&xb2<=xb1)&&(ya1<=ya2&&ya2<=yb1)||
			(xa2<=xa1&&xb1<=xb2)&&(ya2<=ya1)&&(yb1<=yb2)
			(xa1<=xa2&&xb2<=xb1)&&(ya1<=ya2)&&(yb2<=yb1)){
		return 1;
	}
	else{
		return 0;
	}
}

int main(){

	double xa1,ya1,xb1,yb1,xa2,ya2,xb2,yb2;

	while(cin>>xa1){
		cin>>ya1;
		cin>>xb1;
		cin>>yb1;
		cin>>xa2;
		cin>>ya2;
		cin>>xb2;
		cin>>yb2;
		int flag = function(xa1,ya1,xb1,yb1,xa2,ya2,xb2,yb2);
		if(flag==1){
			cout<<"YES"<<endl;
		}
		else{
			cout<<"NO"<<endl;
		}
	}
	return 0;
}

Compiler output:
a.cc: In function 'int function(double, double, double, double, double, double, double, double)':
a.cc:11:25: error: expression cannot be used as a function
   10 |                         (xa2<=xa1&&xb1<=xb2)&&(ya2<=ya1)&&(yb1<=yb2)
      |                                                           ~~~~~~~~~~
   11 |                         (xa1<=xa2&&xb2<=xb1)&&(ya1<=ya2)&&(yb2<=yb1)){
      |                         ^~~~~~~~~~~~~~~~~~~~
a.cc:17:1: warning: control reaches end of non-void function [-Wreturn-type]
   17 | }
      | ^
Language: C++

#include "bits/stdc++.h"

using namespace std;

typedef vector<double> vi;
typedef pair<double,double> pii;
typedef long long ll;

#define dump(x)  cerr << #x << " = " << (x) << endl
#define rep(i,n) for(int i=0;i<(n);i++)
#define all(a)  (a).begin(),(a).end()
#define pb push_back


bool in(double xa1,double ya1,double xa2,double ya2,double xa3,double ya3,double xa4,double ya4, double x,double y ){
	if( xa1<=x && x<=xa2 && ya1<=y && y<=ya2 )return true;
	else return false;
}

bool solve(double xa1,double ya1,double xa2,double ya2,double xb1,double yb1,double xb2,double yb2){
	double xb3=xb1,yb3=yb2,yb4=yb2,yb4=yb1;
	double xa3=xa1,ya3=ya2,xa4=xa2,ya4=ya1;

	if( in(xa1,ya1,xa2,ya2,xa3,ya3,xa4,ya4 , xb1,yb1 ) )return true;
	if( in(xa1,ya1,xa2,ya2,xa3,ya3,xa4,ya4 , xb2,yb2 ) )return true;
	if( in(xa1,ya1,xa2,ya2,xa3,ya3,xa4,ya4 , xb3,yb3 ) )return true;
	if( in(xa1,ya1,xa2,ya2,xa3,ya3,xa4,ya4 , xb4,yb4 ) )return true;
	return false;
}


int main(){
	double xa1,ya1,xa2,ya2;
	double xb1,yb1,xb2,yb2;
	while(cin>>xa1>>ya1>>xa2>>ya2>>xb1>>yb1>>xb2>>yb2){
		if( solve(xa1,ya1,xa2,ya2,xb1,yb1,xb2,yb2) )cout<<"YES"<<endl;
		else cout<<"NO"<<endl;
	}
	return 0;
}

Compiler output:
a.cc: In function 'bool solve(double, double, double, double, double, double, double, double)':
a.cc:21:40: error: redeclaration of 'double yb4'
   21 |         double xb3=xb1,yb3=yb2,yb4=yb2,yb4=yb1;
      |                                        ^~~
a.cc:21:32: note: 'double yb4' previously declared here
   21 |         double xb3=xb1,yb3=yb2,yb4=yb2,yb4=yb1;
      |                                ^~~
a.cc:27:50: error: 'xb4' was not declared in this scope; did you mean 'xa4'?
   27 |         if( in(xa1,ya1,xa2,ya2,xa3,ya3,xa4,ya4 , xb4,yb4 ) )return true;
      |                                                  ^~~
      |                                                  xa4
Language: C++

import java.awt.Point;
import java.awt.geom.*;
import java.awt.geom.Point2D.Double;
import java.util.*;
 
public class Main {
    Scanner sc = new Scanner(System.in);
 
    public static void main(String[] args) {
        new Main(); 
    }
 
    public Main() {
    	new aoj0059().doIt();
    }
    class aoj0059{
    	void doIt(){
    		while(sc.hasNext()){
    			boolean in = false;
    			Point2D p[] = new Point2D[4];
    			Point2D p2[] = new Point2D[4];
    			for(int i = 0;i < 2;i++){
    				p[i*2] = new Point2D.Double(sc.nextDouble(),sc.nextDouble());
    			}
    			p[1] = new Point2D.Double(p[0].getX(),p[2].getY());
    			p[3] = new Point2D.Double(p[2].getX(),p[0].getY());
    			for(int i = 0;i < 2;i++){
    				p2[i*2] = new Point2D.Double(sc.nextDouble(),sc.nextDouble());
    			}
    			p2[1] = new Point2D.Double(p2[0].getX(),p2[2].getY());
    			p2[3] = new Point2D.Double(p2[2].getX(),p2[0].getY());
    			for(int i = 0;i < 4;i++){
    				if(contains(p,p2[i]) > 0)in = true;
    			}
    			if(in)System.out.println("YES");
    			else System.out.println("NO");
            }
    	}
    	int contains(Point2D[] plist,Point2D p) {
    		boolean isin = false;
    		int n = plist.length;
    		for(int i=0;i<n;i++){
    			Point2D a = sub(plist[i], p);
    			Point2D b = sub(plist[(i+1) % n], p);
    			if(a.getY() > b.getY()){
    				Point2D temp = (Point2D) a.clone();
    				a = b;
    				b = temp;
    			}
    			if(a.getY() <= 0 && 0 < b.getY()){
    				if(cross(a,b) < 0) isin = ! isin;
    			}
    			if(cross(a,b) == 0 && dot(a, b) <= 0) return 0;
    		}
    		return isin ? 1 : -1;
    	}
    	Point2D sub(Point2D p2, Point2D p1) {
            double x = p2.getX() - p1.getX();
            double y = p2.getY() - p1.getY();
            return new Point2D.Double(x, y);
    	}
    	double cross(Point2D p1, Point2D p2){
    		double res = p1.getX() * p2.getY() - p1.getY() * p2.getX();
    		return res;
    	}
    	double dot(Point2D p1,Point2D p2){
    		return p1.getX() * p2.getX() + p1.getY() * p2.getY();
    	}
    }
}

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

#include<iostream>

using namespace std;

int main() {
  double x[4], x_r[4];
  double y[4], y_r[4];

  while(cin >> x[0] >> y[0]){
    x_r[0] = x[0];
    y_r[0] = y[0];
    for(int i = 1; i < 4; i++) {
      cin >> x[i] >> y[i];
      x_r[i] = x[i];
      y_r[i] = y[i];
    }

    sort(x, x + 4);
    sort(y, y + 4);

    int s_x = x[1];
    int s_y = y[1];
    int r_x, r_y;

    if(x[1] == x_r[2]){
      r_x = x[1];
    }else {
      r_x = x_r[1];
    }

    if(y[1] == y_r[2]) {
      r_y = y[1];
    }else {
      r_y = y_r[1];
    }

    if(r_x == s_x && r_y == s_y) {
      cout << "YES" << endl;
    }else {
      cout << "NO" << endl;
    }
  }
  return 0;
}

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

#include<iostream>

using namespace std;

int main() {
  double x[4], x_r[4];
  double y[4], y_r[4];

  while(cin >> x[0] >> y[0]){
    x_r[0] = x[0];
    y_r[0] = y[0];
    for(int i = 1; i < 4; i++) {
      cin >> x[i] >> y[i];
      x_r[i] = x[i];
      y_r[i] = y[i];
    }

    sort(x, x + 4);
    sort(y, y + 4);

    double s_x = x[1];
    double s_y = y[1];
    double r_x, r_y;

    if(x[1] == x_r[2]){
      r_x = x[1];
    }else {
      r_x = x_r[1];
    }

    if(y[1] == y_r[2]) {
      r_y = y[1];
    }else {
      r_y = y_r[1];
    }

    if(r_x == s_x && r_y == s_y) {
      cout << "YES" << endl;
    }else {
      cout << "NO" << endl;
    }
  }
  return 0;
}

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

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


struct rect {
  double leftX, leftY;
  double rightX, rightY;
};

int main() {
  rect a, b;

  while(cin >> a.leftX >> a.leftY >> a.rightX >> a.rightY >> b.leftX >> b.leftY >> b.rightX >> b.rightY) {
    if(b.rightX < a.leftX || a.rightX < b.leftX || b.rightY < a.leftY || a.rightY < b.leftY) {
      cout << "NO" << endl;
    }else {
      cout < "YES" << endl;
    }
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:20: error: invalid operands of types 'const char [4]' and '<unresolved overloaded function type>' to binary 'operator<<'
   18 |       cout < "YES" << endl;
      |              ~~~~~~^~~~~~~
Language: C++

using System;

public class _0059 {
	public _0059() {
	}

	public void Run() {
		string str;
		float[] vals;
		while((str = Console.ReadLine()) != null) {
			vals = Array.ConvertAll(str.Split(), s => float.Parse(s));
			Console.WriteLine((vals[0] <= vals[6] && vals[4] <= vals[2] && vals[1] <= vals[7] && vals[5] <= vals[3]) ? "YES" : "NO");
		}
	}
	public static void Main() {
		var program = new _0059();
		program.Run();
	}
}

Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:3:1: error: expected unqualified-id before 'public'
    3 | public class _0059 {
      | ^~~~~~
Language: C++

using Systeml
using System.Linq;
public static void Main() {
	string str;
	double[] vals;
	while((str = Console.ReadLine()) != null) {
		vals = str.Split().Take(8).Select(s => double.Parse(s)).ToArray();
		Console.WriteLine((vals[0] <= vals[6] && vals[4] <= vals[2] && vals[1] <= vals[7] && vals[5] <= vals[3]) ? "YES" : "NO");
	}
}

Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'Systeml'
    1 | using Systeml
      |       ^~~~~~~
a.cc:3:1: error: expected unqualified-id before 'public'
    3 | public static void Main() {
      | ^~~~~~
Language: C++

#include<iostream>
m(double a,double b){return a>b?a:b}
main(){for(double a,b,c,d,e,f,g,h;std::cin>>a>>b>>c>>d>>e>>f>>g>>h;){if((m(e,g)+m(-a,-c))*(m(a,c)+m(-e,-g))>=0&&(m(f,g)+m(-b,-d))*(m(b,d)-min(f,g))>=0)std::cout<<"YES\n";else std::cout<<"NO\n";}}

Compiler output:
a.cc:2:1: error: ISO C++ forbids declaration of 'm' with no type [-fpermissive]
    2 | m(double a,double b){return a>b?a:b}
      | ^
a.cc: In function 'int m(double, double)':
a.cc:2:36: error: expected ';' before '}' token
    2 | m(double a,double b){return a>b?a:b}
      |                                    ^
      |                                    ;
a.cc: At global scope:
a.cc:3:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    3 | main(){for(double a,b,c,d,e,f,g,h;std::cin>>a>>b>>c>>d>>e>>f>>g>>h;){if((m(e,g)+m(-a,-c))*(m(a,c)+m(-e,-g))>=0&&(m(f,g)+m(-b,-d))*(m(b,d)-min(f,g))>=0)std::cout<<"YES\n";else std::cout<<"NO\n";}}
      | ^~~~
a.cc: In function 'int main()':
a.cc:3:139: error: 'min' was not declared in this scope; did you mean 'std::min'?
    3 | main(){for(double a,b,c,d,e,f,g,h;std::cin>>a>>b>>c>>d>>e>>f>>g>>h;){if((m(e,g)+m(-a,-c))*(m(a,c)+m(-e,-g))>=0&&(m(f,g)+m(-b,-d))*(m(b,d)-min(f,g))>=0)std::cout<<"YES\n";else std::cout<<"NO\n";}}
      |                                                                                                                                           ^~~
      |                                                                                                                                           std::min
In file included from /usr/include/c++/14/string:51,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:281:5: note: 'std::min' declared here
  281 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
Language: C++

#include<iostream>
double m(double a,double b){return a>b?a:b;}
main(){for(double a,b,c,d,e,f,g,h;std::cin>>a>>b>>c>>d>>e>>f>>g>>h;){if(((m(e,g)+m(-a,-c))*(m(a,c)+m(-e,-g))>=0)&&((m(f,h)+m(-b,-d))*(m(b,d)+m(-f,-))>=0))std::cout<<"YES\n";else std::cout<<"NO\n";}}

Compiler output:
a.cc:3:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    3 | main(){for(double a,b,c,d,e,f,g,h;std::cin>>a>>b>>c>>d>>e>>f>>g>>h;){if(((m(e,g)+m(-a,-c))*(m(a,c)+m(-e,-g))>=0)&&((m(f,h)+m(-b,-d))*(m(b,d)+m(-f,-))>=0))std::cout<<"YES\n";else std::cout<<"NO\n";}}
      | ^~~~
a.cc: In function 'int main()':
a.cc:3:148: error: expected primary-expression before ')' token
    3 | main(){for(double a,b,c,d,e,f,g,h;std::cin>>a>>b>>c>>d>>e>>f>>g>>h;){if(((m(e,g)+m(-a,-c))*(m(a,c)+m(-e,-g))>=0)&&((m(f,h)+m(-b,-d))*(m(b,d)+m(-f,-))>=0))std::cout<<"YES\n";else std::cout<<"NO\n";}}
      |                                                                                                                                                    ^
Language: C++

#include <iostream>
#include <cstdio>
#include <algorithm>
#include <complex>
#include <utility>
#include <vector>
#include <set>
#include <bitset>
#include <map>

using namespace std;

int main()
{
  double x, y;
  complex<double> coor[4], _coor[4];
  while (scanf("%lf %lf ", &x, &y) == 2) {
    coor[0] = complex<double>(x, y);
    scanf("%lf %lf ", &x, &y);
    coor[2] = complex<double>(x, y);
    scanf("%lf %lf ", &x, &y);
    _coor[0] = complex<double>(x, y);
    scanf("%lf %lf ", &x, &y);
    _coor[2] = complex<double>(x, y);
    coor[1] = complex<double>(coor[0].real(), coor[2].imag());
    coor[3] = complex<double>(coor[2].real(), coor.[0].imag());
    _coor[1] = complex<double>(_coor[0].real(), _coor[2].imag());
    _coor[3] = complex<double>(_coor[2].real(), _coor.[0].imag());
    complex<double> g(0, 0);
    for (int i = 0; i < 4; i++) {
      g += _coor[i];
    }
    g /= 4;
    bool flag = false;
    for (int i = 0; i < 4; i++) {
      for (int j = 0; j < 4; j++) {
	if (_coor[j].real() == _coor[(j + 1) % 4].real())  {
	  if ((coor[i].real() - _coor[j].real()) * (g.real() - _coor[j].real()) < 0) {
	    goto next;
	  }
	} else {
	  if ((coor[i].imag() - _coor[j].imag()) * (g.imag() - _coor[j].imag()) < 0) {
	    goto next;
	  }
	}
      }
      cout << "YES" << endl;
      goto end;
    next:;
    }
    cout << "NO" << endl;
  end:;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:26:30: error: expected primary-expression before '(' token
   26 |     coor[3] = complex<double>(coor[2].real(), coor.[0].imag());
      |                              ^
a.cc:26:52: error: expected unqualified-id before '[' token
   26 |     coor[3] = complex<double>(coor[2].real(), coor.[0].imag());
      |                                                    ^
a.cc:28:31: error: expected primary-expression before '(' token
   28 |     _coor[3] = complex<double>(_coor[2].real(), _coor.[0].imag());
      |                               ^
a.cc:28:55: error: expected unqualified-id before '[' token
   28 |     _coor[3] = complex<double>(_coor[2].real(), _coor.[0].imag());
      |                                                       ^
Language: C++

include<iostream>

using namespace std;

int main(void){
  double xa[3],ya[3],xb[3],yb[3];

  while(true){
    for(int i=1;i<3;i++)
      if(scanf("%lf %lf",&xa[i],&ya[i])==EOF)return 0;
    
    for(int i=1;i<3;i++)
      scanf("%lf %lf",&xb[i],&yb[i]);

    if((((xb[1]<=xa[1]&&xa[1]<=xb[2])||(xb[1]<=xa[2]&&xa[2]<=xb[2]))&&
	((yb[1]<=ya[1]&&ya[1]<=yb[2])||(yb[1]<=ya[2]&&ya[2]<=yb[2])))||
       (((xa[1]<=xb[1]&&xb[1]<=xa[2])||(xa[1]<=xb[2]&&xb[2]<=xa[2]))&&
	((ya[1]<=yb[1]&&yb[1]<=ya[2])||(ya[1]<=yb[2]&&yb[2]<=ya[2]))))
      cout << "YES" << endl;
    else cout << "NO" << endl;

  }
  return 0;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:10:10: error: 'scanf' was not declared in this scope
   10 |       if(scanf("%lf %lf",&xa[i],&ya[i])==EOF)return 0;
      |          ^~~~~
a.cc:10:42: error: 'EOF' was not declared in this scope
   10 |       if(scanf("%lf %lf",&xa[i],&ya[i])==EOF)return 0;
      |                                          ^~~
a.cc:1:1: note: 'EOF' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | include<iostream>
a.cc:13:7: error: 'scanf' was not declared in this scope
   13 |       scanf("%lf %lf",&xb[i],&yb[i]);
      |       ^~~~~
a.cc:19:7: error: 'cout' was not declared in this scope
   19 |       cout << "YES" << endl;
      |       ^~~~
a.cc:19:24: error: 'endl' was not declared in this scope
   19 |       cout << "YES" << endl;
      |                        ^~~~
a.cc:20:10: error: 'cout' was not declared in this scope
   20 |     else cout << "NO" << endl;
      |          ^~~~
a.cc:20:26: error: 'endl' was not declared in this scope
   20 |     else cout << "NO" << endl;
      |                          ^~~~
Language: C++

#include <iostream>
using namespace std;
int main(){
  double xa1,ya1,xa2,ya2,xb1,yb1,xb2,yb2;
  while( cin >>xa1>>ya1>>xa2>>ya2>>xb1>>yb1>>xb2>>yb2d ){
  if(!(xb2 < xa1 || xa2 < xb1 || ya1 > yb2 || ya2 < yb1 ))cout << "YES"<<endl;
  else cout << "NO" << endl;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:51: error: 'yb2d' was not declared in this scope; did you mean 'yb2'?
    5 |   while( cin >>xa1>>ya1>>xa2>>ya2>>xb1>>yb1>>xb2>>yb2d ){
      |                                                   ^~~~
      |                                                   yb2
Language: Java

import java.io.*;


public class V0060{
	public static void main (String[] args) throws java.lang.Exception
	{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		while(true){
			String s=br.readLine();
			String[] str = s.split(" ");
			int c1=Integer.parseInt(str[0]);
			int c2=Integer.parseInt(str[1]);
			int c3=Integer.parseInt(str[2]);
			if((55-c1-c2-c3)/7+c1+c2>20){
				System.out.println("NO");
			}
			else
				System.out.println("YES");
		}
	}
}

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

import java.util.Arrays;
import java.util.Scanner;


public class Main{
	Scanner sc;
	
	void solve(){
		sc = new Scanner(System.in);
		
		while(sc.hasNext()){
			boolean list = new boolean[11];
			Arrays.fill(list, true);
			int sum = 0;
			
			for(int i=0; i<3; ++i){
				int v = ni();
				if(i+1 < 3){
					sum += v;
				}
				list[v] = false;
			}
			
			int n=0;
			for(int i=1; i<=10; ++i){
				if(list[i] && sum+i<=20){
					++n;
				}
			}
			
			System.out.println(3<n ? "YES" : "NO");
		}
		
		sc.close();
	}
	
	int ni(){
		return sc.nextInt();
	}
	
	public static void main(String[] args){
		new Main().solve();
	}
	
	void debug(Object... os){
		System.err.println(Arrays.deepToString(os));
	}
}

Compiler output:
Main.java:12: error: incompatible types: boolean[] cannot be converted to boolean
			boolean list = new boolean[11];
			               ^
Main.java:13: error: no suitable method found for fill(boolean,boolean)
			Arrays.fill(list, true);
			      ^
    method Arrays.fill(long[],long) is not applicable
      (argument mismatch; boolean cannot be converted to long[])
    method Arrays.fill(int[],int) is not applicable
      (argument mismatch; boolean cannot be converted to int[])
    method Arrays.fill(short[],short) is not applicable
      (argument mismatch; boolean cannot be converted to short[])
    method Arrays.fill(char[],char) is not applicable
      (argument mismatch; boolean cannot be converted to char[])
    method Arrays.fill(byte[],byte) is not applicable
      (argument mismatch; boolean cannot be converted to byte[])
    method Arrays.fill(boolean[],boolean) is not applicable
      (argument mismatch; boolean cannot be converted to boolean[])
    method Arrays.fill(double[],double) is not applicable
      (argument mismatch; boolean cannot be converted to double[])
    method Arrays.fill(float[],float) is not applicable
      (argument mismatch; boolean cannot be converted to float[])
    method Arrays.fill(Object[],Object) is not applicable
      (argument mismatch; boolean cannot be converted to Object[])
Main.java:21: error: array required, but boolean found
				list[v] = false;
				    ^
Main.java:26: error: array required, but boolean found
				if(list[i] && sum+i<=20){
				       ^
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
4 errors
Language: C

#include<cstdio>
#include<iostream>
using namespace std;
int main(){
  int a,b,c;
  while(scanf("%d %d %d",&a,&b,&c)!=EOF){
    int sum=a+b,cnt=0;
    for(int i=1;i<=10;i++){
      if(sum + i<=20 && i!=a && i!=b && i!=c) cnt++;
    }
    printf("%s\n",cnt>=4?"YES":"NO");
  }
}

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

#include<stdio.h>

int main(){

int x,y,z;
int S=0,W=0;
while(scanf("%d %d %d",&x,%y,&z)!=0)){

for(int i=1;i<11;i++)
{
if(i!=z&&x+y+i>20)W++;
else if(i!=z&&x+y+i<=20)S++;
}

if(S>=4)printf("Yes\n");
else if(S<4)printf("No\n");
S=0,W=0;

}
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:27: error: expected primary-expression before '%' token
    7 | while(scanf("%d %d %d",&x,%y,&z)!=0)){
      |                           ^
a.cc:7:37: error: expected primary-expression before ')' token
    7 | while(scanf("%d %d %d",&x,%y,&z)!=0)){
      |                                     ^
Language: C++

#include<stdio.h>

int main(){

int x,y,z;
int c=0;
bool f[12];
while(scanf("%d %d %d",&x,&y,&z)!=EOF){
for(int i=0;i<11;i++)
f[i]=true;

f[x]=false;f[y]=false;f[z]=false;


for(int i=i;i<11;i++)
{if(f[i]==true){if(x+y+i<=20)c++}}

if(c>=4)printf("YES\n");
printf("NO\n");
}
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:33: error: expected ';' before '}' token
   16 | {if(f[i]==true){if(x+y+i<=20)c++}}
      |                                 ^
      |                                 ;
Language: C++

#include<stdio.h>

int main(){

int x,y,z;
int c=0;
bool f[12];
while(scanf("%d %d %d",&x,&y,&z)!=EOF){
for(int i=0;i<11;i++)
f[i]=true;

f[x]=false;f[y]=false;f[z]=false;


for(int i=i;i<11;i++)
{if(f[i]==true){if(x+y+i<=20)c++}}

if(c>=4)printf("YES\n");
c=0;
printf("NO\n");
}
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:33: error: expected ';' before '}' token
   16 | {if(f[i]==true){if(x+y+i<=20)c++}}
      |                                 ^
      |                                 ;
Language: C++

#include<iostream>
using namespace std;

int main(){
	
	int c[3];
	while(cin>>c[0]){
	for(int i=1;i<3;i++)
		cin>>c[i];
	int s=0;
	double p=0;
		for(int i=0;i<=10;i++){
		if(i!=c[0]||i!=c[1]||i!=c[2]){
			if(i+c[1]+c[2]<=20)
				s++;
		}
		if(f!=0)
		p=s*100/7;
		else
			p=100;
		cout<<p<<endl;
		if(p>=50)
			cout<<"YES"<<endl;
		else
			cout<<"NO"<<endl;
	}
		
		

}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:20: error: 'f' was not declared in this scope
   17 |                 if(f!=0)
      |                    ^
a.cc:30:2: error: expected '}' at end of input
   30 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include<iostream>
using namespace std;

int main(){
	
	int c[3];
	while(cin>>c[0]){
	for(int i=1;i<3;i++)
		cin>>c[i];
	int s=0;
	double p=0;
		for(int i=0;i<=10;i++){
		if(i!=c[0]||i!=c[1]||i!=c[2]){
			if(i+c[1]+c[2]<=20)
				s++;
		}
		p=s*100/7;
		if(p>=50)
			cout<<"YES"<<endl;
		else
			cout<<"NO"<<endl;
	}
		
		

}

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


using System;
class aoj
{
    static void Main()
    {
        while (true)
        {
            string a = Console.ReadLine();
            if (String.IsNullOrEmpty(a)) break;
            string[] b = a.Split(' ');
            int c = int.Parse(b[0]), d = int.Parse(b[1]), e = int.Parse(b[2]),f=c+d,g=20-f;
            int plus = 0, mainasu = 0; ;
            for(int i = 1; i <= 10; i++)
            {
                if (i != c && i != d && i != e)
                {
                    for(int j = 1; j <= 10; j++)
                    {
                        if(j != c && j != d && j != e && i != j)
                        {
                            if (f + j <= 20)
                                plus++;
                            else
                                mainasu++;
                        }
                    }
                }
            }
            if (plus >= mainasu)
                Console.WriteLine("YES");
            else
                Console.WriteLine("NO");
        }
    }
}
 

 

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'System'
    2 | using System;
      |       ^~~~~~
a.cc:36:2: error: expected ';' after class definition
   36 | }
      |  ^
      |  ;
a.cc: In static member function 'static void aoj::Main()':
a.cc:9:13: error: 'string' was not declared in this scope
    9 |             string a = Console.ReadLine();
      |             ^~~~~~
a.cc:10:17: error: 'String' was not declared in this scope
   10 |             if (String.IsNullOrEmpty(a)) break;
      |                 ^~~~~~
a.cc:10:38: error: 'a' was not declared in this scope
   10 |             if (String.IsNullOrEmpty(a)) break;
      |                                      ^
a.cc:11:20: error: expected primary-expression before ']' token
   11 |             string[] b = a.Split(' ');
      |                    ^
a.cc:12:21: error: expected primary-expression before 'int'
   12 |             int c = int.Parse(b[0]), d = int.Parse(b[1]), e = int.Parse(b[2]),f=c+d,g=20-f;
      |                     ^~~
a.cc:16:36: error: 'd' was not declared in this scope
   16 |                 if (i != c && i != d && i != e)
      |                                    ^
a.cc:16:46: error: 'e' was not declared in this scope
   16 |                 if (i != c && i != d && i != e)
      |                                              ^
a.cc:22:33: error: 'f' was not declared in this scope
   22 |                             if (f + j <= 20)
      |                                 ^
a.cc:31:17: error: 'Console' was not declared in this scope
   31 |                 Console.WriteLine("YES");
      |                 ^~~~~~~
a.cc:33:17: error: 'Console' was not declared in this scope
   33 |                 Console.WriteLine("NO");
      |                 ^~~~~~~
Language: C++

#include <iostream>
using namespace std;
int main(){
  int a,b,c;
  while(cin>>a>>b>>c){
    int k=0;
    for(int i=1;i<11;i++){
      if(i+a+b>=c&&i+<21)k++;
    }
    if(k>=5&&a>=c)cout<<"YES"<<endl;
    else cout<<"NO"<<endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:22: error: expected primary-expression before '<' token
    8 |       if(i+a+b>=c&&i+<21)k++;
      |                      ^
Language: C++

#include<cstdio>
#include<math>

using namespace std;

int main(void){
	
	int C[3];
	
	while(scanf("%d %d %d" ,&C[0], &C[1], &C[2]) != EOF){
		int card[16]={0};
		int my;
		int out = 0;
		
		for(int i = 0; i < 3; i++)card[C[i]] = 1;
		
		my = C[0] + C[1];
		
		for(int i = 1; i < 11; i++){
			if(card[i] == 0 && my + i > 20){
				out++;
			}
		}
		
//		printf("%dÂ:%lf\n", out, 1-out/7.0);
		
		if(my <= 10){
			puts("YES");
		}else if(out == 0){
			puts("YES");
		}else{
			printf("%s\n", 1-out/7.0>=0.5?"YES":"NO");
		}
	}
	return 0;
}

Compiler output:
a.cc:2:9: fatal error: math: No such file or directory
    2 | #include<math>
      |         ^~~~~~
compilation terminated.