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

import java.util.*;
 
 
public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        while(sc.hasNext()){
            String[] s = sc.nextLine().split(",");
            double[] a = new double[8];
            for(int i=0;i < 8;i++) a[i] = Double.parseDouble(s[i]); }
             
            if(isCross(a[0],a[1],a[4],a[5],a[2],a[3],a[6],a[7]) > 0.0 || isCross(a[2],a[3],a[6],a[7],a[0],a[1],a[4],a[5]) > 0.0){
                System.out.println("NO");
            }else{
                System.out.println("YES");} }}
     
    private static double isCross(double p1_x,double p1_y,double p2_x,double p2_y,double p3_x,double p3_y,double p4_x,double p4_y){  
        return ( (p1_x-p2_x)*
         (p3_y-p1_y) + 
      (p1_y-p2_y)*(p1_x-p3_x)) *
      ((p1_x-p2_x)*(p4_y-p1_y) +
      (p1_y-p2_y)*(p1_x-p4_x));  
    }
}

Compiler output:
Main.java:17: error: unnamed classes are a preview feature and are disabled by default.
    private static double isCross(double p1_x,double p1_y,double p2_x,double p2_y,double p3_x,double p3_y,double p4_x,double p4_y){  
                   ^
  (use --enable-preview to enable unnamed classes)
Main.java:24: error: class, interface, enum, or record expected
}
^
2 errors
Language: Java

import java.io.*;

class Main{
public static void main(String[] args){
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
String line;
while((line=br.readLine())!=null){
String[] value=line.split(",");
double xa=Double.parseDouble(value[0]);
double ya=Double.parseDouble(value[1]);
double xb=Double.parseDouble(value[2]);
double yb=Double.parseDouble(value[3]);
double xc=Double.parseDouble(value[4]);
double yc=Double.parseDouble(value[5]);
double xd=Double.parseDouble(value[6]);
double yd=Double.parseDouble(value[7]);
double area1=area(xb-xa,yb-ya,xd-xa,yd-ya)+area(xb-xc,yb-yc,xd-xc,yd-yc);
double area2=area(xa-xb,ya-yb,xc-xb,yc-yb)+area(xa-xd,ya-yd,xc-xd,yc-yd);
if(area1==area2){
System.out.println("YES");
}
else{
System.out.println("NO");
}
}
}
static double area(double a,double b,double c,double d){
return Math.abs(a*d-b*c)/2;
}
}

Compiler output:
Main.java:7: error: unreported exception IOException; must be caught or declared to be thrown
while((line=br.readLine())!=null){
                       ^
1 error
Language: Java

import java.util.*;

public class Main{
	
	private static final Scanner scan = new Scanner(System.in)
							.useDelimiter("[,\\s]+");

	public static void main(String[] args){
		
		while(scan.hasNext()){
			double[] x = new double[4];
			double[] y = new double[4];
			for(int i = 0; i < 4; i++){
				x[i] = scan.nextDouble();
				y[i] = scan.nextDouble();
			}
			System.out.println(solve(x,y));
		}
	}

	static String solve(double[] x, double[] y){
		boolean dirs[] = new boolean[4];
		for(int i = 0; i < 4; i++){
			int j = (i+1) % 4;
			int k = (i+2) % 4;
			dirs[i] = cross(x[j]-x[i], y[j]-y[i], x[k]-x[i], y[k]-y[i]);
		}
		boolean yes = true;
		for(int i = 1; i < 4; i++){
			if(dirs[i-1] != dirs[i]){
				yes = false;
			}
			return yes? "YES" : "NO";
		}
	}

	private boolean cross(double x1, double y1, double x2, double y2){
		return (x1*y2 - x2*y1) >= 0;
	}
}

Compiler output:
Main.java:26: error: non-static method cross(double,double,double,double) cannot be referenced from a static context
			dirs[i] = cross(x[j]-x[i], y[j]-y[i], x[k]-x[i], y[k]-y[i]);
			          ^
1 error
Language: Java

import java.util.*;

public class A{
	
	private static final Scanner scan = new Scanner(System.in)
							.useDelimiter("[,\\s]+");
	static boolean dirs[] = new boolean[4];

	public static void main(String[] args){
		
		while(scan.hasNext()){
			double[] x = new double[4];
			double[] y = new double[4];
			for(int i = 0; i < 4; i++){
				x[i] = scan.nextDouble();
				y[i] = scan.nextDouble();
			}
			System.out.println(solve(x,y));
		}
	}

	static String solve(double[] x, double[] y){
		for(int i = 0; i < 4; i++){
			int j = (i+1) % 4;
			int k = (i+2) % 4;
			dirs[i] = cross(x[j]-x[i], y[j]-y[i], x[k]-x[i], y[k]-y[i]);
		}
		boolean yes = true;
		for(int i = 1; i < 4; i++){
			if(dirs[i-1] != dirs[i]){
				yes = false;
			}
			return yes? "YES" : "NO";
		}
	}

	private boolean cross(double x1, double y1, double x2, double y2){
		return (x1*y2 - x2*y1) >= 0;
	}
}

Compiler output:
Main.java:3: error: class A is public, should be declared in a file named A.java
public class A{
       ^
Main.java:26: error: non-static method cross(double,double,double,double) cannot be referenced from a static context
			dirs[i] = cross(x[j]-x[i], y[j]-y[i], x[k]-x[i], y[k]-y[i]);
			          ^
2 errors
Language: Java

import java.util.*;

public class Main{
	
	private static final Scanner scan = new Scanner(System.in)
							.useDelimiter("[,\\s]+");
	static boolean dirs[] = new boolean[4];

	public static void main(String[] args){
		
		while(scan.hasNext()){
			double[] x = new double[4];
			double[] y = new double[4];
			for(int i = 0; i < 4; i++){
				x[i] = scan.nextDouble();
				y[i] = scan.nextDouble();
			}
			System.out.println(solve(x,y));
		}
	}

	static String solve(double[] x, double[] y){
		for(int i = 0; i < 4; i++){
			int j = (i+1) % 4;
			int k = (i+2) % 4;
			dirs[i] = cross(x[j]-x[i], y[j]-y[i], x[k]-x[i], y[k]-y[i]);
		}
		boolean yes = true;
		for(int i = 1; i < 4; i++){
			if(dirs[i-1] != dirs[i]){
				yes = false;
			}
			return yes? "YES" : "NO";
		}
	}

	private static boolean cross(double x1, double y1, double x2, double y2){
		return (x1*y2 - x2*y1) >= 0;
	}
}

Compiler output:
Main.java:35: error: missing return statement
	}
	^
1 error
Language: Java

import java.util.*;

public class Main{
	
	private static final Scanner scan = new Scanner(System.in)
							.useDelimiter("[,\\s]+");

	public static void main(String[] args){

		while(scan.hasNext()){
			double[] x = new double[4];
			double[] y = new double[4];
			for(int i = 0; i < 4; i++){
				x[i] = scan.nextDouble();
				y[i] = scan.nextDouble();
			}
			boolean flag = isIntersect(x[0], y[0], x[2], y[2], x[1], y[1], x[3], y[3])
					&& isIntersect(x[1], y[1], x[3], y[3], x[0], y[0], x[2], y[2]);
			System.out.printf("%s\n", flag? "Yes" : "NO");
		}
	}

	public static boolean isIntersect(double x1, double y1, double x2, double y2,
								 double x3, double y3, double x4, double y4){
		//???A(x1,y1)??¨???B(x2,y2)????????¶??´?????¨???C(x3,y3)??¨???D(x4,y4)????????¶???????????????????????????????????????
		double tc = (x1-x2)*(y3-y1)+(y1-y2)*(x1-x3);
		double td = (x1-x2)*(y4-y1)+(y1-y2)*(x1-x4)
		return tc * td < 0;
	}
} 

Compiler output:
Main.java:27: error: ';' expected
		double td = (x1-x2)*(y4-y1)+(y1-y2)*(x1-x4)
		                                           ^
1 error
Language: Java

import java.io.*;class Main{
public static void main(String[]_)throws Exception{
int i,j;
boolean f;
float l[]=new float[8];
BufferedReader B=new BufferedReader(new InputStreamReader(System.in));
for(String s;(s=B.readLine())!=null;System.out.println(f?"NO":"YES")){
_=s.split(",");
f=false;
for(j=0;j<2;j++){
for(i=0;i<8;i++)l[i]=Float.valueOf(_[(4*j+i)%8]);
f|=
((l[0]-l[2])*(l[5]-l[1])+(l[1]-l[3])*(l[0]-l[4]))*
((l[0]-l[2])*(l[7]-l[1])+(l[1]-l[3])*(l[0]-l[6]))<0;
}
}
}
}


Compiler output:
Main.java:2: error: as of release 9, '_' is a keyword, and may not be used as an identifier
public static void main(String[]_)throws Exception{
                                ^
Main.java:8: error: as of release 9, '_' is a keyword, and may not be used as an identifier
_=s.split(",");
^
Main.java:11: error: as of release 9, '_' is a keyword, and may not be used as an identifier
for(i=0;i<8;i++)l[i]=Float.valueOf(_[(4*j+i)%8]);
                                   ^
3 errors
Language: Java

import java.io.*;class Main{
public static void main(String _[])throws Exception{
int i,j;
boolean f;
float l[]=new float[8];
BufferedReader B=new BufferedReader(new InputStreamReader(System.in));
for(String s;(s=B.readLine())!=null;System.out.println(f?"NO":"YES")){
_=s.split(",");
f=false;
for(j=0;j<2;j++){
for(i=0;i<8;i++)l[i]=Float.valueOf(_[(4*j+i)%8]);
f|=
((l[0]-l[2])*(l[5]-l[1])+(l[1]-l[3])*(l[0]-l[4]))*
((l[0]-l[2])*(l[7]-l[1])+(l[1]-l[3])*(l[0]-l[6]))<0;
}
}
}
}


Compiler output:
Main.java:2: error: as of release 9, '_' is a keyword, and may not be used as an identifier
public static void main(String _[])throws Exception{
                               ^
Main.java:8: error: as of release 9, '_' is a keyword, and may not be used as an identifier
_=s.split(",");
^
Main.java:11: error: as of release 9, '_' is a keyword, and may not be used as an identifier
for(i=0;i<8;i++)l[i]=Float.valueOf(_[(4*j+i)%8]);
                                   ^
3 errors
Language: Java

import java.util.Scanner;

public class A0035 {
	
	public static double[] equation(double a,double b,double c,double d,double e,double f){
		double det = a*e-b*d;
		double[] ans = new double[2];
		double x = (c*e-b*f)/det;
		double y = (a*f-c*d)/det;
		if(x==-0)
			x = 0;
		if(y==-0)
			y = 0;
		ans[0] = x;
		ans[1] = y;
		return ans;
	}
	
	public static String[] kommmaReader() {
		Scanner sc = new Scanner(System.in);
		String line;
		line=sc.nextLine();
		String[] array = line.split(",");
		return array;
	}

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		do{
			String[] str = kommmaReader();
			double[] p = new double[8];
			for(int i=0; i<8; i++) p[i] = Double.parseDouble(str[i]);
			double[] ans = equation(p[0]-p[2],p[4]-p[2],p[6]-p[2],p[1]-p[3],p[5]-p[3],p[7]-p[3]);
		
			if(ans[0]+ans[1]>1 && ans[0]>0 && ans[1]>0) System.out.println("YES");
			else System.out.println("NO");
		}while(sc.hasNextLine());
	}

}

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

import java.util.Scanner;

public class　Main {

	// ヘロンの公式(３つの辺から求めるver)
	public static double getArea (double a, double b, double c) {
		double s = (a + b + c) / 2;
		return Math.sqrt(s * (s - a) * (s - b) * (s - c));
	}

	// ２点間の距離
	public static double getDistance (double x1, double y1, double x2, double y2) {
		return Math.sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1));
	}

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		double tol = 0.000000001;

		while (sc.hasNextLine()) {
			double[] nums = new double[8];
			String[] str = sc.nextLine().split(",");
			for (int i = 0; i < nums.length; i++)
				nums[i] = Double.parseDouble(str[i]);
			double ab = getDistance(nums[0],nums[1],nums[2],nums[3]);
			double bc = getDistance(nums[2],nums[3],nums[4],nums[5]);
			double cd = getDistance(nums[4],nums[5],nums[6],nums[7]);
			double da = getDistance(nums[6],nums[7],nums[0],nums[1]);
			double bd = getDistance(nums[2],nums[3],nums[6],nums[7]);
			double ac = getDistance(nums[0],nums[1],nums[4],nums[5]);
			double area1 = Math.abs(getArea(ab,bc,ac) - getArea(da,cd,ac));
			double area2 = Math.abs(getArea(bc,cd,bd) - getArea(ab,bd,da));
			boolean b = area1 < tol && area2 < tol;
//			System.out.println(area1 + "," + area2);
			System.out.println(b ? "YES" : "NO");
		}

	}

}

Compiler output:
Main.java:3: error: illegal character: '\u3000'
public class?Main {
            ^
1 error
Language: C

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

using namespace std;

int main () {
	double xa, ya, xb, yb, xc, yc, xd, yd, xe, ye;
	double tac, tbd, sac, sbd;
	char c[10000];
	int i;
	while(scanf("%s",&c)!=EOF) {
		xa=atof(strtok ( c, "," ));
		ya = atof ( strtok ( NULL, "," ) ); 
		xb = atof ( strtok ( NULL, "," ) ); 
		yb = atof ( strtok ( NULL, "," ) ); 
		xc = atof ( strtok ( NULL, "," ) ); 
		yc = atof ( strtok ( NULL, "," ) ); 
		xd = atof ( strtok ( NULL, "," ) ); 
		yd = atof ( strtok ( NULL, "," ) ); 
		sac = ( yc - ya ) / ( xc - xa );
		tac = ya - xa*sac;
		sbd = ( yd - yb ) / ( xd - xb );
		tbd = yb - xb*sbd;
		xe = ( tac - tbd ) / ( sbd - sac );
		ye = xe*sac + tac;
		if(( ( xa <= xe&&xe <= xc ) || ( xc <= xe&&xe <= xa ) ) && ( ( ya <= ye&&ye <= yc ) || ( yc <= ye&&ye <= ya ) )) {
			printf ( "YES\n" );
		} else {
			printf ( "NO\n" );
		}
		//printf ( "%f %f\n", xb, yb );
	}
	return 0;
}

Compiler output:
main.c:5:1: error: unknown type name 'using'
    5 | using namespace std;
      | ^~~~~
main.c:5:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'
    5 | using namespace std;
      |                 ^~~
Language: C

#include <stdio.h>

double gaiseki(double x0,double y0,double x1,double y1,double x2,double y2){
  return(x0-x1)*(y2-y0)-(y0-y1)*(x2-x0)
}
int main(){
  double x0,y0,x1,y1,x2,y2,x3,y3;
  while (scanf("%lf,%lf,%lf,%lf,%lf,%lf,%lf,%lf",&x0,&y0,&x1,&y1,&x2,&y2,&x3,&y3)!=EOF){
    printf("%f\n",gaiseki(x0,y0,x1,y1,x3,y3));
    printf("%f\n",gaiseki(x1,y1,x2,y2,x3,y3));
    printf("%f\n",gaiseki(x2,y2,x0,y0,x3,y3));
    if (gaiseki(x0,y0,x1,y1,x3,y3<0&&gaiseki(x1,y1,x2,y2,x3,y3)<0&&gaiseki(x2,y2,x0,y0,x3,y3)<0){
      printf("YES\n");
    }else{
      printf("NO\n");
    }
  }//while?????????
  return 0;
}

Compiler output:
main.c: In function 'gaiseki':
main.c:4:40: error: expected ';' before '}' token
    4 |   return(x0-x1)*(y2-y0)-(y0-y1)*(x2-x0)
      |                                        ^
      |                                        ;
    5 | }
      | ~                                       
main.c: In function 'main':
main.c:12:97: error: expected ')' before '{' token
   12 |     if (gaiseki(x0,y0,x1,y1,x3,y3<0&&gaiseki(x1,y1,x2,y2,x3,y3)<0&&gaiseki(x2,y2,x0,y0,x3,y3)<0){
      |        ~                                                                                        ^
      |                                                                                                 )
main.c:17:3: error: expected expression before '}' token
   17 |   }//while?????????
      |   ^
Language: C

#include <stdio.h>

double gaiseki(double x0,double y0,double x1,double y1,double x2,double y2){
  return(x0-x1)*(y2-y0)-(y0-y1)*(x2-x0)
}
int main(){
  double x0,y0,x1,y1,x2,y2,x3,y3;
  while (scanf("%lf,%lf,%lf,%lf,%lf,%lf,%lf,%lf",&x0,&y0,&x1,&y1,&x2,&y2,&x3,&y3)!=EOF){
    printf("%f\n",gaiseki(x0,y0,x1,y1,x3,y3));
    printf("%f\n",gaiseki(x1,y1,x2,y2,x3,y3));
    printf("%f\n",gaiseki(x2,y2,x0,y0,x3,y3));
    if (gaiseki(x0,y0,x1,y1,x3,y3<0)&&gaiseki(x1,y1,x2,y2,x3,y3)<0&&gaiseki(x2,y2,x0,y0,x3,y3)<0){
      printf("YES\n");
    }else{
      printf("NO\n");
    }
  }//while?????????
  return 0;
}

Compiler output:
main.c: In function 'gaiseki':
main.c:4:40: error: expected ';' before '}' token
    4 |   return(x0-x1)*(y2-y0)-(y0-y1)*(x2-x0)
      |                                        ^
      |                                        ;
    5 | }
      | ~
Language: C

#include <stdio.h>
??
double gaiseki(double x0,double y0,double x1,double y1,double x2,double y2){
????return(x0-x1)*(y0-y1)-(x0-x2)*(y0-y2);
}
int main(){
????double x0,y0,x1,y1,x2,y2,x3,y3;
????while (scanf("%lf,%lf,%lf,%lf,%lf,%lf,%lf,%lf",&x0,&y0,&x1,&y1,&x2,&y2,&x3,&y3)!=EOF){
????????if (gaiseki(x0,y0,x1,y1,x3,y3)>=0&&gaiseki(x1,y1,x2,y2,x3,y3)>=0&&gaiseki(x2,y2,x0,y0,x3,y3)>=0){
????????????printf("YES\n");
????????}else{
????????????printf("NO\n");
????????}
????}
????return 0;
}

Compiler output:
main.c:2:1: error: expected identifier or '(' before '?' token
    2 | ??
      | ^
main.c: In function 'main':
main.c:7:1: error: expected expression before '?' token
    7 | ????double x0,y0,x1,y1,x2,y2,x3,y3;
      | ^
main.c:8:1: error: expected expression before '?' token
    8 | ????while (scanf("%lf,%lf,%lf,%lf,%lf,%lf,%lf,%lf",&x0,&y0,&x1,&y1,&x2,&y2,&x3,&y3)!=EOF){
      | ^
Language: C

#define P(b,c)(x[b]*x[1+c]-x[1+b]*x[c])
float x[9],s,t;main(i){for(;~scanf("%f,",&s);i-9||memset(x,0,36,puts((s=P(3,5))*(t=P(5,7))>0&&P(1,3)*s>0&t*P(7,1)>0?"YES":"NO",i=1)))x[i]+=s,x[++i%8+1]-=s;}

Compiler output:
main.c:2:16: error: return type defaults to 'int' [-Wimplicit-int]
    2 | float x[9],s,t;main(i){for(;~scanf("%f,",&s);i-9||memset(x,0,36,puts((s=P(3,5))*(t=P(5,7))>0&&P(1,3)*s>0&t*P(7,1)>0?"YES":"NO",i=1)))x[i]+=s,x[++i%8+1]-=s;}
      |                ^~~~
main.c: In function 'main':
main.c:2:16: error: type of 'i' defaults to 'int' [-Wimplicit-int]
main.c:2:30: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    2 | float x[9],s,t;main(i){for(;~scanf("%f,",&s);i-9||memset(x,0,36,puts((s=P(3,5))*(t=P(5,7))>0&&P(1,3)*s>0&t*P(7,1)>0?"YES":"NO",i=1)))x[i]+=s,x[++i%8+1]-=s;}
      |                              ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #define P(b,c)(x[b]*x[1+c]-x[1+b]*x[c])
main.c:2:30: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    2 | float x[9],s,t;main(i){for(;~scanf("%f,",&s);i-9||memset(x,0,36,puts((s=P(3,5))*(t=P(5,7))>0&&P(1,3)*s>0&t*P(7,1)>0?"YES":"NO",i=1)))x[i]+=s,x[++i%8+1]-=s;}
      |                              ^~~~~
main.c:2:30: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:2:51: error: implicit declaration of function 'memset' [-Wimplicit-function-declaration]
    2 | float x[9],s,t;main(i){for(;~scanf("%f,",&s);i-9||memset(x,0,36,puts((s=P(3,5))*(t=P(5,7))>0&&P(1,3)*s>0&t*P(7,1)>0?"YES":"NO",i=1)))x[i]+=s,x[++i%8+1]-=s;}
      |                                                   ^~~~~~
main.c:1:1: note: include '<string.h>' or provide a declaration of 'memset'
  +++ |+#include <string.h>
    1 | #define P(b,c)(x[b]*x[1+c]-x[1+b]*x[c])
main.c:2:51: warning: incompatible implicit declaration of built-in function 'memset' [-Wbuiltin-declaration-mismatch]
    2 | float x[9],s,t;main(i){for(;~scanf("%f,",&s);i-9||memset(x,0,36,puts((s=P(3,5))*(t=P(5,7))>0&&P(1,3)*s>0&t*P(7,1)>0?"YES":"NO",i=1)))x[i]+=s,x[++i%8+1]-=s;}
      |                                                   ^~~~~~
main.c:2:51: note: include '<string.h>' or provide a declaration of 'memset'
main.c:2:65: error: implicit declaration of function 'puts' [-Wimplicit-function-declaration]
    2 | float x[9],s,t;main(i){for(;~scanf("%f,",&s);i-9||memset(x,0,36,puts((s=P(3,5))*(t=P(5,7))>0&&P(1,3)*s>0&t*P(7,1)>0?"YES":"NO",i=1)))x[i]+=s,x[++i%8+1]-=s;}
      |                                                                 ^~~~
main.c:2:65: note: include '<stdio.h>' or provide a declaration of 'puts'
main.c:2:65: warning: too many arguments to built-in function 'puts' expecting 1 [-Wbuiltin-declaration-mismatch]
main.c:2:51: error: too many arguments to function 'memset'
    2 | float x[9],s,t;main(i){for(;~scanf("%f,",&s);i-9||memset(x,0,36,puts((s=P(3,5))*(t=P(5,7))>0&&P(1,3)*s>0&t*P(7,1)>0?"YES":"NO",i=1)))x[i]+=s,x[++i%8+1]-=s;}
      |                                                   ^~~~~~
Language: C

#include<stdio.h>
#include<stdlib.h>
#include<math.h>
#include<string.h>
/*
三辺a,b,c
s=(a+b+c)/2
S={s(s-a)(s-b)(s-c)}^(1/2)

*/

double check(double a,double b,double c){
	double s,S;
	
	s=(a+b+c)/2;
	
	S=sqrt(s*(s-a)*(s-b)*(s-c));
	
	return S;
}
	

int main(void){
	double x[4],y[4],s,t,a,b,c,s1,s2;
	int i,l,f;
	char c1[20],c2[20];
	
	while(1){
		//for(i=0;i<4;i++)scanf("%lf,%lf,",&x[i],&y[i]);
		for(i=0;i<20;i++){
			c1[i]=NULL;
			c2[i]=NULL;
		}
		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]);
		s1=s2=0;
		//点acで区切った三角形
		//+b
		a=sqrt(pow((x[0]-x[2]),2)+pow((y[0]-y[2]),2));
		b=sqrt(pow((x[0]-x[1]),2)+pow((y[0]-y[1]),2));
		c=sqrt(pow((x[1]-x[2]),2)+pow((y[1]-y[2]),2));
		s1+=check(a,b,c);
		
		//+d
		a=sqrt(pow((x[0]-x[2]),2)+pow((y[0]-y[2]),2));
		b=sqrt(pow((x[0]-x[3]),2)+pow((y[0]-y[3]),2));
		c=sqrt(pow((x[3]-x[2]),2)+pow((y[3]-y[2]),2));
		s1+=check(a,b,c);
		
		
		//点bdで区切った三角形
		//+a
		a=sqrt(pow((x[1]-x[3]),2)+pow((y[1]-y[3]),2));
		b=sqrt(pow((x[0]-x[1]),2)+pow((y[0]-y[1]),2));
		c=sqrt(pow((x[0]-x[3]),2)+pow((y[0]-y[3]),2));
		s2+=check(a,b,c);
		
		//+c
		a=sqrt(pow((x[1]-x[3]),2)+pow((y[1]-y[3]),2));
		b=sqrt(pow((x[2]-x[1]),2)+pow((y[2]-y[1]),2));
		c=sqrt(pow((x[2]-x[3]),2)+pow((y[2]-y[3]),2));
		s2+=check(a,b,c);
		
		sprintf(c1,"%lf",s1);
		sprintf(c2,"%lf",s2);
		
		if(strcmp(c1,c2)==0){
			printf("YES\n");
			continue;
		}
		else{
			printf("NO\n");
			break;
		}
		
	}
	
	return 0;
}
	
	
	

Compiler output:
main.c: In function 'main':
main.c:31:30: error: assignment to 'char' from 'void *' makes integer from pointer without a cast [-Wint-conversion]
   31 |                         c1[i]=NULL;
      |                              ^
main.c:32:30: error: assignment to 'char' from 'void *' makes integer from pointer without a cast [-Wint-conversion]
   32 |                         c2[i]=NULL;
      |                              ^
Language: C

#include<stdio.h>
#include<stdlib.h>
#include<math.h>
#include<string.h>
/*
三辺a,b,c
s=(a+b+c)/2
S={s(s-a)(s-b)(s-c)}^(1/2)

*/

double check(double a,double b,double c){
	double s,S;
	
	s=(a+b+c)/2;
	
	S=sqrt(s*(s-a)*(s-b)*(s-c));
	
	return S;
}
	

int main(void){
	double x[4],y[4],s,t,a,b,c,s1,s2;
	int i,l,f;
	char c1[20],c2[20];
	
	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){
		//for(i=0;i<4;i++)scanf("%lf,%lf,",&x[i],&y[i]);
		for(i=0;i<20;i++){
			c1[i]=NULL;
			c2[i]=NULL;
		}
		//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]);
		s1=s2=0;
		//点acで区切った三角形
		//+b
		a=sqrt(pow((x[0]-x[2]),2)+pow((y[0]-y[2]),2));
		b=sqrt(pow((x[0]-x[1]),2)+pow((y[0]-y[1]),2));
		c=sqrt(pow((x[1]-x[2]),2)+pow((y[1]-y[2]),2));
		s1+=check(a,b,c);
		
		//+d
		a=sqrt(pow((x[0]-x[2]),2)+pow((y[0]-y[2]),2));
		b=sqrt(pow((x[0]-x[3]),2)+pow((y[0]-y[3]),2));
		c=sqrt(pow((x[3]-x[2]),2)+pow((y[3]-y[2]),2));
		s1+=check(a,b,c);
		
		
		//点bdで区切った三角形
		//+a
		a=sqrt(pow((x[1]-x[3]),2)+pow((y[1]-y[3]),2));
		b=sqrt(pow((x[0]-x[1]),2)+pow((y[0]-y[1]),2));
		c=sqrt(pow((x[0]-x[3]),2)+pow((y[0]-y[3]),2));
		s2+=check(a,b,c);
		
		//+c
		a=sqrt(pow((x[1]-x[3]),2)+pow((y[1]-y[3]),2));
		b=sqrt(pow((x[2]-x[1]),2)+pow((y[2]-y[1]),2));
		c=sqrt(pow((x[2]-x[3]),2)+pow((y[2]-y[3]),2));
		s2+=check(a,b,c);
		
		sprintf(c1,"%lf",s1);
		sprintf(c2,"%lf",s2);
		
		if(strcmp(c1,c2)==0){
			printf("YES\n");
			continue;
		}
		else{
			printf("NO\n");
			break;
		}
		
	}
	
	return 0;
}
	
	
	

Compiler output:
main.c: In function 'main':
main.c:31:30: error: assignment to 'char' from 'void *' makes integer from pointer without a cast [-Wint-conversion]
   31 |                         c1[i]=NULL;
      |                              ^
main.c:32:30: error: assignment to 'char' from 'void *' makes integer from pointer without a cast [-Wint-conversion]
   32 |                         c2[i]=NULL;
      |                              ^
Language: C++


#include <iostream>
#include <string>
#include <cstdio>

using namespace std;

int main () {
	double xa, ya, xb, yb, xc, yc, xd, yd, xe, ye;
	double tac, tbd, sac, sbd;
	char c[10000];
	int i;
	while(scanf("%s",&c)!=EOF) {
		xa=atof(strtok ( c, "," ));
		ya = atof ( strtok ( NULL, "," ) ); 
		xb = atof ( strtok ( NULL, "," ) ); 
		yb = atof ( strtok ( NULL, "," ) ); 
		xc = atof ( strtok ( NULL, "," ) ); 
		yc = atof ( strtok ( NULL, "," ) ); 
		xd = atof ( strtok ( NULL, "," ) ); 
		yd = atof ( strtok ( NULL, "," ) ); 
		sac = ( yc - ya ) / ( xc - xa );
		tac = ya - xa*sac;
		sbd = ( yd - yb ) / ( xd - xb );
		tbd = yb - xb*sbd;
		xe = ( tac - tbd ) / ( sbd - sac );
		ye = xe*sac + tac;
		if(( ( xa <= xe&&xe <= xc ) || ( xc <= xe&&xe <= xa ) ) && ( ( ya <= ye&&ye <= yc ) || ( yc <= ye&&ye <= ya ) )) {
			cout << "YES" << endl;
		} else {
			cout << "NO" << endl;
		}
		//printf ( "%f %f\n", xb, yb );
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:25: error: 'strtok' was not declared in this scope; did you mean 'strtoq'?
   14 |                 xa=atof(strtok ( c, "," ));
      |                         ^~~~~~
      |                         strtoq
Language: C++

type point = Pt of float * float

let sub_vector (Pt (x1, y1)) (Pt (x2, y2)) = Pt (x2 -. x1, y2 -. y1)

let cross_sign v1 v2 v3 =
  let Pt (xv, yv), Pt (xu, yu) = (sub_vector v1 v2), (sub_vector v2 v3) in
  compare 0. (xv *. yu -. yv *. xu)

let rec loop () =
  try
    let line = read_line () in
    Scanf.sscanf
      line "%f,%f,%f,%f,%f,%f,%f,%f"
      begin
        fun x1 y1 x2 y2 x3 y3 x4 y4 ->
        let p1, p2, p3, p4 = Pt (x1, y1), Pt (x2, y2), Pt (x3, y3), Pt (x4, y4) in
        let sign = cross_sign p1 p2 p3 in
        let is_convex =
          List.for_all (fun (p, q, r) -> sign = cross_sign p q r)
                       [(p2, p3, p4); (p3, p4, p1); (p4, p1, p2)] in
        print_endline @@ if is_convex then "YES" else "NO"
      end;
    loop ()
  with End_of_file -> ()

let () = loop ();

Compiler output:
a.cc:21:23: error: stray '@' in program
   21 |         print_endline @@ if is_convex then "YES" else "NO"
      |                       ^
a.cc:21:24: error: stray '@' in program
   21 |         print_endline @@ if is_convex then "YES" else "NO"
      |                        ^
a.cc:1:1: error: 'type' does not name a type; did you mean 'typeof'?
    1 | type point = Pt of float * float
      | ^~~~
      | typeof
a.cc:20:42: error: expected ')' before ',' token
   20 |                        [(p2, p3, p4); (p3, p4, p1); (p4, p1, p2)] in
      |                                       ~  ^
      |                                          )
a.cc:20:46: error: expected constructor, destructor, or type conversion before ',' token
   20 |                        [(p2, p3, p4); (p3, p4, p1); (p4, p1, p2)] in
      |                                              ^
a.cc:20:50: error: expected constructor, destructor, or type conversion before ')' token
   20 |                        [(p2, p3, p4); (p3, p4, p1); (p4, p1, p2)] in
      |                                                  ^
a.cc:20:56: error: expected ')' before ',' token
   20 |                        [(p2, p3, p4); (p3, p4, p1); (p4, p1, p2)] in
      |                                                     ~  ^
      |                                                        )
a.cc:20:60: error: expected constructor, destructor, or type conversion before ',' token
   20 |                        [(p2, p3, p4); (p3, p4, p1); (p4, p1, p2)] in
      |                                                            ^
a.cc:20:64: error: expected constructor, destructor, or type conversion before ')' token
   20 |                        [(p2, p3, p4); (p3, p4, p1); (p4, p1, p2)] in
      |                                                                ^
a.cc:24:3: error: expected constructor, destructor, or type conversion before 'with'
   24 |   with End_of_file -> ()
      |   ^~~~
Language: C++

#include <bits/stdc++.h>
  
using namespace std;
  
typedef long long ll;
typedef vector<int> vi;
typedef vector<ll> vl;
typedef complex<double> P;
typedef pair<int,int> pii;
#define REP(i,n) for(ll i=0;i<n;++i)
#define REPR(i,n) for(ll i=1;i<n;++i)
#define FOR(i,a,b) for(ll i=a;i<b;++i)
  
#define DEBUG(x) cout<<#x<<": "<<x<<endl
#define DEBUG_VEC(v) cout<<#v<<":";REP(i,v.size())cout<<" "<<v[i];cout<<endl
#define ALL(a) (a).begin(),(a).end()
  
#define MOD (ll)(1e9+7)
#define ADD(a,b) a=((a)+(b))%MOD
#define FIX(a) ((a)%MOD+MOD)%MOD

double dot(P a,P b){return real(conj(a)*b);}
double cross(P a,P b){return imag(conj(a)*b);}

int main(){
  double a,b,c,d,e,f,g,h;
  while(~scanf("%lf,%lf,%lf,%lf,%lf,%lf,%lf,%lf",&a,&b,&c,&d,&e,&f,&g,&h)){
    P x[6];
    x[0] = P(a,b);
    x[1] = P(c,d);
    x[2] = P(e,f);
    x[3] = P(g,h);
    x[4] = x[0];
    x[5] = x[1];
    double ccw = cross(x[2]-x[0],x[1]-x[0])
    bool flag = true;
    REPR(i,4){
      double ccc = cross(x[2+i]-x[i],x[1+i]-x[i]);
      if(ccw*ccc <= 0){
        flag = false;
        break;
      }
    }
    if(flag){
      cout<<"YES"<<endl;
    }else{
      cout<<"NO"<<endl;
    }
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:36:5: error: expected ',' or ';' before 'bool'
   36 |     bool flag = true;
      |     ^~~~
a.cc:40:9: error: 'flag' was not declared in this scope
   40 |         flag = false;
      |         ^~~~
a.cc:44:8: error: 'flag' was not declared in this scope
   44 |     if(flag){
      |        ^~~~
Language: C++

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

#define scanf scanf_s

struct p {
	double x;
	double y;
};

int check(p a, p b, p c, p d) {
	if (((a.x-b.x)*(c.y-a.y)+(a.y-b.y)*(a.x-c.x)) *
		((a.x-b.x)*(d.y-a.y)+(a.y-b.y)+(a.x-d.x))) {
		return 1;
	}
	return 0;
}

int main() {
	double x1, x2, x3, x4, y1, y2, y3, y4;
	while (scanf("%lf,%lf,%lf,%lf,%lf,%lf,%lf,%lf",&x1,&y1,&x2,&y2,&x3,&y3,&x4,&y4) != EOF) {
		p a, b, c, d;
		a.x = x1, a.y = y1;
		b.x = x2, b.y = y2;
		c.x = x3, c.y = y3;
		d.x = x4, d.y = y4;

		if (check(a,c,b,d) && check(b,d,a,c)) {
			cout << "NO";
		}else {
			cout << "YES";
		}
		cout << endl;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:15: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    5 | #define scanf scanf_s
      |               ^~~~~~~
a.cc:22:16: note: in expansion of macro 'scanf'
   22 |         while (scanf("%lf,%lf,%lf,%lf,%lf,%lf,%lf,%lf",&x1,&y1,&x2,&y2,&x3,&y3,&x4,&y4) != EOF) {
      |                ^~~~~
Language: C++

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

#define scanf scanf_s

struct p {
	double x;
	double y;
};

int check(struct p a,struct p b,struct p c,struct p d) {
	if (((a.x-b.x)*(c.y-a.y)+(a.y-b.y)*(a.x-c.x)) *
		((a.x-b.x)*(d.y-a.y)+(a.y-b.y)+(a.x-d.x))) {
		return 1;
	}
	return 0;
}

int main() {
	double x1, x2, x3, x4, y1, y2, y3, y4;
	while (scanf("%lf,%lf,%lf,%lf,%lf,%lf,%lf,%lf",&x1,&y1,&x2,&y2,&x3,&y3,&x4,&y4) != EOF) {
		p a, b, c, d;
		a.x = x1, a.y = y1;
		b.x = x2, b.y = y2;
		c.x = x3, c.y = y3;
		d.x = x4, d.y = y4;

		if (check(a,c,b,d) && check(b,d,a,c)) {
			cout << "NO";
		}else {
			cout << "YES";
		}
		cout << endl;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:15: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    5 | #define scanf scanf_s
      |               ^~~~~~~
a.cc:22:16: note: in expansion of macro 'scanf'
   22 |         while (scanf("%lf,%lf,%lf,%lf,%lf,%lf,%lf,%lf",&x1,&y1,&x2,&y2,&x3,&y3,&x4,&y4) != EOF) {
      |                ^~~~~
Language: C++

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

#define scanf scanf_s

struct p {
	double x;
	double y;
};

int check(struct p a,struct p b,struct p c,struct p d) {
	if (((a.x-b.x)*(c.y-a.y)+(a.y-b.y)*(a.x-c.x)) *
		((a.x-b.x)*(d.y-a.y)+(a.y-b.y)+(a.x-d.x))) {
		return 1;
	}
	return 0;
}

int main() {
	double x1, x2, x3, x4, y1, y2, y3, y4;
	while (scanf("%f,%f,%f,%f,%f,%f,%f,%f",&x1,&y1,&x2,&y2,&x3,&y3,&x4,&y4) != EOF) {
		p a, b, c, d;
		a.x = x1, a.y = y1;
		b.x = x2, b.y = y2;
		c.x = x3, c.y = y3;
		d.x = x4, d.y = y4;

		if (check(a,c,b,d) && check(b,d,a,c)) {
			cout << "NO";
		}else {
			cout << "YES";
		}
		cout << endl;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:15: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    5 | #define scanf scanf_s
      |               ^~~~~~~
a.cc:22:16: note: in expansion of macro 'scanf'
   22 |         while (scanf("%f,%f,%f,%f,%f,%f,%f,%f",&x1,&y1,&x2,&y2,&x3,&y3,&x4,&y4) != EOF) {
      |                ^~~~~
Language: C++

#include <cstdio>
#include <complex>
#include <iostream>
using namespace std;

#define scanf scanf_s

double cross(complex<double> z1, complex<double> z2) {
	return z1.real() * z2.imag() - z1.imag() * z2.real();
}

int main() {
	double x1, y1, x2, y2, x3, y3, x4, y4;
	while (scanf("%lf,%lf,%lf,%lf,%lf,%lf,%lf,%lf", &x1, &y1, &x2, &y2, &x3, &y3, &x4, &y4) != EOF) {
		complex<double> a(x1, y1), b(x2, y2), c(x3, y3), d(x4, y4);

		double ab, bc, cd, da;
		ab = cross(b - a, c - b);
		bc = cross(c - b, d - c);
		cd = cross(d - c, a - d);
		da = cross(a - d, b - a);

		if ((ab > 0 && bc > 0 && cd > 0 && da > 0) || (ab < 0 && bc < 0 && cd < 0 && da < 0)) {
			cout << "YES";
		}else {
			cout << "NO";
		}
		cout << endl;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:15: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    6 | #define scanf scanf_s
      |               ^~~~~~~
a.cc:14:16: note: in expansion of macro 'scanf'
   14 |         while (scanf("%lf,%lf,%lf,%lf,%lf,%lf,%lf,%lf", &x1, &y1, &x2, &y2, &x3, &y3, &x4, &y4) != EOF) {
      |                ^~~~~
Language: C++

import java.util.*;

public class Main{
	
	private static final Scanner scan = new Scanner(System.in)
							.useDelimiter("[,\\s]+");

	public static void main(String[] args){

		while(scan.hasNext()){
			double[] x = new double[4];
			double[] y = new double[4];
			for(int i = 0; i < 4; i++){
				x[i] = scan.nextDouble();
				y[i] = scan.nextDouble();
			}
			boolean flag = isIntersect(x[0], y[0], x[2], y[2], x[1], y[1], x[3], y[3])
					&& isIntersect(x[1], y[1], x[3], y[3], x[0], y[0], x[2], y[2]);
			System.out.printf("%s\n", flag? "Yes" : "NO");
		}
	}

	public static boolean isIntersect(double x1, double y1, double x2, double y2,
								 double x3, double y3, double x4, double y4){
		//???A(x1,y1)??¨???B(x2,y2)????????¶??´?????¨???C(x3,y3)??¨???D(x4,y4)????????¶???????????????????????????????????????
		double ta = (y3-y1)*(x1-x2) + (x1-x3)*(y1-y2);
		double tb = (y4-y1)*(x1-x2) + (x1-x4)*(y1-y2);
		return ta * tb < 0;
	}
} 

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

#include<bits/stdc++.h>
using namespace std;
int main(){
	double a,b,c,d,e,f,g,h;
	while(scanf("%lf,%lf,%lf,%lf,%lf,%lf,%lf,%lf",&a,&b,&c,&d,&e,&f,&g,&h)!=EOF){
		if((a==c&&g==e&&d==f&&b==h)||(a==g&&c==e&&b==d&&h==f)cout<<"YES"<<endl;
		else cout<<"NO"<<endl;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:70: error: expected ';' before 'cout'
    6 |                 if((a==c&&g==e&&d==f&&b==h)||(a==g&&c==e&&b==d&&h==f)cout<<"YES"<<endl;
      |                                                                      ^~~~
      |                                                                      ;
a.cc:7:17: error: expected primary-expression before 'else'
    7 |                 else cout<<"NO"<<endl;
      |                 ^~~~
a.cc:6:88: error: expected ')' before 'else'
    6 |                 if((a==c&&g==e&&d==f&&b==h)||(a==g&&c==e&&b==d&&h==f)cout<<"YES"<<endl;
      |                   ~                                                                    ^
      |                                                                                        )
    7 |                 else cout<<"NO"<<endl;
      |                 ~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#include "../..//library/unfinished/convex_hull.cpp"

#define fs first
#define sc second
#define all(v) v.begin(), v.end()
#define rall(v) v.rbegin(), v.rend()
#define rep(i, n) for (int i = 0; i < n; ++i)
#define pb emplace_back

using pii = pair<int, int>;
using vi = vector<int>;
using lint = long long;

const int inf = 1001001001;
const lint linf = 1001001001001001001ll;
const int mod = 1e9 + 7;
const int dx[]{0, 1, 0, -1, -1, -1, 1, 1}, dy[]{1, 0, -1, 0, -1, 1, -1, 1};

template<typename T> inline bool chmin(T &a, T b) { if (a > b) { a = b; } return a > b; }
template<typename T> inline bool chmax(T &a, T b) { if (a < b) { a = b; } return a < b; }
template<typename T> inline void print(const T &x, string s = "\n") { cout << x << s; }
template<typename T> inline void print(const vector<T> &v, string s = " ") 
{ rep(i, v.size()) cout << v[i] << (i + 1 == v.size() ? "\n" : s); }
inline bool inside(int y, int x, int H, int W) { return 0 <= y && y < H && 0 <= x && x < W; }
inline lint in() { lint x; std::cin>>x; return x; }

int main() {
	double a, b;
	char c;
	vector<Point> vi;
	while (cin >> a >> c >> b) {
		vi.clear();
		vi.pb(Point(a, b));
		rep(i, 3) {
			cin >> c >> a >> c >> b;
			vi.pb(Point(a, b));
		}

		vector<Point> po = convex_hull(vi, vi.size());
		cout << (po.size() == vi.size() ? "YES" : "NO") << endl;
	}
}

Compiler output:
a.cc:3:10: fatal error: ../..//library/unfinished/convex_hull.cpp: No such file or directory
    3 | #include "../..//library/unfinished/convex_hull.cpp"
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Language: C++

import Data.List.Split
import Control.Applicative

data YesNo = YES | NO deriving(Show)
type Coord = (Double, Double)

reshape :: [Double] -> [Coord]
reshape [] = []
reshape [_] = []
reshape (x:y:xs) = (x, y) : reshape xs

normalForm :: [Coord] -> [Coord]
normalForm xs =
  let minY = minimum (map snd xs)
      mins = filter (\c -> snd c == minY) xs
      st   = head mins
  in
      st : (tail (dropWhile (/= st) xs) ++ takeWhile (/= st) xs)

delta :: Coord -> Coord -> Coord -> Double
delta x y z =
  ((fst y - fst x) * (snd z - snd x) - (fst z - fst x) * (snd y - snd x)) / 2

solver' :: [Double] -> YesNo
solver' xs =
  let (p1:p2:p3:p4:_) = normalForm $ reshape xs
  in
      if (delta p1 p2 p3 * delta p2 p3 p4 * delta p3 p4 p1 > 0)
        && ((snd p2 > snd p1) || (snd p2 >= snd p3))
        && ((snd p3 > snd p2) || (snd p3 >= snd p4))
        && ((snd p4 > snd p3) || (snd p4 >= snd p1))
        then YES
        else NO

solver :: [[Double]] -> [YesNo]
solver = map solver'

main :: IO()
main = do
  contents <- lines <$> getContents
  let xs = map (map (read :: String -> Double) . splitOn ",") contents
  mapM_ print $ solver xs

Compiler output:
a.cc:15:22: error: stray '\' in program
   15 |       mins = filter (\c -> snd c == minY) xs
      |                      ^
a.cc:24:7: warning: missing terminating ' character
   24 | solver' :: [Double] -> YesNo
      |       ^
a.cc:24:7: error: missing terminating ' character
   24 | solver' :: [Double] -> YesNo
      |       ^~~~~~~~~~~~~~~~~~~~~~
a.cc:25:7: warning: missing terminating ' character
   25 | solver' xs =
      |       ^
a.cc:25:7: error: missing terminating ' character
   25 | solver' xs =
      |       ^~~~~~
a.cc:36:20: warning: missing terminating ' character
   36 | solver = map solver'
      |                    ^
a.cc:36:20: error: missing terminating ' character
a.cc:1:1: error: 'import' does not name a type
    1 | import Data.List.Split
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

#include<iostream>
int main()
{
	while (true)
	{
		double xa, ya, xb, yb, xc, yc, xd, yd;
		char foo;
		std::cin >> xa >> foo >> ya >> foo >> xb >> foo >> yb >> foo >> xc >> foo >> yc >> foo >> xd >> foo >> yd;
		if (std::cin.eof())
		{
			break;
		}
		const double A_C = hypot(xa - xc, ya - yc);
		const double B_D = hypot(xb - xd, yb - yd);
		const double AC_B = abs(((yc - ya)*(xb - xc) - (xc - xa)*(yb - yc)) / hypot(yc - ya, xc - xa));
		const double BD_A = abs(((yd - yb)*(xa - xd) - (xd - xb)*(ya - yd)) / hypot(yd - yb, xd - xb));
		std::cout << (A_C > BD_A&&B_D > AC_B ? "YES" : "NO") << std::endl;
	}
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:36: error: 'hypot' was not declared in this scope
   13 |                 const double A_C = hypot(xa - xc, ya - yc);
      |                                    ^~~~~
Language: C++

#include<iostream>
int main()
{
	while (true)
	{
		double xa, ya, xb, yb, xc, yc, xd, yd;
		char foo;
		std::cin >> xa >> foo >> ya >> foo >> xb >> foo >> yb >> foo >> xc >> foo >> yc >> foo >> xd >> foo >> yd;
		if (std::cin.eof())
		{
			break;
		}
		const double A_C = std::hypot(xa - xc, ya - yc);
		const double B_D = std::hypot(xb - xd, yb - yd);
		const double A_BD = std::abs((yd - yb) * (xa - xd) - (xd - xb) * (ya - yd)) / std::hypot(yd - yb, xd - xb);
		const double B_AC = std::abs((yc - ya) * (xb - xc) - (xc - xa) * (yb - yc)) / std::hypot(yc - ya, xc - xa);
		std::cout << (A_C > A_BD && B_D > B_AC ? "YES" : "NO") << std::endl;
	}
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:41: error: 'hypot' is not a member of 'std'
   13 |                 const double A_C = std::hypot(xa - xc, ya - yc);
      |                                         ^~~~~
a.cc:14:41: error: 'hypot' is not a member of 'std'
   14 |                 const double B_D = std::hypot(xb - xd, yb - yd);
      |                                         ^~~~~
a.cc:15:100: error: 'hypot' is not a member of 'std'
   15 |                 const double A_BD = std::abs((yd - yb) * (xa - xd) - (xd - xb) * (ya - yd)) / std::hypot(yd - yb, xd - xb);
      |                                                                                                    ^~~~~
a.cc:16:100: error: 'hypot' is not a member of 'std'
   16 |                 const double B_AC = std::abs((yc - ya) * (xb - xc) - (xc - xa) * (yb - yc)) / std::hypot(yc - ya, xc - xa);
      |                                                                                                    ^~~~~
Language: C++

#include<vector>
#include<algorithm>

#define	EPS		1e-9
#define	pb(a)	push_back(a);

#define	ID_CCW	0
#define	ID_CW	1
#define	ID_GO	2
#define	ID_BACK	3

using namespace std;

class Point{
public:
	double x,y;
	Point(){}
	Point(double xx,double yy) : x(xx),y(yy){}
};

Point &operator -=(Point &a,const Point &b)
{
	a.x-=b.x;
	a.y-=b.y;
	return a;
}

double dot(const Point &a,const Point &b)
{
	return a.x*b.x+a.y*b.y;
}

double cross(const Point &a,const Point &b)
{
	return a.x*b.y-a.y*b.x;
}

int ccw(const Point &a,Point b,Point c)
{
	b-=a;
	c-=a;
	double rotdir=cross(b,c);
	if(rotdir>EPS)		return ID_CCW;
	if(rotdir<-EPS)		return ID_CW;
	if(dot(b,c)>EPS)	return ID_GO;
	return ID_BACK;
}

int main()
{
	Point p[4];
	while(1){
		if(scanf("%lf,%lf",&p[0].x,&p[0].y)==EOF)	break;
		for(int i=1;i<4;i++)	scanf(",%lf,%lf",&p[i].x,&p[i].y);
		bool b1=true;
		for(int i=0;i<4;i++)	if(ccw(p[i],p[(i+1)%4],p[(i+2)%4])!=ID_CCW)	b1=false;
		bool b2=true;
		for(int i=0;i<4;i++)	if(ccw(p[i],p[(i+1)%4],p[(i+2)%4])!=ID_CW)	b2=false;
		puts(b1||b2?"YES":"NO");
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:53:20: error: 'scanf' was not declared in this scope
   53 |                 if(scanf("%lf,%lf",&p[0].x,&p[0].y)==EOF)       break;
      |                    ^~~~~
a.cc:53:54: error: 'EOF' was not declared in this scope
   53 |                 if(scanf("%lf,%lf",&p[0].x,&p[0].y)==EOF)       break;
      |                                                      ^~~
a.cc:3:1: note: 'EOF' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
    2 | #include<algorithm>
  +++ |+#include <cstdio>
    3 | 
a.cc:54:41: error: 'scanf' was not declared in this scope
   54 |                 for(int i=1;i<4;i++)    scanf(",%lf,%lf",&p[i].x,&p[i].y);
      |                                         ^~~~~
a.cc:59:17: error: 'puts' was not declared in this scope
   59 |                 puts(b1||b2?"YES":"NO");
      |                 ^~~~
Language: C++

#include<iostream>
#include<complex>
#define EPS 1.0e-10
using namespace std;
typedef complex<double> P;
P a[4];
double cross(P a, P b) {
  return (a.real() * b.imag() - a.imag() * b.real());
}
int is_intersected_ls(P a1, P a2, P b1, P b2) {
  return ( cross(a2-a1, b1-a1) * cross(a2-a1, b2-a1) < EPS ) &&
         ( cross(b2-b1, a1-b1) * cross(b2-b1, a2-b1) < EPS );
}
int main(){
	double x,y;
	char c;
	while(scanf("%lf,%lf",&x,&y)!=EOF){
		a[0]=P(x,y);
		for(int i=1;i<4;i++){
			scanf(",%lf,%lf",&x,&y);;
			a[i]=P(x,y);
		}
		if(is_intersected_ls(a[0],a[2],a[1],a[3]))
		cout<<"YES"<<endl;
		else cout<<"NO"<<endl;
	}
	return 0;
}ツ　

Compiler output:
a.cc:28:2: error: extended character 　 is not valid in an identifier
   28 | }ツ　
      |  ^
a.cc:28:2: error: '\U000030c4\U00003000' does not name a type
   28 | }ツ　
      |  ^~~~
Language: C++

#include <iostream>
#include <cmath>

using namespace std;

double tri2s(double xa, double ya, double xb, double yb, double xc, double yc){
     double a, b, c, s;
    
     a = sqrt((xb - xc) * (xb - xc) + (yb - yc) * (yb - yc));
     b = sqrt((xa - xc) * (xa - xc) + (ya - yc) * (ya - yc));
     c = sqrt((xb - xa) * (xb - xa) + (yb - ya) * (yb - ya));
    
     s = (a+b+c) / 2;
    
     return sqrt(s * (s - a) * (s - b) * (s - c));
}

int main(void){
     double x[4], y[4];
     double sq;
     double tri[4];
     bool isok = true;
    
     while(cin >> x[0]){
          cin.ignore(); cin >> y[0];
          cin.ignore(); cin >> x[1]; cin.ignore(); cin >> y[1];
          cin.ignore(); cin >> x[2]; cin.ignore(); cin >> y[2];
          cin.ignore(); cin >> x[3]; cin.ignore(); cin >> y[3];
         
          sq = tri2s(x[0], y[0], x[1], y[1], x[2], y[2]) + tri2s(x[0],y[0],x[2],y[2],x[3],y[3]);
         
          tri[0] = tri2s(x[0], y[0], x[1], y[1], x[2], y[2]);
          tri[1] = tri2s(x[0], y[0], x[1], y[1], x[3], y[3]);
          tri[2] = tri2s(x[0], y[0], x[2], y[2], x[3], y[3]);
          tri[3] = tri2s(x[1], y[1], x[2], y[3], x[3], y[3]);
         
          for(int i=0;i<4;i++){
               if(tri[i] > sq) isok = false;
          }
         
          if(isok){
               cout << "YES" << endl;
          }else{
               cout << "NO" << endl;
          }
          isok = true;0
     }
     return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:46:24: error: expected ';' before '}' token
   46 |           isok = true;0
      |                        ^
      |                        ;
   47 |      }
      |      ~
Language: C++

#include <cmath>
#include <complex>
#include <vector>
#include <cfloat>
#include <algorithm>
using namespace std;
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;
	}
	void in(double a,double b){
		x=a;
		y=b;
		return ;
	}
};
//直線クラス
class line{
public:
	point s,v;
public:
	line(point a,point b){
		s=a;
		v=vec_sub(a,b);
	}
};
//ベクトルの足し算
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;
}

point p[6];

bool solve(){
	bool judge;
	bool ans;
	if(outer_product(p[0],p[1])>0){
		judge=true;
	}else{
		judge =false;
	}
	for(int i=1;i<4;i++){
		if(outer_product(p[i],p[i+1])>0){
			if(judge!=true) return false;
		}else if(outer_product(p[i],p[i+1])==0){
			return false;
		}else{
			if(judge!=false) return false;
		}
	}
	return true;
}



int main(){
	
	
	while(scanf("%lf,%lf,%lf,%lf,%lf,%lf,%lf,%lf",&p[0].x,&p[0].y,&p[1].x,&p[1].y,&p[2].x,&p[2].y,&p[3].x,&p[3].y)!=EOF){
		p[4]=p[0];
		p[5]=p[1];
		for(int i=0;i<5;i++){
			p[i]=vec_sub(p[i],p[i+1]);
		}
		bool ans=solve();
		
		if(ans){
			cout<<"YES"<<endl;
		}else{
			cout<<"NO"<<endl;
		}
	}
	
}

Compiler output:
a.cc: In function 'int main()':
a.cc:99:25: error: 'cout' was not declared in this scope
   99 |                         cout<<"YES"<<endl;
      |                         ^~~~
a.cc:6:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    5 | #include <algorithm>
  +++ |+#include <iostream>
    6 | using namespace std;
a.cc:101:25: error: 'cout' was not declared in this scope
  101 |                         cout<<"NO"<<endl;
      |                         ^~~~
a.cc:101:25: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include<iostream>
#include<stdio.h>
using namespace std;

int main()
{
    double ax,ay,bx,by,cx,cy,dx,dy;
    while(scanf("%lf,%lf,%lf,%lf,%lf,%lf,%lf,%lf",&ax,&ay,&bx,&by,&cx,&cy,&dx,&dy))
	{
        if(((ax-cx)*(by-ay)+(ay-cy)*(ax-bx))*((ax-cx)*(dy-ay)+(ay-cy)*(ax-dx))<=0&& ((bx-dx)*(ay-by)+(by-dy)*(bx-ax))*((bx-dx)*(cy-by)+(by-dy)*(bx-cx))<=0)
			cout<<"Yes"<<endl;
        else cout<<"No"<<endl
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:30: error: expected ';' before '}' token
   12 |         else cout<<"No"<<endl
      |                              ^
      |                              ;
   13 |     }
      |     ~