criyle/codenet-compile-errors huggingface dataset:
Language: Java

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

public class main{
public static void main(String[] args) throws IOException{
BufferedReader br = new BufferReader(new InputStreamReader(System.in));
String str = br.readLine();
Boolean isNull = str.equals("");
while(!isNull){
String[] datas = str.split(" ",8);
double x1 = Double.parseDouble(datas[0]);
double y1 = Double.parseDouble(datas[1]);
double x2 = Double.parseDouble(datas[2]);
double y2 = Double.parseDouble(datas[3]);
double x3 = Double.parseDouble(datas[4]);
double y3 = Double.parseDouble(datas[5]);
double xp = Double.parseDouble(datas[6]);
double yp = Double.parseDouble(datas[7]);
double x = xp-x1;
double y = yp-y1;
double p = x2-x1;
double q = y2-y1;
double r = x3-x1;
double u = y3-y1;
double[] coefficient = Simultaneous(p,r,x,q,u,y);
double s = coefficient[0];
double t = coefficient[1];
if(s<0||t<0){
System.out.println("NO");
}else if(s+t>0 && s+t<1){
System.out.println("YES");
}else{
System.out.println("NO");
}
str = br.readLine();
isNull = str.equals("");

}
}
private static double[] Simultaneous(double a,double b,double c,double d,double e,double f){
double x = (double) (e*c-b*f)/(a*e-b*d);
double y = (double) (a*f-c*d)/(a*e-b*d);
double[] answer = {x,y};
return answer;
}
}

Compiler output:
Main.java:5: error: class main is public, should be declared in a file named main.java
public class main{
       ^
Main.java:7: error: cannot find symbol
BufferedReader br = new BufferReader(new InputStreamReader(System.in));
                        ^
  symbol:   class BufferReader
  location: class main
2 errors
Language: Java

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

public class main{
public static void main(String[] args) throws IOException{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String str = br.readLine();
Boolean isNull = str.equals("");
while(!isNull){
String[] datas = str.split(" ",8);
double x1 = Double.parseDouble(datas[0]);
double y1 = Double.parseDouble(datas[1]);
double x2 = Double.parseDouble(datas[2]);
double y2 = Double.parseDouble(datas[3]);
double x3 = Double.parseDouble(datas[4]);
double y3 = Double.parseDouble(datas[5]);
double xp = Double.parseDouble(datas[6]);
double yp = Double.parseDouble(datas[7]);
double x = xp-x1;
double y = yp-y1;
double p = x2-x1;
double q = y2-y1;
double r = x3-x1;
double u = y3-y1;
double[] coefficient = Simultaneous(p,r,x,q,u,y);
double s = coefficient[0];
double t = coefficient[1];
if(s<0||t<0){
System.out.println("NO");
}else if(s+t>0 && s+t<1){
System.out.println("YES");
}else{
System.out.println("NO");
}
str = br.readLine();
isNull = str.equals("");

}
}
private static double[] Simultaneous(double a,double b,double c,double d,double e,double f){
double x = (double) (e*c-b*f)/(a*e-b*d);
double y = (double) (a*f-c*d)/(a*e-b*d);
double[] answer = {x,y};
return answer;
}
}

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

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

public class APointInATriangle {
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		Boolean isNull = str==null;
		while (!isNull) {
			String[] datas = str.split(" ", 8);
			double x1 = Double.parseDouble(datas[0]);
			double y1 = Double.parseDouble(datas[1]);
			double x2 = Double.parseDouble(datas[2]);
			double y2 = Double.parseDouble(datas[3]);
			double x3 = Double.parseDouble(datas[4]);
			double y3 = Double.parseDouble(datas[5]);
			double xp = Double.parseDouble(datas[6]);
			double yp = Double.parseDouble(datas[7]);
			double x = xp - x1;
			double y = yp - y1;
			double p = x2 - x1;
			double q = y2 - y1;
			double r = x3 - x1;
			double u = y3 - y1;
			double[] coefficient = Simultaneous(p, r, x, q, u, y);
			double s = coefficient[0];
			double t = coefficient[1];
			if (s < 0 || t < 0) {
				System.out.println("NO");
			} else if (s + t > 0 && s + t < 1) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
			str = br.readLine();
			isNull = str==null;
		}
	}

	private static double[] Simultaneous(double a, double b, double c,
			double d, double e, double f) {
		double x = (double) (e * c - b * f) / (a * e - b * d);
		double y = (double) (a * f - c * d) / (a * e - b * d);
		double[] answer = { x, y };
		return answer;
	}
}

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

import java.util.*;

public class Main{
	private static final Scanner scan = new Scanner(System.in);

	public static void main(String[] args){
		while(scan.hasNext()){
			double x1 = scan.nextDouble();
			double y1 = scan.nextDouble();
			double x2 = scan.nextDouble();
			double y2 = scan.nextDouble();
			double x3 = scan.nextDouble();
			double y3 = scan.nextDouble();
			double xp = scan.nextDouble();
			double yp = scan.nextDouble();

			double S_abc = 1.0 / 2.0 * Math.abs(x1*(y2-y3) + x2*(y3-y1)
					+ x3*(y1-y2));
			double S_pab = 1.0 / 2.0 * Math.abs(xp*(y1-y2) + x1*(y2-yp)
					+ x2*(yp-y1));
			double S_pac = 1.0 / 2.0 * Math.abs(xp*(y1-y3) + x1*(y3-yp)
					+ x3*(yp-y1));
			double S_pbc = 1.0 / 2.0 * Math.abs(xp*(y2-y3) + x2*(y3-yp)
					+ x3*(yp-y2));
			if(S_abc == S_pab + S_pac + P_pbc){
				System.out.println("YES");
			} else{
				System.out.println("NO");
			}
		}
	}
}

Compiler output:
Main.java:25: error: cannot find symbol
			if(S_abc == S_pab + S_pac + P_pbc){
			                            ^
  symbol:   variable P_pbc
  location: class Main
1 error
Language: Java

import java.util.*;

public class Main{
	private static final Scanner scan = new Scanner(System.in);

	public static void main(String[] args){
		while(scan.hasNext()){
			double[] x = new double[3];
			double[] y = new double[3];
			for(int i = 0; i < 3; i++){
				x[i] = scan.nextDouble();
				y[i] = scan.nextdouble();
			}

			double xp = scan.nextDouble();
			double yp = scan.nextDouble();

			for(int i = 0; i < 3; i++){
				x[i] = x[i] - xp;
				y[i] = y[i] - yp;
			}

			double[] gaiseki = new double[3];
			gaiseki[0] = x[0]*y[1] - y[0]*x[1];
			gaiseki[1] = x[1]*y[2] - y[2]*x[1];
			gaiseki[2] = x[2]*y[0] - y[2]*x[0];

			int plus = 0;
			int minus = 0;
			for(int i = 0; i < 3; i++){
				if(gaiseki[i] > 0)plus++;
				if(gaiseki[i] < 0)minus++;
			}

			String ans = "NO";
			if(plus == 3 || minus == 3)ans = "YES";
			System.out.printf("%s\n", ans);
		}
	}
}

Compiler output:
Main.java:12: error: cannot find symbol
				y[i] = scan.nextdouble();
				           ^
  symbol:   method nextdouble()
  location: variable scan of type Scanner
1 error
Language: Java

import java.util.*;


public class V0p012 {
	Scanner sc;
	void run() {
		sc = new Scanner(System.in);
		Point[] a = new Point [4]; 
		while (sc.hasNext()){
			for (int i=0;i<4;i++) {
				double x = sc.nextDouble();
				double y = sc.nextDouble();
				a[i] = new Point(x,y);
			}
			Line[] l = new Line[3];
			Line[] lc = new Line [3];
			boolean flg = true;
			for (int i=0;i<3;i++) {
				l[i] = new Line(a[i%3], a[(i+1)%3]);
				lc[i] = new Line(a[(i+2)%3], a[3]);
				if (l[i].judgeCloss(lc[i])) {
					flg = false;
					break;
				}
			}
			if (flg)
				System.out.println("YES");
			else System.out.println("NO");
			
		}
		
	}
	public static void main(String[] args) {
		new V0p012().run();
	}
	
	
}
class Point {
	private double x;
	private double y;
	public Point(double x, double y) {
		this.x = x;
		this.y = y;
	}
	public double getX(){
		return x;
	}
	public double getY() {
		return y;
	}
}

class Line {
	Point a1;
	Point a2;
	public Line (Point a, Point b) {
		a1 = a;
		a2 = b;
	}
	public Point getS() {
		return a1;
	}
	public Point getE() {
		return a2;
	}
	public boolean judgeCloss(Line l) {
		double a = ( (a1.getY() - l.getS().getY()) * (l.getS().getX() - l.getE().getX() - (l.getS().getY() - l.getE().getY()) * (a1.getX() - l.getS().getX())) );
		double b = ( (a2.getY() - l.getS().getY()) * (l.getS().getX() - l.getE().getX() - (l.getS().getY() - l.getE().getY()) * (a2.getX() - l.getS().getX())) );
		
		System.out.println( a + " " + b );
		
		if (a*b >= 0)
			return false;
		else return true;
	}

}

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

import java.util.*;

public class Main {
	Scanner sc = new Scanner(System.in);
	void run() {
		while ( sc.hasNext() ) {
			Point[] p = new Point[4];
			for(int i=0;i<4;i++) {
				p[i] = new Point( sc.nextDouble(),sc.nextDouble() );
			}
			
			if(!isInner(p[0], p[1], p[2], p[3])) System.out.println("NO");
			else    System.out.println("YES");
			
		}
	}
	
	boolean isInner(Point a, Point b, Point c, Point p) {
		if( p.sub(a).mult(b.sub(a)) > 0.0 ) return false;
		if( p.sub(b).mult(c.sub(b)) > 0.0 ) return false;
		if( p.sub(c).mult(a.sub(c)) > 0.0 ) return false;
		return true;
	}
	
	public static void main(String[] args) {
		new Main.run();
	}
	
	class Point {
		double x,y;
		Point (double x, double y) {
			this.x = x;
			this.y = y;
		}
		
		Point sub(Point p) {
			return new Point(x-p.x, y-p.y);
		}
		
		double mult(Point p) {
			return x*p.y-y*p.x;
		}
		
	}
	
}

Compiler output:
Main.java:26: error: cannot find symbol
		new Main.run();
		        ^
  symbol:   class run
  location: class Main
1 error
Language: Java

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

public class Main
{
	public static void main(String[] arg) throws IOException
	{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		String s;
		while((s=br.readLine())!=null){
			double x1 = Double.parseDouble(s.split(" ")[0]);
			double y1 = Double.parseDouble(s.split(" ")[1]);
			double x2 = Double.parseDouble(s.split(" ")[2]);
			double y2 = Double.parseDouble(s.split(" ")[3]);
			double x3 = Double.parseDouble(s.split(" ")[4]);
			double y3 = Double.parseDouble(s.split(" ")[5]);
			double xp = Double.parseDouble(s.split(" ")[6]);
			double yp = Double.parseDouble(s.split(" ")[7]);
			
			if(inTriangle(x1,y1,x2,y2,x3,y3,xp,yp)) System.out.println("YES");
			else 							　System.out.println("NO");
		}
	}
	private static boolean inTriangle(double x1, double y1, double x2, double y2, double x3, double y3, double xp, double yp)
	{
		// equation -> y = [0]x + [1]
		double[] eq12 = new double[2];
		double[] eq13 = new double[2];
		double[] eq23 = new double[2];
		
		eq12[0] = (y2-y1) / (x2-x1);
		eq12[1] = y1 - x1 * eq12[0];
		eq13[0] = (y3-y1) / (x3-x1);
		eq13[1] = y1 - x1 * eq13[0];
		eq23[0] = (y3-y2) / (x3-x2);
		eq23[1] = y2 - x2 * eq23[0];
		
		if(yp > (eq12[0] * xp + eq12[1])) {
			if(y3 < (eq12[0] * x3 + eq12[1])) return false;
		} else
			if(y3 > (eq12[0] * x3 + eq12[1])) return false;
		if(yp > (eq13[0] * xp + eq13[1])) {
			if(y2 < (eq13[0] * x2 + eq13[1])) return false;
		} else
			if(y2 > (eq13[0] * x2 + eq13[1])) return false;
		if(yp > (eq23[0] * xp + eq23[1])) {
			if(y1 < (eq23[0] * x1 + eq23[1])) return false;
		} else
			if(y1 > (eq23[0] * x1 + eq23[1])) return false;
		return true;
	}
}

Compiler output:
Main.java:23: error: illegal character: '\u3000'
			else 							?System.out.println("NO");
			     							^
1 error
Language: Java

import java.util.Scanner;

public class main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		double xa,ya,xb,yb,xc,yc,xp,yp;
		double abc, abp, bcp, cap;
		
			xa = sc.nextDouble();
			ya = sc.nextDouble();
			xb = sc.nextDouble();
			yb = sc.nextDouble();
			xc = sc.nextDouble();
			yc = sc.nextDouble();
			xp = sc.nextDouble();
			yp = sc.nextDouble();
			
			abc = calculate_area(xa,ya,xb,yb,xc,yc);
			abp = calculate_area(xa,ya,xb,yb,xp,yp);
			bcp = calculate_area(xb,yb,xc,yc,xp,yp);
			cap = calculate_area(xc,yc,xa,ya,xp,yp);
			
			System.out.println(abc +"\n"+ abp +"\n"+ bcp +"\n"+ cap);
		
		if(abc-(abp+bcp+cap) == 0){
			System.out.println("YES");
		} else {
			System.out.println("NO");
		}
	}
	
	static double calculate_area(double x1, double y1, double x2, double y2, double x3, double y3){
		double result;
			result = 0.5 * ((x3-x1)*(y2-y1)-(y3-y1)*(x2-x1));
			if(result < 0) result*=-1;
		return result;
	}
}

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

#iclude<stdio.h>
int main()
{
	double x1,y1,x2,y2,x3,y3,xp,yp,maxx=0,maxy=0,minx=0,miny=0;
	while(scanf("%lf %lf %lf %lf %lf %lf %lf %lf",&x1,&y1,&x2,&y2,&x3,&y3,&xp,&yp)!=EOF){
		{
		maxx=x1;
		if(x2>max)
			maxx=x2;
		else if(x3>max)
			maxx=x3;
		}
		{
		minx=x1;
		if(x2<minx)
			minx=x2;
		else if(x3<minx)
			minx=x3;
		}
		
		
		{
		maxy=y1;
		if(y2>max)
			maxy=y2;
		else if(y3>max)
			maxy=y3;
		}
		{
		miny=y1;
		if(y2<miny)
			miny=y2;
		else if(y3<miny)
			miny=y3;
		}
		
		if(xp<maxx && xp>minx &&yp<maxy && yp>miny)
			puts("YES");
		else
			puts("NO");
			
		return 0;
}
	


Compiler output:
main.c:1:2: error: invalid preprocessing directive #iclude; did you mean #include?
    1 | #iclude<stdio.h>
      |  ^~~~~~
      |  include
main.c: In function 'main':
main.c:5:15: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    5 |         while(scanf("%lf %lf %lf %lf %lf %lf %lf %lf",&x1,&y1,&x2,&y2,&x3,&y3,&xp,&yp)!=EOF){
      |               ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #iclude<stdio.h>
main.c:5:15: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    5 |         while(scanf("%lf %lf %lf %lf %lf %lf %lf %lf",&x1,&y1,&x2,&y2,&x3,&y3,&xp,&yp)!=EOF){
      |               ^~~~~
main.c:5:15: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:5:89: error: 'EOF' undeclared (first use in this function)
    5 |         while(scanf("%lf %lf %lf %lf %lf %lf %lf %lf",&x1,&y1,&x2,&y2,&x3,&y3,&xp,&yp)!=EOF){
      |                                                                                         ^~~
main.c:5:89: note: 'EOF' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <stdio.h>'
main.c:5:89: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:23: error: 'max' undeclared (first use in this function); did you mean 'maxy'?
    8 |                 if(x2>max)
      |                       ^~~
      |                       maxy
main.c:38:25: error: implicit declaration of function 'puts' [-Wimplicit-function-declaration]
   38 |                         puts("YES");
      |                         ^~~~
main.c:38:25: note: include '<stdio.h>' or provide a declaration of 'puts'
main.c:43:1: error: expected declaration or statement at end of input
   43 | }
      | ^
Language: C

#include <stdio.h>

int sign(double x);

int main(void)
{
    double x1, y1, x2, y2, x3, y3;
    double xp, yp;

    double vec12_x_vec1p, vec23_x_vec2p, vec31_x_vec3p_g3;
    int judge;

    while (scanf("%lf %lf %lf %lf %lf %lf %lf %lf",
                &x1, &y1, &x2, &y2, &x3, &y3, &xp, &yp) != EOF) {
        vec12_x_vec1p = (x2 - x1) * (yp - y1) - (y2 - y1) * (xp - x1);
        vec23_x_vec2p = (x3 - x2) * (yp - y2) - (y3 - y2) * (xp - x2);
        vec31_x_vec3p = (x1 - x3) * (yp - y3) - (y1 - y3) * (xp - x3);
        judge = sign(vec12_x_vec1p) + sign(vec23_x_vec2p) + sign(vec31_x_vec3p);

        if (judge == 1 + 1 + 1 || judge == -1 - 1 - 1) {
            printf("YES\n");
        } else {
            printf("NO\n");
        }
    }

    return 0;
}

int sign(double x)
{
    if (x >= 0) {
        return 1;
    } else {
        return -1;
    }
}

Compiler output:
main.c: In function 'main':
main.c:17:9: error: 'vec31_x_vec3p' undeclared (first use in this function); did you mean 'vec31_x_vec3p_g3'?
   17 |         vec31_x_vec3p = (x1 - x3) * (yp - y3) - (y1 - y3) * (xp - x3);
      |         ^~~~~~~~~~~~~
      |         vec31_x_vec3p_g3
main.c:17:9: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

int main(void)
{
	double x1,x2,x3,xp,y1,y2,y3,yp,v1,v2,v3;
	while(scanf("%lf %lf %lf %lf %lf %lf %lf %lf",&x1,&y1,&x2,&y2,&x3,&y3,&xp,&yp)!=EOF){
		v1=(x2-x1)*(xp-x1)+(y2-y1)*(yp-y1);
		v2=(x3-x2)*(xp-x2)+(y3-y2)*(yp-y2);
		v3=(x1-x3)*(xp-x3)+(y1-y3)*(yp-y3);
		if((v1>0 && v2>0 && v3>0) printf("YES\n");
		else if(v1<0 && v2<0 && v3<0) printf("YES\n");
		else printf("NO\n");
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:42: error: expected ')' before 'printf'
   10 |                 if((v1>0 && v2>0 && v3>0) printf("YES\n");
      |                   ~                      ^~~~~~~
      |                                          )
main.c:13:9: error: expected expression before '}' token
   13 |         }
      |         ^
Language: C

#include <stdio.h>

int main(void)
{
	double x1,x2,x3,xp,y1,y2,y3,yp,v1,v2,v3;
	while(scanf("%lf %lf %lf %lf %lf %lf %lf %lf",&x1,&y1,&x2,&y2,&x3,&y3,&xp,&yp)!=EOF){
		v1=(x2-x1)*(xp-x1)+(y2-y1)*(yp-y1);
		v2=(x3-x2)*(xp-x2)+(y3-y2)*(yp-y2);
		v3=(x1-x3)*(xp-x3)+(y1-y3)*(yp-y3);
		if(v1>0 && v2>0 && v3>0) printf("YES\n");
		else if(v1<0 && v2<0 && v3<0) printf("YES\n");
		else if(v1=0 && v2=0 && v3=0) printf("YES\n");
		else printf("NO\n");
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:43: error: lvalue required as left operand of assignment
   12 |                 else if(v1=0 && v2=0 && v3=0) printf("YES\n");
      |                                           ^
Language: C

#include<stdio.h>
int main() {
  double a, b, c, p1[2], p2[2], p3[2], pp[2];
  while (scanf("%lf %lf %lf %lf %lf %lf %lf %lf", &p1[0], &p1[1], &p2[0], &p2[1], &p3[0], &p3[1], &pp[0], &pp[1]) != EOF) {
    a = p2[1] - p1[1]; b = p1[0] - p2[0]; c = p2[0] * p1[1] - p1[0] * p2[1];
    if ((a * p3[0] + b * p3[1] + c) * (a * pp[0] + b * pp[1] + c) > 0) {
      a = p3[1] - p2[1]; b = p2[0] - p3[0]; c = p3[0] * p2[1] - p2[0] * p3[1];
      if ((a * p1[0] + b * p1[1] + c) * (a * pp[0] + b * pp[1] + c) > 0) {
	a = p3[1] - p1[1]; b = p1[0] - p3[0]; c = p3[0] * p1[1] - p1[0] * p3[1];
	if ((a * p2[0] + b * p2[1] + c) * (a * pp[0] + b * pp[1] + c) > 0) {
	  printf("YES\n");
	} else {
	  printf("NO\n");
      } else {
	printf("NO\n");
      }
    } else {
      printf("NO\n");
    }
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:9: error: expected '}' before 'else'
   14 |       } else {
      |         ^~~~
Language: C

#include <stdio.h>
#include <stdlib.h>
#include <math.h>

#define DEBUG 
#define POINT_NUMBER 8

double get_area(double x1, double x2, double x3, double y1, double y2, double y3);


main()
{
	double x1, y1, x2, y2, x3, y3, px, py;
	while(scanf("%lf%lf%lf%lf%lf%lf%lf%lf", &x1, &y1, &x2, &y2, &x3, &y3, &px, &py) != EOF)
	{
		double abp = get_area(x1, y1, x2, y2, px, py);
		double bcp = get_area(x2, y2, x3, y3, px, py);
		double cap = get_area(x3, y3, x1, y1, px, py);
		double abc = get_area(x1, y1, x2, y2, x3, y3);
	}

#ifdef DEBUG
	printf("%lf\n%lf\n%lf\n%lf\n", abp, bcp, cap, abc);
#endif
	if(abc == (abp + bcp + cap))
	{
		printf("YES\n");
	}
	else
	{
		printf("NO\n");
	}
	
	return 0;
}

double get_area(double x1, double y1, double x2, double y2, double x3, double y3)
{
	double area;
	area = (y1 * (x2 - x3) + y2 * (x3 - x1) + y3 * (x1 - x2)) / 2;
	area = area * area;
	area = sqrt(area);
	
	return area;
}

Compiler output:
main.c:11:1: error: return type defaults to 'int' [-Wimplicit-int]
   11 | main()
      | ^~~~
main.c: In function 'main':
main.c:23:40: error: 'abp' undeclared (first use in this function); did you mean 'abs'?
   23 |         printf("%lf\n%lf\n%lf\n%lf\n", abp, bcp, cap, abc);
      |                                        ^~~
      |                                        abs
main.c:23:40: note: each undeclared identifier is reported only once for each function it appears in
main.c:23:45: error: 'bcp' undeclared (first use in this function)
   23 |         printf("%lf\n%lf\n%lf\n%lf\n", abp, bcp, cap, abc);
      |                                             ^~~
main.c:23:50: error: 'cap' undeclared (first use in this function)
   23 |         printf("%lf\n%lf\n%lf\n%lf\n", abp, bcp, cap, abc);
      |                                                  ^~~
main.c:23:55: error: 'abc' undeclared (first use in this function); did you mean 'abs'?
   23 |         printf("%lf\n%lf\n%lf\n%lf\n", abp, bcp, cap, abc);
      |                                                       ^~~
      |                                                       abs
Language: C

#include<stdio.h>
#include<math.h>

int main( void )
{
        double x1 = 0, y1 = 0, x2 = 0, y2 = 0, x3 = 0, y3 = 0;
        double xp = 0, yp = 0;
        double sum = 0, s = 0, s1 = 0, s2 = 0, s3 = 0;


        while(scanf("%lf %lf %lf %lf %lf %lf %lf %lf", &x1, &y1, &x2, &y2, &x3, &y3, &xp, &yp) != EOF)
        {

                s = fabs(((x1 * y2) + (x2 * y3) + (x3 * y1) - (y1 * x2) - (y2 * x3) - (y3 * x1)) / 2.0

                s1 = fabs(((x1 * y2) + (x2 * yp) + (xp * y1) - (y1 * x2) - (y2 * xp) - (yp * x1))/2.0
                s2 = fabs(((xp * y2) + (x2 * y3) + (x3 * yp) - (yp * x2) - (y2 * x3) - (y3 * xp))/2.0
                s3 = fabs(((x1 * yp) + (xp * y3) + (x3 * y1) - (y1 * xp) - (yp * x3) - (y3 * x1))/2.0

                sum = s1 + s2 + s3;

                if((0.0 <= fabs(s - sum) && fabs(s - sum) < 0.001) && ( s1 != 0 && s2 != 0 && s3 != 0))
                {
                        printf("YES\n");
                }
                else
                {
                        printf("NO\n");
                }
        }
        return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:103: error: expected ')' before 's1'
   14 |                 s = fabs(((x1 * y2) + (x2 * y3) + (x3 * y1) - (y1 * x2) - (y2 * x3) - (y3 * x1)) / 2.0
      |                         ~                                                                             ^
      |                                                                                                       )
   15 | 
   16 |                 s1 = fabs(((x1 * y2) + (x2 * yp) + (xp * y1) - (y1 * x2) - (y2 * xp) - (yp * x1))/2.0
      |                 ~~                                                                                     
main.c:32:1: error: expected declaration or statement at end of input
   32 | }
      | ^
main.c:32:1: error: expected declaration or statement at end of input
Language: C

#include <stdio.h>
#include<math.h>
struct Vector {
	double x;
	double y;
};

struct Vector sub_vector(struct Vector a, struct Vector b) {
	struct Vector ret;
	ret.x = a.x - b.x;
	ret.y = a.y - b.y;
	return ret;
}

int main(void)
{
	struct Vector a1, b2, c3, dp, a1, b2, c3, dp;
	struct Vector vecAB,vecBP, vecBC,vecCP,vecCA,vecAP;
	double c0, c1, c2;

	while (scanf("%lf%lf%lf%lf%lf%lf%lf%lf",&a1.x,&a1.y,&b2.x,&b2.y,&c3.x,&c3.y,&dp.x,&dp.y) != EOF) {

		vecAB = sub_vector(b2,a1);
		vecBP = sub_vector(dp, b2);

		vecBC = sub_vector(c3, b2);
		vecCP = sub_vector(dp, c3);

		vecCA = sub_vector(a1, c3);
		vecAP = sub_vector(dp, a1);

		c0 = vecAB.x * vecBP.y - vecAB.y * vecBP.x;
		c1 = vecBC.x * vecCP.y - vecBC.y * vecCP.x;
		c2 = vecCA.x * vecAP.y - vecCA.y * vecAP.x;

		if ((c0 > 0 && c1 > 0 && c2 > 0) || (c0 < 0 && c1 < 0 && c2 < 0))
			printf("YES\n");
		else
			printf("NO\n");
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:17:39: error: redeclaration of 'a1' with no linkage
   17 |         struct Vector a1, b2, c3, dp, a1, b2, c3, dp;
      |                                       ^~
main.c:17:23: note: previous declaration of 'a1' with type 'struct Vector'
   17 |         struct Vector a1, b2, c3, dp, a1, b2, c3, dp;
      |                       ^~
main.c:17:43: error: redeclaration of 'b2' with no linkage
   17 |         struct Vector a1, b2, c3, dp, a1, b2, c3, dp;
      |                                           ^~
main.c:17:27: note: previous declaration of 'b2' with type 'struct Vector'
   17 |         struct Vector a1, b2, c3, dp, a1, b2, c3, dp;
      |                           ^~
main.c:17:47: error: redeclaration of 'c3' with no linkage
   17 |         struct Vector a1, b2, c3, dp, a1, b2, c3, dp;
      |                                               ^~
main.c:17:31: note: previous declaration of 'c3' with type 'struct Vector'
   17 |         struct Vector a1, b2, c3, dp, a1, b2, c3, dp;
      |                               ^~
main.c:17:51: error: redeclaration of 'dp' with no linkage
   17 |         struct Vector a1, b2, c3, dp, a1, b2, c3, dp;
      |                                                   ^~
main.c:17:35: note: previous declaration of 'dp' with type 'struct Vector'
   17 |         struct Vector a1, b2, c3, dp, a1, b2, c3, dp;
      |                                   ^~
Language: C

#include <stdio.h>
#include <math.h>

int main(void)
{
	int n;
	int i;
	double x1, y1, x2, y2, x3, y3;
        double a, b, c, d, e, f;
	double px, py, r;

	scanf("%d",&n); 

	for(i=0; i<n; i++)
	{
		scanf("%lf%lf%lf%lf%lf%lf",&x1, &y1, &x2, &y2, &x3, &y3); 
		
		a = 2 * (x1 -x2);
		b = 2 * (y1 -y2);
		c = 2 * (x1 -x3);
		d = 2 * (y1 -y3);
		e = x1 * x1 - x2 * x2 + y1 * y1 - y2 * y2;
		f = x1 * x1 - x3 * x3 + y1 * y1 - y3 * y3;

		px = (d * e - b * f) / (a * d - b * c);
		py = (a * f - c * e) / (a * d - b * c);

		r = sqrt((x1 - px) * (x1 - px) + (y1 - py) * (y1 - py));
		printf("%.3f %.3f %.3f\n", px, py, r);
		
		if(islessequal(distance, 0.001))
		{
			printf("YES\n");

		}
		else
		{
			printf("NO\n");
		}
	}

	return 0;
}



Compiler output:
In file included from main.c:2:
main.c: In function 'main':
main.c:31:32: error: 'distance' undeclared (first use in this function)
   31 |                 if(islessequal(distance, 0.001))
      |                                ^~~~~~~~
main.c:31:32: note: each undeclared identifier is reported only once for each function it appears in
Language: C

main(){for(float d,e,f,g,h,i,m,n;~scanf("%f%f%f%f%f%f%f%f",&d,&e,&f,&g,&h,&i,&m,&n);puts((f-d)*(n-e)*(f=(h-f)*(n-g)-(m-f)*(i-g))>f*(m-d)*(g-e)&f*(d-h)*(n-i)>f*(m-h)*(e-i)?"YES":"NO"));}

Compiler output:
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int]
    1 | main(){for(float d,e,f,g,h,i,m,n;~scanf("%f%f%f%f%f%f%f%f",&d,&e,&f,&g,&h,&i,&m,&n);puts((f-d)*(n-e)*(f=(h-f)*(n-g)-(m-f)*(i-g))>f*(m-d)*(g-e)&f*(d-h)*(n-i)>f*(m-h)*(e-i)?"YES":"NO"));}
      | ^~~~
main.c: In function 'main':
main.c:1:35: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | main(){for(float d,e,f,g,h,i,m,n;~scanf("%f%f%f%f%f%f%f%f",&d,&e,&f,&g,&h,&i,&m,&n);puts((f-d)*(n-e)*(f=(h-f)*(n-g)-(m-f)*(i-g))>f*(m-d)*(g-e)&f*(d-h)*(n-i)>f*(m-h)*(e-i)?"YES":"NO"));}
      |                                   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | main(){for(float d,e,f,g,h,i,m,n;~scanf("%f%f%f%f%f%f%f%f",&d,&e,&f,&g,&h,&i,&m,&n);puts((f-d)*(n-e)*(f=(h-f)*(n-g)-(m-f)*(i-g))>f*(m-d)*(g-e)&f*(d-h)*(n-i)>f*(m-h)*(e-i)?"YES":"NO"));}
main.c:1:35: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | main(){for(float d,e,f,g,h,i,m,n;~scanf("%f%f%f%f%f%f%f%f",&d,&e,&f,&g,&h,&i,&m,&n);puts((f-d)*(n-e)*(f=(h-f)*(n-g)-(m-f)*(i-g))>f*(m-d)*(g-e)&f*(d-h)*(n-i)>f*(m-h)*(e-i)?"YES":"NO"));}
      |                                   ^~~~~
main.c:1:35: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:85: error: implicit declaration of function 'puts' [-Wimplicit-function-declaration]
    1 | main(){for(float d,e,f,g,h,i,m,n;~scanf("%f%f%f%f%f%f%f%f",&d,&e,&f,&g,&h,&i,&m,&n);puts((f-d)*(n-e)*(f=(h-f)*(n-g)-(m-f)*(i-g))>f*(m-d)*(g-e)&f*(d-h)*(n-i)>f*(m-h)*(e-i)?"YES":"NO"));}
      |                                                                                     ^~~~
main.c:1:85: note: include '<stdio.h>' or provide a declaration of 'puts'
Language: C

using System;
using System.Collections.Generic;
using System.Linq;

namespace AOJ
{
  class Point
  {
    public double X { get; private set; }
    public double Y { get; private set; }

    public Point(double x, double y)
    {
      X = x;
      Y = y;
    }

    public static Point operator+ (Point p1, Point p2)
    {
      return new Point(p1.X + p2.X, p1.Y + p2.Y);
    }

    public static Point operator- (Point p1, Point p2)
    {
      return new Point(p1.X - p2.X, p1.Y - p2.Y);
    }
  }

  class Program
  {
    public static void Main()
    {
      foreach (var points in ReadPoints())
      {
        if (IsInTriangle(points[0], points[1], points[2], points[3]))
          Console.WriteLine("YES");
        else
          Console.WriteLine("NO");
      }
    }

    static IEnumerable<Point[]> ReadPoints()
    {
      string line;
      while ((line = Console.ReadLine()) != null)
        yield return line.Split(' ').Select((s, i) => new { Index = i, Value = double.Parse(s) })
                                    .GroupBy(x => x.Index / 2)
                                    .Select(x => x.Select(v => v.Value))
                                    .Select(x => new Point(x.First(), x.Skip(1).First()))
                                    .ToArray();
    }

    static bool IsInTriangle(Point a, Point b, Point c, Point p)
    {
      var center = new Point((a.X + b.X + c.X) / 3.0, (a.Y + b.Y + c.Y) / 3.0);
      if (IntersectionLine(a, b, p, center)
          || IntersectionLine(a, c, p, center)
          || IntersectionLine(b, c, p, center)) return false;
      return true;
    }

    static bool IntersectionLine(Point a1, Point a2, Point b1, Point b2)
    {
      return ((a1.X - a2.X) * (b1.Y - a1.Y) + (a1.Y - a2.Y) * (a1.X - b1.X))
        * ((a1.X - a2.X) * (b2.Y - a1.Y) + (a1.Y - a2.Y) * (a1.X - b2.X)) < 0;
    }
  }
}

Compiler output:
main.c:1:1: error: unknown type name 'using'
    1 | using System;
      | ^~~~~
main.c:2:1: error: unknown type name 'using'
    2 | using System.Collections.Generic;
      | ^~~~~
main.c:2:13: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    2 | using System.Collections.Generic;
      |             ^
main.c:3:1: error: unknown type name 'using'
    3 | using System.Linq;
      | ^~~~~
main.c:3:13: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    3 | using System.Linq;
      |             ^
main.c:5:1: error: unknown type name 'namespace'
    5 | namespace AOJ
      | ^~~~~~~~~
main.c:6:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    6 | {
      | ^
Language: C

#include <stdio.h>

double hantei(double,double,double,double,double,double,double,double);

int main(){
double x1,x2,x3,y1,y2,y3,xp,yp;
double heix,heiy;

while(scanf("%lf %lf %lf %lf %lf %lf %lf %lf",&x1,&y1,&x2,&y2,&x3,&y3,&xp,&yp)!=EOF){
f=0;
heix=(x1+x2+x3)/3;
heiy=(y1+y2+y3)/3;
if(hantei(x1,y1,x2,y2,xp,yp,heix,heiy)<0.0){
f=1;
}
if(hantei(x1,y1,x3,y3,xp,yp,heix,heiy)<0.0){
f=1;
}
if(hantei(x2,y2,x3,y3,xp,yp,heix,heiy)<0.0){
f=1;
}
if(f==1){
printf("NO\n");
}
else if(f==0){
printf("YES\n");
}
}
return 0;
}

double hantei(double p1x,double p1y,double p2x,double p2y,double p3x,double p3y,double p4x,double p4y)
{
double a;
a=((p1x-p2x)*(p3y-p1y)+(p1y-p2y)*(p1x-p3x))*((p1x-p2x)*(p4y-p1y)+(p1y-p2y)*(p1x-p4x));
return a;
}

Compiler output:
main.c: In function 'main':
main.c:10:1: error: 'f' undeclared (first use in this function)
   10 | f=0;
      | ^
main.c:10:1: note: each undeclared identifier is reported only once for each function it appears in
Language: C

import math

def L(x1,y1,x2,y2):
	return math.sqrt((x1-x2)**2+(y1-y2)**2)
	
def S(a,b,c):
	s=(a+b+c)/2
	return math.sqrt(s*(s-a)*(s-b)*(s-c))
	
while True:
    try:
        x1,y1,x2,y2,x3,y3,xp,yp = map(float, raw_input().split())
        a  = L(x1,y1,x2,y2)
        b  = L(x1,y1,x3,y3)
        c  = L(x2,y2,x3,y3)
        pa = L(x3,y3,xp,yp)
        pb = L(x2,y2,xp,yp)
        pc = L(x1,y1,xp,yp)
        if S(a,pb,pc)+S(b,pc,pa)+S(c,pa,pb)-S(a,b,c) > 0.0000001:
            print "NO"
        else:
            print "YES"
    except:
        break

Compiler output:
main.c:1:1: error: unknown type name 'import'
    1 | import math
      | ^~~~~~
main.c:3:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'def'
    3 | def L(x1,y1,x2,y2):
      | ^~~
main.c:3:1: error: unknown type name 'def'
Language: C

#include<stdio.h>
#include<math.h>
int main(void){
	double x[4],y[4],a,b,c;
	while(scanf("%lf%lf%lf%lf%lf%lf%lf%lf",&x[0],&y[0],&x[1],&y[1],&x[2],&y[2],&x[3],&y[3])!=EOF){
		x[0]-=x[3];
		x[1]-=x[3];
		x[2]-=x[3];
		y[0]-=y[3];
		y[1]-=y[3];
		y[2]-=y[3];

		a=sqrt(x[0]*x[0]+y[0]*y[0]);

		b=sqrt(x[1]*x[1]+y[1]*y[1]);
		c=sqrt((x[0]-x[1])*(x[0]-x[1])+(y[0]-y[1])*(y[0]-y[1]));
		x[3]=(a*a+b*b-c*c)/(2*a*b);

		b=sqrt(x[2]*x[2]+y[2]*y[2]);
		c=sqrt((x[0]-x[2])*(x[0]-x[2])+(y[0]-y[2])*(y[0]-y[2]));
		y[3]=(a*a+b*b-c*c)/(2*a*b);

		a=sqrt(1-y[3]*y[3])*x[3]+sqrt(1-x[3]*x[3])*y[3];
		if(a>0){
			printf("NO\n");
		}else{
			printf("YES\n")
		}
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:27:40: error: expected ';' before '}' token
   27 |                         printf("YES\n")
      |                                        ^
      |                                        ;
   28 |                 }
      |                 ~
Language: C

#include<stdio.h>
#include<math.h>

int dist(int x1,int y1,int x2,int y2){
	return sqrt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2))
}

int area(int p,int q,int r){
	int s=(p+q+r)/2;
	return sqrt(s*(s-p)*(s-q)*(s-r));
}

int main(void){
	double x[4],y[4],a,b,c,d;
	while(scanf("%lf%lf%lf%lf%lf%lf%lf%lf",&x[0],&y[0],&x[1],&y[1],&x[2],&y[2],&x[3],&y[3])!=EOF){
		a=area(dist(x[0],y[0],x[1],y[1]),dist(x[1],y[1],x[2],y[2]),dist(x[2],y[2],x[0],y[0]));
		b=area(dist(x[0],y[0],x[1],y[1]),dist(x[0],y[0],x[3],y[3]),dist(x[3],y[3],x[1],y[1]));
		c=area(dist(x[1],y[1],x[2],y[2]),dist(x[1],y[1],x[3],y[3]),dist(x[3],y[3],x[2],y[2]));
		d=area(dist(x[2],y[2],x[0],y[0]),dist(x[2],y[2],x[3],y[3]),dist(x[3],y[3],x[0],y[0]));
		if((b+c+d)==a){
			printf("YES\n");
		}else{
			printf("NO\n");
		}
	}
	return 0;
}

Compiler output:
main.c: In function 'dist':
main.c:5:53: error: expected ';' before '}' token
    5 |         return sqrt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2))
      |                                                     ^
      |                                                     ;
    6 | }
      | ~
Language: C++

#include <iostream>
#include <complex>
using namespace std;
  
double cross(complex<double> A, complex<double> B){
	return (conj(A)*B).imag();
}
 
int main(){
    complex<double> Points[3], P;
    while(true){
        double x, y;
        for(int i=0; i<3; i++){
            cin >> x >> y;
            V[i] = {x, y};
        }
        cin >> x >> y;
        P = {x, y};
         
        if(!cin)break;
         
        int sum = 0;
        for(int i=0; i<3; i++){
            sum += cross(Points[(i+1)%3]-Points[i], (P-Points[i])) > 0;
        }
        cout << (sum==0 || sum==3? "YES": "NO") << endl;
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:13: error: 'V' was not declared in this scope
   15 |             V[i] = {x, y};
      |             ^
Language: C++

#include <iostream>

using namespace std;

double distance(double x1, double y1, double x2, double y2)
{
	return sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1));
}

double helon(double a, double b, double c)
{
	double s = (a + b + c) / 2;

	return sqrt(s * (s - a) * (s - b) * (s - c));
}

double helon(double x1, double y1, double x2, double y2, double x3, double y3)
{
	double a = distance(x1, y1, x2, y2);
	double b = distance(x2, y2, x3, y3);
	double c = distance(x3, y3, x1, y1);

	return helon(a, b, c);
}

int main()
{
	double x1, y1, x2, y2, x3, y3, xp, yp;

	while ( cin >> x1 >> y1 >> x2 >> y2 >> x3 >> y3 >> xp >> yp) {
		if (round(helon(x1, y1, x2, y2, x3, y3)*100) == round((helon(x1, y1, x2, y2, xp, yp) + helon(x2, y2, x3, y3, xp, yp) + helon(x3, y3, x1, y1, xp, yp)) *100)) {
			cout << "YES" << endl;
		} else {
			cout << "NO" << endl;
		}
	}
	return 0;
}



Compiler output:
a.cc: In function 'double distance(double, double, double, double)':
a.cc:7:16: error: 'sqrt' was not declared in this scope
    7 |         return sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1));
      |                ^~~~
a.cc: In function 'double helon(double, double, double)':
a.cc:14:16: error: 'sqrt' was not declared in this scope
   14 |         return sqrt(s * (s - a) * (s - b) * (s - c));
      |                ^~~~
a.cc: In function 'int main()':
a.cc:31:21: error: 'round' was not declared in this scope
   31 |                 if (round(helon(x1, y1, x2, y2, x3, y3)*100) == round((helon(x1, y1, x2, y2, xp, yp) + helon(x2, y2, x3, y3, xp, yp) + helon(x3, y3, x1, y1, xp, yp)) *100)) {
      |                     ^~~~~
Language: C++

0.0 0.0 1.0 4.0 5.0 3.0 -1.0 3.0

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

import sys
def side(p1, p2, p3): return (p3[1]-p1[1])*(p2[0]-p1[0])-(p2[1]-p1[1])*(p3[0]-p1[0])>0
 
for s in sys.stdin:
  x = map(float, raw_input().split())
  p1 = x[0:2]
  p2 = x[2:4]
  p3 = x[4:6]
  p0 = x[6:]
  print ["NO","YES"][(side(p1, p2, p0)==side(p2, p3, p0) and side(p2, p3, p0)==side(p3, p1, p0))]

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>
#include <vector>
#include <limits.h>
using namespace std;
struct Point
{
	Point() :x(0.0), y(0.0) {}
	Point(double _x, double _y) : x(_x), y(_y) {}
	double x;
	double y;
};
bool HalfPlaneTest(const Point& P1, const Point& P2, const Point& P)
{
	return ((P2.y - P1.y) * P.x - (P2.x - P1.x) * P.y + (P2.x * P1.y - P1.x * P2.y)) > 0;
}
struct Triangle
{
	Triangle() : minX(DBL_MAX), maxX(DBL_MIN), minY(DBL_MAX), maxY(DBL_MIN) {}
	void add(double x, double y) {
		vP.push_back(Point(x, y));
		if (x < minX) minX = x;
		if (x > maxX) maxX = x;
		if (y < minY) minY = y;
		if (y > maxY) maxY = y;
		if (vP.size() == 3){
			if (HalfPlaneTest(vP[0], vP[1], vP[2]))
				swap(vP[1], vP[2]);
		}
	}
	bool IsInclude(double x, double y){
		if (x <= minX || x >= maxX || y <= minY || y >= maxY)
			return false;
		Point p(x, y);
		if (HalfPlaneTest(vP[0], vP[1], p)) return false;
		if (HalfPlaneTest(vP[1], vP[2], p)) return false;
		if (HalfPlaneTest(vP[2], vP[0], p)) return false;
		return true;
	}
	vector<Point> vP;
	double minX;
	double maxX;
	double minY;
	double maxY;
};

int main()
{
	double x1, y1, x2, y2, x3, y3, x, y;
	while (cin >> x1 >> y1 >> x2 >> y2 >> x3 >> y3 >> x >> y){
		Triangle triangle;
		triangle.add(x1, y1);
		triangle.add(x2, y2);
		triangle.add(x3, y3);
		if (triangle.IsInclude(x, y))	cout << "YES\n";
		else							cout << "NO\n";
	}
	return 0;
}

Compiler output:
a.cc: In constructor 'Triangle::Triangle()':
a.cc:18:27: error: 'DBL_MAX' was not declared in this scope
   18 |         Triangle() : minX(DBL_MAX), maxX(DBL_MIN), minY(DBL_MAX), maxY(DBL_MIN) {}
      |                           ^~~~~~~
a.cc:4:1: note: 'DBL_MAX' is defined in header '<cfloat>'; this is probably fixable by adding '#include <cfloat>'
    3 | #include <limits.h>
  +++ |+#include <cfloat>
    4 | using namespace std;
a.cc:18:42: error: 'DBL_MIN' was not declared in this scope
   18 |         Triangle() : minX(DBL_MAX), maxX(DBL_MIN), minY(DBL_MAX), maxY(DBL_MIN) {}
      |                                          ^~~~~~~
a.cc:18:42: note: 'DBL_MIN' is defined in header '<cfloat>'; this is probably fixable by adding '#include <cfloat>'
Language: C++

#include <iostream>
#include <vector>
#include <limits>
using namespace std;
struct Point
{
	Point() :x(0.0), y(0.0) {}
	Point(double _x, double _y) : x(_x), y(_y) {}
	double x;
	double y;
};
bool HalfPlaneTest(const Point& P1, const Point& P2, const Point& P)
{
	return ((P2.y - P1.y) * P.x - (P2.x - P1.x) * P.y + (P2.x * P1.y - P1.x * P2.y)) > 0;
}
struct Triangle
{
	Triangle() : minX(DBL_MAX), maxX(DBL_MIN), minY(DBL_MAX), maxY(DBL_MIN) {}
	void add(double x, double y) {
		vP.push_back(Point(x, y));
		if (x < minX) minX = x;
		if (x > maxX) maxX = x;
		if (y < minY) minY = y;
		if (y > maxY) maxY = y;
		if (vP.size() == 3){
			if (HalfPlaneTest(vP[0], vP[1], vP[2]))
				swap(vP[1], vP[2]);
		}
	}
	bool IsInclude(double x, double y){
		if (x <= minX || x >= maxX || y <= minY || y >= maxY)
			return false;
		Point p(x, y);
		if (HalfPlaneTest(vP[0], vP[1], p)) return false;
		if (HalfPlaneTest(vP[1], vP[2], p)) return false;
		if (HalfPlaneTest(vP[2], vP[0], p)) return false;
		return true;
	}
	vector<Point> vP;
	double minX;
	double maxX;
	double minY;
	double maxY;
};

int main()
{
	double x1, y1, x2, y2, x3, y3, x, y;
	while (cin >> x1 >> y1 >> x2 >> y2 >> x3 >> y3 >> x >> y){
		Triangle triangle;
		triangle.add(x1, y1);
		triangle.add(x2, y2);
		triangle.add(x3, y3);
		if (triangle.IsInclude(x, y))	cout << "YES\n";
		else							cout << "NO\n";
	}
	return 0;
}

Compiler output:
a.cc: In constructor 'Triangle::Triangle()':
a.cc:18:27: error: 'DBL_MAX' was not declared in this scope
   18 |         Triangle() : minX(DBL_MAX), maxX(DBL_MIN), minY(DBL_MAX), maxY(DBL_MIN) {}
      |                           ^~~~~~~
a.cc:4:1: note: 'DBL_MAX' is defined in header '<cfloat>'; this is probably fixable by adding '#include <cfloat>'
    3 | #include <limits>
  +++ |+#include <cfloat>
    4 | using namespace std;
a.cc:18:42: error: 'DBL_MIN' was not declared in this scope
   18 |         Triangle() : minX(DBL_MAX), maxX(DBL_MIN), minY(DBL_MAX), maxY(DBL_MIN) {}
      |                                          ^~~~~~~
a.cc:18:42: note: 'DBL_MIN' is defined in header '<cfloat>'; this is probably fixable by adding '#include <cfloat>'
Language: C++

#include <cstdio>
#include <iostream>

using namespace std;
#define rep(i,n) for(int i = 0; i < (n); ++i)

bool judge(double x[3], double y[3]) {
	double rad1 = atan2(y[0], x[0]);
	cout << rad1 << endl;
	double rad2 = atan2(y[1], x[1]);
	cout << rad2 << endl;
	double rad3 = atan2(y[2], x[2]);
	cout << rad3 << endl;
	if(rad3 < rad1 && rad2 < rad3 || rad1 < rad3 && rad3 < rad2) return true;
	else return false;
}

int main() {
	double x1, y1, x2, y2, x3, y3, xp, yp;
	while(scanf("%lf %lf %lf %lf %lf %lf %lf %lf\n", &x1, &y1, &x2, &y2, &x3, &y3, &xp, &yp) != EOF) {
		double x[3], y[3];
		x[0] = x2 - x1;
		y[0] = y2 - y1; 
		x[1] = x3 - x1;
		y[1] = y3 - y1;
		x[2] = xp - x1;
		y[2] = yp - y1;
		if(!judge(x, y)) {
			cout << "NO" << endl;
			break;
		}
		x[0] = x1 - x2;
		y[0] = y1 - y2;
		x[1] = x3 - x2;
		y[1] = y3 - y2;
		x[2] = xp - x2;
		y[2] = yp - y2;
		if(!judge(x, y)) {
			cout << "NO" << endl;
			break;
		}
		cout << "YES" << endl;
	}
	return 0;
}

Compiler output:
a.cc: In function 'bool judge(double*, double*)':
a.cc:8:23: error: 'atan2' was not declared in this scope
    8 |         double rad1 = atan2(y[0], x[0]);
      |                       ^~~~~
Language: C++

#include <cstdio>
#include <iostream>
#include <cmath>

using namespace std;

bool judge(double x[2], double y[2]) {
	double cross = x[0] * y[1] - y[0] * x[1];
	if(cross >= 0) return true;
	else return false;
}

int main() {
	double x1, y1, x2, y2, x3, y3, xp, yp;
	while(scanf("%lf %lf %lf %lf %lf %lf %lf %lf", &x1, &y1, &x2, &y2, &x3, &y3, &xp, &yp) != EOF) {
		double ax[2], ay[2];
		x[0] = x2 - x1;
		y[0] = y2 - y1; 
		x[1] = xp - x1;
		y[1] = yp - y1;
		double bx[2], by[2];
		x[0] = x3 - x2;
		y[0] = y3 - y2;
		x[1] = xp - x2;
		y[1] = yp - y2;
		double cx[2], cy[2];
		x[0] = x1 - x3;
		y[0] = y1 - y3;
		x[1] = xp - x3;
		y[1] = yp - y3;
		if(judge(ax, ay) && judge(bx, by) && judge(cx, cy) || !judge(ax, ay) && !judge(bx, by) && !judge(cx, cy)) {
			cout << "YES" << endl;
		} else {
			cout << "NO" << endl;
		}
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:17: error: 'x' was not declared in this scope; did you mean 'ax'?
   17 |                 x[0] = x2 - x1;
      |                 ^
      |                 ax
a.cc:18:17: error: 'y' was not declared in this scope; did you mean 'ay'?
   18 |                 y[0] = y2 - y1;
      |                 ^
      |                 ay
Language: C++

#include <iostream>
#include <iomanip>
#include <math.h>
#include <utility>
#include <cstdlib>
using namespace std;

int main(){
	int n;
	cin >> n;
	while(cin >> x[0] >> y[0] >> x[1] >> y[1] >> x[2] >> y[2] >> xp >> yp){
		bool ans=true;
		double x[3],y[3],xp,yp;
		cin >> x[0] >> y[0] >> x[1] >> y[1] >> x[2] >> y[2] >> xp >> yp;
		//???????????¨????????????
		double gaiseki[3];	//gaiseki[i]???????????????P0P1??¨????????????P0Q????????????z??§?¨?
		for(int i=0;i<3;i++){
			int k = (i+1)%3;
			double vx,vy,vpx,vpy;
			vx = x[k]-x[i];
			vy = y[k]-y[i];
			vpx = xp-x[i];
			vpy = yp-y[i];
			gaiseki[i] = vx*vpy-vy*vpx;
			if(gaiseki[i]<=0) ans = false;
		}
		if(ans){
			cout << "YES" << endl;
		}else{
			cout << "NO" << endl;
		}
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:22: error: 'x' was not declared in this scope
   11 |         while(cin >> x[0] >> y[0] >> x[1] >> y[1] >> x[2] >> y[2] >> xp >> yp){
      |                      ^
a.cc:11:30: error: 'y' was not declared in this scope
   11 |         while(cin >> x[0] >> y[0] >> x[1] >> y[1] >> x[2] >> y[2] >> xp >> yp){
      |                              ^
a.cc:11:70: error: 'xp' was not declared in this scope; did you mean 'exp'?
   11 |         while(cin >> x[0] >> y[0] >> x[1] >> y[1] >> x[2] >> y[2] >> xp >> yp){
      |                                                                      ^~
      |                                                                      exp
a.cc:11:76: error: 'yp' was not declared in this scope; did you mean 'yn'?
   11 |         while(cin >> x[0] >> y[0] >> x[1] >> y[1] >> x[2] >> y[2] >> xp >> yp){
      |                                                                            ^~
      |                                                                            yn
Language: C++

#include <iostream>
#include <iomanip>
#include <math.h>
#include <utility>
#include <cstdlib>
using namespace std;

int main(){
	while(cin >> x[0] >> y[0] >> x[1] >> y[1] >> x[2] >> y[2] >> xp >> yp){
		bool ans=true;
		double x[3],y[3],xp,yp;
		cin >> x[0] >> y[0] >> x[1] >> y[1] >> x[2] >> y[2] >> xp >> yp;
		//???????????¨????????????
		double gaiseki[3];	//gaiseki[i]???????????????P0P1??¨????????????P0Q????????????z??§?¨?
		for(int i=0;i<3;i++){
			int k = (i+1)%3;
			double vx,vy,vpx,vpy;
			vx = x[k]-x[i];
			vy = y[k]-y[i];
			vpx = xp-x[i];
			vpy = yp-y[i];
			gaiseki[i] = vx*vpy-vy*vpx;
			if(gaiseki[i]<=0) ans = false;
		}
		if(ans){
			cout << "YES" << endl;
		}else{
			cout << "NO" << endl;
		}
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:22: error: 'x' was not declared in this scope
    9 |         while(cin >> x[0] >> y[0] >> x[1] >> y[1] >> x[2] >> y[2] >> xp >> yp){
      |                      ^
a.cc:9:30: error: 'y' was not declared in this scope; did you mean 'yn'?
    9 |         while(cin >> x[0] >> y[0] >> x[1] >> y[1] >> x[2] >> y[2] >> xp >> yp){
      |                              ^
      |                              yn
a.cc:9:70: error: 'xp' was not declared in this scope; did you mean 'exp'?
    9 |         while(cin >> x[0] >> y[0] >> x[1] >> y[1] >> x[2] >> y[2] >> xp >> yp){
      |                                                                      ^~
      |                                                                      exp
a.cc:9:76: error: 'yp' was not declared in this scope; did you mean 'yn'?
    9 |         while(cin >> x[0] >> y[0] >> x[1] >> y[1] >> x[2] >> y[2] >> xp >> yp){
      |                                                                            ^~
      |                                                                            yn