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

import java.util.Scanner;

public class P0021 {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		for (int i = 0; i < n; i++) {
			double[] p = new double[8];
			// 座標入力
			for (int j = 0; j < 8; j++) {
				p[j] = sc.nextDouble();
			}

			// 傾き
			double a1 = (p[3] - p[1]) / (p[2] - p[0]);
			double a2 = (p[7] - p[5]) / (p[6] - p[4]);

			// 判定
			if (a1 == a2) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		}
	}

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


import java.util.Scanner;
import java.util.Vector;

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

    int n = sc.nextInt();
    Vector<Double> vec = new Vector<Double>();
    while(sc.hasNextDouble()){
      double x1 = sc.nextDouble();
      double y1 = sc.nextDouble();

      double x2 = sc.nextDouble();
      double y2 = sc.nextDouble();

      double x3 = sc.nextDouble();
      double y3 = sc.nextDouble();

      double x4 = sc.nextDouble();
      double y4 = sc.nextDouble();

      if ( y1 = y2 && y3 == y4 ){
        System.out.println("YES");
        continue;
      }
      if ( x1 = x2 && x3 == x4 ){
        System.out.println("YES");
        continue;
      }
      double coefAB = (Math.max(y1,y2)-Math.min(y1,y2))/(Math.max(x1,x2)-Math.min(x1,x2));
      double coefCD = (Math.max(y3,y4)-Math.min(y3,y4))/(Math.max(x3,x4)-Math.min(x3,x4));

      if ( coefAB == coefCD ){
        System.out.println("YES");
      }else{
        System.out.println("NO");
      }

    }
  }
}

Compiler output:
Main.java:24: error: bad operand types for binary operator '&&'
      if ( y1 = y2 && y3 == y4 ){
                   ^
  first type:  double
  second type: boolean
Main.java:24: error: incompatible types: double cannot be converted to boolean
      if ( y1 = y2 && y3 == y4 ){
              ^
Main.java:28: error: bad operand types for binary operator '&&'
      if ( x1 = x2 && x3 == x4 ){
                   ^
  first type:  double
  second type: boolean
Main.java:28: error: incompatible types: double cannot be converted to boolean
      if ( x1 = x2 && x3 == x4 ){
              ^
4 errors
Language: Java

	public static void main(String[] args) {

		Scanner sc = null;
		int dataSet = 0;
		double x1 = 0.0;
		double y1 = 0.0;
		double x2 = 0.0;
		double y2 = 0.0;
		double x3 = 0.0;
		double y3 = 0.0;
		double x4 = 0.0;
		double y4 = 0.0;
		try {
			sc = new Scanner(System.in);
			while (sc.hasNextInt()) {
				dataSet = sc.nextInt();
				for (int i = 0; i < dataSet; i++) {
					x1 = sc.nextDouble();
					y1 = sc.nextDouble();
					x2 = sc.nextDouble();
					y2 = sc.nextDouble();
					x3 = sc.nextDouble();
					y3 = sc.nextDouble();
					x4 = sc.nextDouble();
					y4 = sc.nextDouble();
					if (((y2 - y1) / (x2 - x1)) == ((y4 - y3) / (x4 - x3))) {
						System.out.println("YES");
					} else {
						System.out.println("NO");
					}
				}
			}
		} finally {
			sc.close();
		}
	}
}

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
	public static void main(String[] args) {
	              ^
  (use --enable-preview to enable unnamed classes)
Main.java:37: error: class, interface, enum, or record expected
}
^
2 errors
Language: Java

class Main {

	public static void main(String[] args) {

		Scanner sc = null;
		try {
			sc = new Scanner(System.in);
			while (sc.hasNextInt()) {
				int dataSet = sc.nextInt();
				for (int i = 0; i < dataSet; i++) {
					double x1 = sc.nextDouble();
					double y1 = sc.nextDouble();
					double x2 = sc.nextDouble();
					double y2 = sc.nextDouble();
					double x3 = sc.nextDouble();
					double y3 = sc.nextDouble();
					double x4 = sc.nextDouble();
					double y4 = sc.nextDouble();
					if (((y1 - y2) / (x1 - x2)) == ((y3 - y4) / (x3 - x4))) {
						System.out.println("YES");
					} else {
						System.out.println("NO");
					}
				}
			}
		} finally {
			sc.close();
		}
	}
}

Compiler output:
Main.java:5: error: cannot find symbol
		Scanner sc = null;
		^
  symbol:   class Scanner
  location: class Main
Main.java:7: error: cannot find symbol
			sc = new Scanner(System.in);
			         ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: Java

class Main {

	public static void main(String[] args) {

		Scanner sc = null;
		try {
			sc = new Scanner(System.in);
			while (sc.hasNextInt()) {
				int dataset = sc.nextInt();
				double[] numbers = new double[8];
				for (int i = 0; i < dataset; i++) {
					while (sc.hasNextDouble()) {
						numbers[i] = sc.nextDouble();

						if ((numbers[0] == numbers[2])
								&& (numbers[4] == numbers[6])) {
							System.out.println("YES");
						} else if ((numbers[1] == numbers[3])
								&& (numbers[5] == numbers[7])) {
							System.out.println("YES");
						} else if ((numbers[3] - numbers[1])
								/ (numbers[2] - numbers[0]) == (numbers[7]
								- numbers[5] / numbers[6] - numbers[4])) {
							System.out.println("YES");
						} else {
							System.out.println("NO");
						}
					}
				}
			}
		} finally {
			sc.close();
		}
	}
}

Compiler output:
Main.java:5: error: cannot find symbol
		Scanner sc = null;
		^
  symbol:   class Scanner
  location: class Main
Main.java:7: error: cannot find symbol
			sc = new Scanner(System.in);
			         ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: Java

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

class Main{
public static void main(String[] args) throws IOException{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
String str;
int n=Integer.parseInt(br.readLine());
for(int i=0;i<n;i++){
str=br.readLine();
String[] s=str.split(" ");
double x1=Double.parseDouble(s[0]);
double y1=Double.parseDouble(s[1]);
double x2=Double.parseDouble(s[2]);
double y2=Double.parseDouble(s[3]);
double x3=Double.parseDouble(s[4]);
double y3=Double.parseDouble(s[5]);
double x4=Double.parseDouble(s[6]);
double y4=Double.parseDouble(s[7]);
if((x1-x2)*(y3-y4)==(y1-y2)*(x3-x4)){
System.out.println("YES");
}
else{
System.out.println("NO")
}
}
}
}

Compiler output:
Main.java:25: error: ';' expected
System.out.println("NO")
                        ^
1 error
Language: Java

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

class Main{
public static void main(String[] args) throws IOException{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
int n=Integer.parseInt(br.readLine());
for(int i=0;i<n;i++){
String line = reader.readLine();
String[] values = line.split(" ");
double x1 = Double.parseDouble(values[0]);
double y1 = Double.parseDouble(values[1]);
double x2 = Double.parseDouble(values[2]);
double y2 = Double.parseDouble(values[3]);
double x3 = Double.parseDouble(values[4]);
double y3 = Double.parseDouble(values[5]);
double x4 = Double.parseDouble(values[6]);
double y4 = Double.parseDouble(values[7]);
double det = (x2 - x1) * (y4 - y3) - (y2 - y1) * (x4 - x3);
System.out.println(det == 0.0 ? "YES" : "NO");
}
}
}

Compiler output:
Main.java:10: error: cannot find symbol
String line = reader.readLine();
              ^
  symbol:   variable reader
  location: class Main
1 error
Language: Java


 import java.io.*;

 class Main{
 public static void main(String[] args) throws IOException{
 BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
 int n = Integer.parseInt(br.readLine());
 for (int i = 0; i < n; i++) {
 String line = br.readLine();
 String[] values = line.split(" ");
 double x1 = Double.parseDouble(values[0]);
 double y1 = Double.parseDouble(values[1]);
 double x2 = Double.parseDouble(values[2]);
 double y2 = Double.parseDouble(values[3]);
 double x3 = Double.parseDouble(values[4]);
 double y3 = Double.parseDouble(values[5]);
 double x4 = Double.parseDouble(values[6]);
 double y4 = Double.parseDouble(values[7]);
 double det = (x2 - x1) * (y4 - y3) - (y2 - y1) * (x4 - x3);
 Systemout.println(det == 0.0 ? "YES" : "NO"); }
 }
 } 

Compiler output:
Main.java:20: error: cannot find symbol
 Systemout.println(det == 0.0 ? "YES" : "NO"); }
 ^
  symbol:   variable Systemout
  location: class Main
1 error
Language: Java

import java.io.*;

class Main{
public static void main(String[] args) throws IOException{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String line=br.readLine();
int n = Integer.parseInt(line);
for (int i = 0; i < n; i++) {
String line = br.readLine();
String[] values = line.split(" ");
double x1 = Double.parseDouble(values[0]);
double y1 = Double.parseDouble(values[1]);
double x2 = Double.parseDouble(values[2]);
double y2 = Double.parseDouble(values[3]);
double x3 = Double.parseDouble(values[4]);
double y3 = Double.parseDouble(values[5]);
double x4 = Double.parseDouble(values[6]);
double y4 = Double.parseDouble(values[7]);
System.out.println((x2 - x1) * (y4 - y3) == (y2 - y1) * (x4 - x3) ? "YES" : "NO");
}
}
}

Compiler output:
Main.java:9: error: variable line is already defined in method main(String[])
String line = br.readLine();
       ^
1 error
Language: Java

import java.util.Scanner;
 
public class Main{
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int n = sc.nextInt();
        double x[] = new double[4];
        double y[] = new double[4];
        for(int j=0; j<n; j++){
            for(int i=0; i<4; i++){
                x[i] = sc.nextDouble();
                y[i] = sc.nextDouble();
            }
            double ab = (y[1]-y[0])/(x[1]-x[0]);
            double cd = (y[3]-y[2])/(x[3]-x[2]);
            System.out.println(ab==cd ? "YES" : "NO");
 
        }
    }
}

Compiler output:
Main.java:6: error: cannot find symbol
        int n = sc.nextInt();
                ^
  symbol:   variable sc
  location: class Main
Main.java:11: error: cannot find symbol
                x[i] = sc.nextDouble();
                       ^
  symbol:   variable sc
  location: class Main
Main.java:12: error: cannot find symbol
                y[i] = sc.nextDouble();
                       ^
  symbol:   variable sc
  location: class Main
3 errors
Language: Java

public class Main{
  public void run(java.io.InputStream in, java.io.PrintStream out){
    java.util.Scanner sc = new java.util.Scanner(in);
    int n, i;
    double x1, y1, x2, y2, x3, y3, x4, y4;

    n = sc.nextInt();
    for(i = 0;i < n;i++){
      x1 = sc.nextDouble(); y1 = sc.nextDouble();
      x2 = sc.nextDouble(); y2 = sc.nextDouble();
      x3 = sc.nextDouble(); y3 = sc.nextDouble();
      x4 = sc.nextDouble(); y4 = sc.nextDouble();

      l1x = x2 - x1; l1y = y2 - y1;
      l2x = x4 - x3; l2y = y4 - y3;

      if(l1y * l2x == l2y * l1x)out.println("YES");
      else out.println("NO");
    }

    sc.close();
  }
  public static void main(String[] args){
    (new Main()).run(System.in, System.out);
  }
}

Compiler output:
Main.java:14: error: cannot find symbol
      l1x = x2 - x1; l1y = y2 - y1;
      ^
  symbol:   variable l1x
  location: class Main
Main.java:14: error: cannot find symbol
      l1x = x2 - x1; l1y = y2 - y1;
                     ^
  symbol:   variable l1y
  location: class Main
Main.java:15: error: cannot find symbol
      l2x = x4 - x3; l2y = y4 - y3;
      ^
  symbol:   variable l2x
  location: class Main
Main.java:15: error: cannot find symbol
      l2x = x4 - x3; l2y = y4 - y3;
                     ^
  symbol:   variable l2y
  location: class Main
Main.java:17: error: cannot find symbol
      if(l1y * l2x == l2y * l1x)out.println("YES");
         ^
  symbol:   variable l1y
  location: class Main
Main.java:17: error: cannot find symbol
      if(l1y * l2x == l2y * l1x)out.println("YES");
               ^
  symbol:   variable l2x
  location: class Main
Main.java:17: error: cannot find symbol
      if(l1y * l2x == l2y * l1x)out.println("YES");
                      ^
  symbol:   variable l2y
  location: class Main
Main.java:17: error: cannot find symbol
      if(l1y * l2x == l2y * l1x)out.println("YES");
                            ^
  symbol:   variable l1x
  location: class Main
8 errors
Language: Java

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		while(n--!=0){
			double[] a = new double[8];
			for(int i=0;i<8;i++)a[i]=sc.nextDouble();
			double e = (a[2]-a[0])*(a[7]-a[5])-(a[3]-a[1])*(a[6]-a[4]);
			System.out.println(e==0?"YES":"NO");
		}
	}
}

Compiler output:
Main.java:4: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:4: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		                 ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: Java

import java.util.Scanner;

public class Parallelism {

	public static void main(String[] args) {
		@SuppressWarnings("resource")
		Scanner sc = new Scanner(System.in);

		int inputNum = sc.nextInt();

		for (int i = 0; i < inputNum; i++) {
			
			double x1 = sc.nextDouble();
			double y1 = sc.nextDouble();
			double x2 = sc.nextDouble();
			double y2 = sc.nextDouble();
			double x3 = sc.nextDouble();
			double y3 = sc.nextDouble();
			double x4 = sc.nextDouble();
			double y4 = sc.nextDouble();

			double slopeA = (y2 - y1) / (x2 - x1);
			double slopeB = (y4 - y3) / (x4 - x3);

			if (slopeA == slopeB) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}

		}
	}

}

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

import java.util.Scanner;
public class Ma {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		
		for(int i = 0; i < n; i++){
			double x1 = sc.nextDouble();
			double y1 = sc.nextDouble();
			double x2 = sc.nextDouble();
			double y2 = sc.nextDouble();
			double x3 = sc.nextDouble();
			double y3 = sc.nextDouble();
			double x4 = sc.nextDouble();
			double y4 = sc.nextDouble();
			
			if(x2-x1 == x4 - x3)
				if(y2 - y1 == y4 - y3)
					System.out.println("Yes");
				else
					System.out.println("No");
			else
				System.out.println("No");
		}
		
	}

}

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

import java.util.Scanner;
public class Ma {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();

		for(int i = 0; i < n; i++){
			double x1 = sc.nextDouble();
			double y1 = sc.nextDouble();
			double x2 = sc.nextDouble();
			double y2 = sc.nextDouble();
			double x3 = sc.nextDouble();
			double y3 = sc.nextDouble();
			double x4 = sc.nextDouble();
			double y4 = sc.nextDouble();

			if(x2-x1 == x4 - x3){
				if(y2 - y1 == y4 - y3){
					System.out.println("Yes");
				}else{
					System.out.println("No");
				}
			}else{
				System.out.println("No");
			}
		}
	}

}

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

public class Main {
	public static void main(String[] args) {
		print();
	}

	public static void print() {
		try {
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			int amountOfDataset = Integer.parseInt(br.readLine());
			String str = br.readLine();
			for (int i = 0; i < amountOfDataset; i++) {
				String[] nums = str.split(" ", 0);
				double x1 = Double.parseDouble(nums[0]);
				double y1 = Double.parseDouble(nums[1]);
				double x2 = Double.parseDouble(nums[2]);
				double y2 = Double.parseDouble(nums[3]);
				double x3 = Double.parseDouble(nums[4]);
				double y3 = Double.parseDouble(nums[5]);
				double x4 = Double.parseDouble(nums[6]);
				double y4 = Double.parseDouble(nums[7]);

				double slopeAB = (y2 - y1) / (x2 - x1);
				double slopeCD = (y4 - y3) / (x4 - x3);

				if (slopeAB == slopeCD) {
					System.out.println("YES");
				} else {
					System.out.println("NO");
				}
				str = br.readLine();
			}

		} catch (IOException e) {
			e.printStackTrace();
		}
	}
}

Compiler output:
Main.java:8: error: cannot find symbol
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			^
  symbol:   class BufferedReader
  location: class Main
Main.java:8: error: cannot find symbol
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			                        ^
  symbol:   class BufferedReader
  location: class Main
Main.java:8: error: cannot find symbol
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			                                           ^
  symbol:   class InputStreamReader
  location: class Main
Main.java:33: error: cannot find symbol
		} catch (IOException e) {
		         ^
  symbol:   class IOException
  location: class Main
4 errors
Language: Java

public class Main {
	public static void main(String[] args) {
		print();
	}

	public static void print() {
		try {
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			int amountOfDataset = Integer.parseInt(br.readLine());

			for (int i = 0; i < amountOfDataset; i++) {
				String str = br.readLine();
				String[] nums = str.split(" ", 0);
				double x1 = Double.parseDouble(nums[0]);
				double y1 = Double.parseDouble(nums[1]);
				double x2 = Double.parseDouble(nums[2]);
				double y2 = Double.parseDouble(nums[3]);
				double x3 = Double.parseDouble(nums[4]);
				double y3 = Double.parseDouble(nums[5]);
				double x4 = Double.parseDouble(nums[6]);
				double y4 = Double.parseDouble(nums[7]);

				double slopeAB = (y2 - y1) / (x2 - x1);
				double slopeCD = (y4 - y3) / (x4 - x3);

				if (slopeAB == slopeCD) {
					System.out.println("YES");
				} else {
					System.out.println("NO");
				}
			}

		} catch (IOException e) {
			e.printStackTrace();
		}
	}
}

Compiler output:
Main.java:8: error: cannot find symbol
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			^
  symbol:   class BufferedReader
  location: class Main
Main.java:8: error: cannot find symbol
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			                        ^
  symbol:   class BufferedReader
  location: class Main
Main.java:8: error: cannot find symbol
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			                                           ^
  symbol:   class InputStreamReader
  location: class Main
Main.java:33: error: cannot find symbol
		} catch (IOException e) {
		         ^
  symbol:   class IOException
  location: class Main
4 errors
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.math.BigDecimal;
import java.math.MathContext;
import java.util.StringTokenizer;

public class Math{
    public static void main(String[] args) {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringBuilder sb = new StringBuilder();
        StringTokenizer st;
        try {
            String line;
            int n = Integer.parseInt(br.readLine());
            for (int i = 0; i < n; i++) {
                line = br.readLine();
                st = new StringTokenizer(line);
                MathContext mc = new MathContext(10);
                BigDecimal x1 = new BigDecimal(st.nextToken());
                BigDecimal y1 = new BigDecimal(st.nextToken());
                BigDecimal x2 = new BigDecimal(st.nextToken());
                BigDecimal y2 = new BigDecimal(st.nextToken());
                BigDecimal x3 = new BigDecimal(st.nextToken());
                BigDecimal y3 = new BigDecimal(st.nextToken());
                BigDecimal x4 = new BigDecimal(st.nextToken());
                BigDecimal y4 = new BigDecimal(st.nextToken());
                BigDecimal a1 = y2.subtract(y1);
                BigDecimal b1 = x1.subtract(x2);
                BigDecimal a2 = y4.subtract(y3);
                BigDecimal b2 = x3.subtract(x4);
                if (a1.multiply(b2, mc) == a2.multiply(b1, mc)) {
                    System.out.println("YES");
                } else {
                    System.out.println("NO");
                }
            }
        } catch (Exception e) {
            e.printStackTrace();
        }

    }
}

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

import java.util.Scanner;

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

		int nico = Integer.parseInt(sc.nextLine());
		for (int i = 0; i < nico; i++) {
			String[] params = sc.nextLine().split(" ");
			
			double[] points = new double[8];
			for (int j = 0; j < points.length; j++) {
				points[j] = Double.parseDouble(params[j]);
			}
			
			double dx0 = points[2] - points[0];
			double dy0 = points[3] - points[1];
			double dx1 = points[6] - points[4];
			double dy1 = points[7] - points[5];

			double d = (dx0 * dy1 - dy0 * dx1) * 10000000000;
			if (d == 0.0) System.out.println("YES");
			else System.out.println("NO");
		}
	}
}

Compiler output:
Main.java:27: error: integer number too large
			double d = (dx0 * dy1 - dy0 * dx1) * 10000000000;
			                                     ^
1 error
Language: Java

import java.util.*;
import java.math.*;

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

	public static void main(String[] args){
		List<String> list = new ArrayList<String>();

		int n = scan.nextInt();
		for(int i = 0; i < n; i++){
			BigDecimal x1 = scan.nextBigDecimal();
			BigDecimal y1 = scan.nextBigDecimal();
			BigDecimal x2 = scan.nextBigDecimal();
			BigDecimal y2 = scan.nextBigDecimal();
			BigDecimal x3 = scan.nextBigDecimal();
			BigDecimal y3 = scan.nextBigDecimal();
			BigDecimal x4 = scan.nextBigDecimal();
			BigDecimal y4 = scan.nextBigDecimal();

			BigDecimal ax = x2.subtract(x1);
			BigDecimal ay = y2.subtract(y1);

			BigDecimal bx = x4.subtract(x3);
			BigDecimal by = y4.subtract(y3);

			BigDecimal thetaA = ax * Math.tan(ay / ax);
			BigDecimal thetaB = bx * Math.tan(by / bx);
			
			if(thetaA == thetaB){
				list.add("YES");
			} else{
				list.add("NO");
			}
		}

		for(String s : list){
			System.out.printf("%s\n", s);
		}
	}
}

Compiler output:
Main.java:27: error: bad operand types for binary operator '/'
			BigDecimal thetaA = ax * Math.tan(ay / ax);
			                                     ^
  first type:  BigDecimal
  second type: BigDecimal
Main.java:28: error: bad operand types for binary operator '/'
			BigDecimal thetaB = bx * Math.tan(by / bx);
			                                     ^
  first type:  BigDecimal
  second type: BigDecimal
2 errors
Language: Java

import java.util.*;
import java.math.*;

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

	public static void main(String[] args){
		List<String> list = new ArrayList<String>();

		int n = scan.nextInt();
		for(int i = 0; i < n; i++){
			BigDecimal x1 = scan.nextBigDecimal();
			BigDecimal y1 = scan.nextBigDecimal();
			BigDecimal x2 = scan.nextBigDecimal();
			BigDecimal y2 = scan.nextBigDecimal();
			BigDecimal x3 = scan.nextBigDecimal();
			BigDecimal y3 = scan.nextBigDecimal();
			BigDecimal x4 = scan.nextBigDecimal();
			BigDecimal y4 = scan.nextBigDecimal();

			BigDecimal ax = x2.subtract(x1);
			BigDecimal ay = y2.subtract(y1);

			BigDecimal bx = x4.subtract(x3);
			BigDecimal by = y4.subtract(y3);

			BigDecimal thetaA = ax * Math.tan(ay.divide(ax));
			BigDecimal thetaB = bx * Math.tan(by.divide(bx));
			
			if(thetaA == thetaB){
				list.add("YES");
			} else{
				list.add("NO");
			}
		}

		for(String s : list){
			System.out.printf("%s\n", s);
		}
	}
}

Compiler output:
Main.java:27: error: incompatible types: BigDecimal cannot be converted to double
			BigDecimal thetaA = ax * Math.tan(ay.divide(ax));
			                                           ^
Main.java:28: error: incompatible types: BigDecimal cannot be converted to double
			BigDecimal thetaB = bx * Math.tan(by.divide(bx));
			                                           ^
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
2 errors
Language: Java

import java.util.*;
import java.math.*;

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

	public static void main(String[] args){
		List<String> list = new ArrayList<String>();

		int n = scan.nextInt();
		for(int i = 0; i < n; i++){
			BigDecimal x1 = scan.nextBigDecimal();
			BigDecimal y1 = scan.nextBigDecimal();
			BigDecimal x2 = scan.nextBigDecimal();
			BigDecimal y2 = scan.nextBigDecimal();
			BigDecimal x3 = scan.nextBigDecimal();
			BigDecimal y3 = scan.nextBigDecimal();
			BigDecimal x4 = scan.nextBigDecimal();
			BigDecimal y4 = scan.nextBigDecimal();

			BigDecimal ax = x2.subtract(x1);
			BigDecimal ay = y2.subtract(y1);

			BigDecimal bx = x4.subtract(x3);
			BigDecimal by = y4.subtract(y3);

			BigDecimal thetaA = ax.multiply(Math.tan(ay.divide(ax)));
			BigDecimal thetaB = bx.multiply(Math.tan(by.divide(bx)));
			
			if(thetaA == thetaB){
				list.add("YES");
			} else{
				list.add("NO");
			}
		}

		for(String s : list){
			System.out.printf("%s\n", s);
		}
	}
}

Compiler output:
Main.java:27: error: incompatible types: BigDecimal cannot be converted to double
			BigDecimal thetaA = ax.multiply(Math.tan(ay.divide(ax)));
			                                                  ^
Main.java:28: error: incompatible types: BigDecimal cannot be converted to double
			BigDecimal thetaB = bx.multiply(Math.tan(by.divide(bx)));
			                                                  ^
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
2 errors
Language: Java

import java.util.*;
import java.math.*;

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

	public static void main(String[] args){
		List<String> list = new ArrayList<String>();

		int n = scan.nextInt();
		for(int i = 0; i < n; i++){
			BigDecimal x1 = scan.nextBigDecimal();
			BigDecimal y1 = scan.nextBigDecimal();
			BigDecimal x2 = scan.nextBigDecimal();
			BigDecimal y2 = scan.nextBigDecimal();
			BigDecimal x3 = scan.nextBigDecimal();
			BigDecimal y3 = scan.nextBigDecimal();
			BigDecimal x4 = scan.nextBigDecimal();
			BigDecimal y4 = scan.nextBigDecimal();

			BigDecimal ax = x2.subtract(x1);
			BigDecimal ay = y2.subtract(y1);

			BigDecimal bx = x4.subtract(x3);
			BigDecimal by = y4.subtract(y3);

			BigDecimal t = ax.multiply(by);
			BigDecimal tB = ay.multiply(bx);
			
			boolean flag = t.compareTo(tB);
			list.add(flag? "YES" : "NO");
		}

		for(String s : list){
			System.out.printf("%s\n", s);
		}
	}
}

Compiler output:
Main.java:30: error: incompatible types: int cannot be converted to boolean
			boolean flag = t.compareTo(tB);
			                          ^
1 error
Language: Java

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

        int n = Integer.parseInt(sc.nextLine());
        for (int i = 0; i < n; i++) {
            String input = sc.nextLine();
            String[] values = input.split(" ");
            
            double x1 = Double.parseDouble(values[0]);
            double y1 = Double.parseDouble(values[1]);
            double x2 = Double.parseDouble(values[2]);
            double y2 = Double.parseDouble(values[3]);
            double x3 = Double.parseDouble(values[4]);
            double y3 = Double.parseDouble(values[5]);
            double x4 = Double.parseDouble(values[6]);
            double y4 = Double.parseDouble(values[7]);

            double det = (x2 - x1) * (y4 - y3) - (y2 - y1) * (x4 - x3);

            System.out.println(det == 0.0 ? "YES" : "NO");
        }
    }
}

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


public class Main{
	public static void main(String args[]) {
		Scanner scn = new Scanner(System.in);
		double x1, y1, x2, y2, x3, y3, x4, y4;
		int n = scn.nextInt();
		for (int i = 0; i < n; i++) {
			x1 = scn.nextDouble();
			y1 = scn.nextDouble();
			x2 = scn.nextDouble();
			y2 = scn.nextDouble();
			x3 = scn.nextDouble();
			y3 = scn.nextDouble();
			x4 = scn.nextDouble();
			y4 = scn.nextDouble();
			if ((x1 - x2) * (y3 - y4) == (x3 - x4) * (y1 - y2)) {
				System.out.println("Yes");
			} else {
				System.out.println("No");
			}
		}

		scn.close();

	}
}


Compiler output:
Main.java:4: error: cannot find symbol
		Scanner scn = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:4: error: cannot find symbol
		Scanner scn = new Scanner(System.in);
		                  ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: Java

import java.io.*;

public class Main {

	public static void main(String[] args) throws IOException {
		int n = ReadString.readInt();
		for(int i = 0; i < n; i++){
			double[] arr = ReadString.readDoubleArray(8);
			Point p1 = new Point(arr[0], arr[1]);
			Point p2 = new Point(arr[2], arr[3]);
			Point p3 = new Point(arr[4], arr[5]);
			Point p4 = new Point(arr[6], arr[7]);
			System.out.println(katamuki(p1, p2) +" "+ katamuki(p3, p4));
			if(parallel(katamuki(p1, p2) , katamuki(p3, p4)))
				System.out.println("YES");
			else
				System.out.println("NO");
		}
	}
	static double katamuki(Point p1, Point p2){
		double k = (p2.y-p1.y) / (p2.x-p1.x);
		return k;
	}
	static boolean parallel(double a, double b){
		if(a == b)
			return true;
		else
			return false;
	}
}

class ReadString {
	static int readInt() throws IOException{
		InputStreamReader is = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(is);
		return Integer.parseInt(br.readLine());
	}

	static double[] readDoubleArray(int n) throws IOException{
		InputStreamReader is = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(is);
		String c = br.readLine();
		double[] arr = new double[n];

		for(int i = 0; i < n; i++){
			if(c.indexOf(" ") !=  -1){
				String str = c.substring(0, c.indexOf(" "));
				arr[i] = Double.parseDouble(str);
				c = c.substring(c.indexOf(" ")+1);
			}
			else{
				arr[i] = Double.parseDouble(c);
			}
		}
		return arr.clone();
	}
}

Compiler output:
Main.java:20: error: cannot find symbol
	static double katamuki(Point p1, Point p2){
	                       ^
  symbol:   class Point
  location: class Main
Main.java:20: error: cannot find symbol
	static double katamuki(Point p1, Point p2){
	                                 ^
  symbol:   class Point
  location: class Main
Main.java:9: error: cannot find symbol
			Point p1 = new Point(arr[0], arr[1]);
			^
  symbol:   class Point
  location: class Main
Main.java:9: error: cannot find symbol
			Point p1 = new Point(arr[0], arr[1]);
			               ^
  symbol:   class Point
  location: class Main
Main.java:10: error: cannot find symbol
			Point p2 = new Point(arr[2], arr[3]);
			^
  symbol:   class Point
  location: class Main
Main.java:10: error: cannot find symbol
			Point p2 = new Point(arr[2], arr[3]);
			               ^
  symbol:   class Point
  location: class Main
Main.java:11: error: cannot find symbol
			Point p3 = new Point(arr[4], arr[5]);
			^
  symbol:   class Point
  location: class Main
Main.java:11: error: cannot find symbol
			Point p3 = new Point(arr[4], arr[5]);
			               ^
  symbol:   class Point
  location: class Main
Main.java:12: error: cannot find symbol
			Point p4 = new Point(arr[6], arr[7]);
			^
  symbol:   class Point
  location: class Main
Main.java:12: error: cannot find symbol
			Point p4 = new Point(arr[6], arr[7]);
			               ^
  symbol:   class Point
  location: class Main
10 errors
Language: Java

import java.util.Scanner;

//Parallelism
public class l{

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		while(n--!=0){
			double[] a = new double[8];
			for(int i=0;i<8;i++)a[i]=sc.nextDouble();
			double e = (a[2]-a[0])*(a[7]-a[5])-(a[3]-a[1])*(a[6]-a[4]);
			System.out.println(e==0?"YES":"NO");
		}
	}
}

Compiler output:
Main.java:4: error: illegal character: '\u0082'
public class ?l??????{
             ^
1 error
Language: Java

import java.util.Scanner;
import java.lang.Double;

class Main {
	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		int num = s.nextInt();
		for(int i=0 ; i<num ; i++){
			Double a[] = new Double[8];
			Double b,c;
			for(int j=0 ; j<8 ; j++)
				a[j] = s.nextDouble();
			if((a[2]-a[0])!=0)
				b = (a[3]-a[1])/(a[2]-a[0]);
			else
				b = null;
			if((a[6]-a[4])!=0)
				c = (a[7]-a[5])/(a[6]-a[4]);
			else
				c = null;
			if(b.compareTo(c)==0 || b.compareTo(-c)==0)
				System.out.println("YES");
			else
				System.out.println("NO");		
			System.out.println(b+" "+c);
		}
    }

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


import java.util.ArrayList;
import java.util.NoSuchElementException;
import java.util.Scanner;

public class Main {
	
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		ArrayList<Point> points = new ArrayList<Point>(4);
		ArrayList<String> results = new ArrayList<String>(1);
		
		try{
			while(true){
				//4ÂÌÀWf[^ðüÍ©çæ¾·é
				points.add(new Point(sc.nextDouble(), sc.nextDouble()));
				points.add(new Point(sc.nextDouble(), sc.nextDouble()));
				points.add(new Point(sc.nextDouble(), sc.nextDouble()));
				points.add(new Point(sc.nextDouble(), sc.nextDouble()));
				
				if(getSlope(points.get(0), points.get(1)) == getSlope(points.get(2), points.get(3))){
					results.add("YES");
				}
				else{
					results.add("NO");
				}
			}
		}catch(NoSuchElementException e){
			//hüÍÌIíèhªüÍ³ê½êA½à¹¸ÉÌsÌðs¤
		}
		
		for(int i = 0; i < results.size(); i++){
			System.out.println(results.get(i));
		}
	}
	
	public static double getSlope(Point a, Point b){
		boolean aHasBiggerX;
		if(a.x > b.x){
			aHasBiggerX = true;
		}
		else{
			aHasBiggerX = false;
		}
		
		double valiationX;
		if(aHasBiggerX){
			valiationX = a.x - b.x;
		}
		else{
			valiationX = b.x - a.x;
		}
		
		double valiationY;
		if(aHasBiggerX){
			valiationY = a.y - b.y;
		}
		else{
			valiationY = b.y - a.y;
		}
		
		double slope = valiationY / valiationX;
		if(slope == Double.NEGATIVE_INFINITY){
			slope = Double.POSITIVE_INFINITY;
		}
		
		return slope;
	}
	
}

Compiler output:
Main.java:37: error: cannot find symbol
	public static double getSlope(Point a, Point b){
	                              ^
  symbol:   class Point
  location: class Main
Main.java:37: error: cannot find symbol
	public static double getSlope(Point a, Point b){
	                                       ^
  symbol:   class Point
  location: class Main
Main.java:10: error: cannot find symbol
		ArrayList<Point> points = new ArrayList<Point>(4);
		          ^
  symbol:   class Point
  location: class Main
Main.java:10: error: cannot find symbol
		ArrayList<Point> points = new ArrayList<Point>(4);
		                                        ^
  symbol:   class Point
  location: class Main
Main.java:16: error: cannot find symbol
				points.add(new Point(sc.nextDouble(), sc.nextDouble()));
				               ^
  symbol:   class Point
  location: class Main
Main.java:17: error: cannot find symbol
				points.add(new Point(sc.nextDouble(), sc.nextDouble()));
				               ^
  symbol:   class Point
  location: class Main
Main.java:18: error: cannot find symbol
				points.add(new Point(sc.nextDouble(), sc.nextDouble()));
				               ^
  symbol:   class Point
  location: class Main
Main.java:19: error: cannot find symbol
				points.add(new Point(sc.nextDouble(), sc.nextDouble()));
				               ^
  symbol:   class Point
  location: class Main
8 errors
Language: Java

import java.util.Scanner;


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

		for(int i = 0;i < number ;i++){
			double[] x = new double[4];
			double[] y = new double[4];
			
			x[0] = sc.nextDouble();
			y[0] = sc.nextDouble();
			
			x[1] = sc.nextDouble();
			y[1] = sc.nextDouble();
			
			x[2] = sc.nextDouble();
			y[2] = sc.nextDouble();
			
			x[3] = sc.nextDouble();
			y[3] = sc.nextDouble();
			
			double det = (x[1] - x[0]) * (y[3] - y[2]) - (y[1] - y[0]) * (x[3] - x[2]);
			System.out.println(det == 0.0 ? "YES" : "NO");
		}
	}

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

import java.util.Scanner;

public class Parallelism {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		double x1, y1, x2, y2, x3, y3, x4, y4;
		double d12, d34;
		for (int i = 0; i < n; i++) {
			x1 = scan.nextDouble();
			y1 = scan.nextDouble();
			x2 = scan.nextDouble();
			y2 = scan.nextDouble();
			x3 = scan.nextDouble();
			y3 = scan.nextDouble();
			x4 = scan.nextDouble();
			y4 = scan.nextDouble();
			d12 = (y1 - y2) * (x3 - x4);
			d34 = (y3 - y4) * (x1 - x2);
			if (d12 - d34 ==0) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		}
	}

}

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


#include<stdio.h>
int main(void){

  float x1, y1, x2, y2, x3, y3, x4, y4, a, b;
  int i, n;

  scanf("%d", &n);

  for(i=0;i<n;i++){
  scanf("%f %f %f %f %f %f %f %f", &x1, &y1, &x2, &y2, &x3, &y3, &x4, &y4);

  AB=(y1-y2)/(x1-x2);

  CD=(y3-y4)/(x3-x4);

  if(a==b)

  printf("YES");

  else

  printf("NO");

  }

  return 0;

  }



Compiler output:
main.c: In function 'main':
main.c:13:3: error: 'AB' undeclared (first use in this function)
   13 |   AB=(y1-y2)/(x1-x2);
      |   ^~
main.c:13:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:15:3: error: 'CD' undeclared (first use in this function)
   15 |   CD=(y3-y4)/(x3-x4);
      |   ^~
Language: C


#include<stdio.h>
int main(void){

  float x1, y1, x2, y2, x3, y3, x4, y4, a, b;
  int i, n;

  scanf("%d", &n);

  for(i=0;i<n;i++){
  scanf("%lf %lf %lf %lf %lf %lf %lf %lf", &x1, &y1, &x2, &y2, &x3, &y3, &x4, &y4);

  AB=(y1-y2)/(x1-x2);

  CD=(y3-y4)/(x3-x4);

  if(a==b)

  printf("YES\n");

  else

  printf("NO\n");

  }

  return 0;

  }



Compiler output:
main.c: In function 'main':
main.c:13:3: error: 'AB' undeclared (first use in this function)
   13 |   AB=(y1-y2)/(x1-x2);
      |   ^~
main.c:13:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:15:3: error: 'CD' undeclared (first use in this function)
   15 |   CD=(y3-y4)/(x3-x4);
      |   ^~
Language: C


#include<stdio.h>
int main(void){

  float x1, y1, x2, y2, x3, y3, x4, y4, a, b;
  int i, n;

  scanf("%d", &n);

  for(i=0;i<n;i+1){
  scanf("%f %f %f %f %f %f %f %f", &x1, &y1, &x2, &y2, &x3, &y3, &x4, &y4);

  AB=(y1-y2)/(x1-x2);

  CD=(y3-y4)/(x3-x4);

  if(a==b)

  printf("YES\n");

  else

  printf("NO\n");

  }

  return 0;

  }



Compiler output:
main.c: In function 'main':
main.c:13:3: error: 'AB' undeclared (first use in this function)
   13 |   AB=(y1-y2)/(x1-x2);
      |   ^~
main.c:13:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:15:3: error: 'CD' undeclared (first use in this function)
   15 |   CD=(y3-y4)/(x3-x4);
      |   ^~
Language: C


#include<stdio.h>
int main(){

  float x1, y1, x2, y2, x3, y3, x4, y4, a, b;
  int i, n;

  scanf("%d", &n);

  for(i=0;i<n;i+1){
  scanf("%f %f %f %f %f %f %f %f", &x1, &y1, &x2, &y2, &x3, &y3, &x4, &y4);

  AB=(y1-y2)/(x1-x2);

  CD=(y3-y4)/(x3-x4);

  if(a==b)

  printf("YES\n");

  else

  printf("NO\n");

  }

  return 0;

  }



Compiler output:
main.c: In function 'main':
main.c:13:3: error: 'AB' undeclared (first use in this function)
   13 |   AB=(y1-y2)/(x1-x2);
      |   ^~
main.c:13:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:15:3: error: 'CD' undeclared (first use in this function)
   15 |   CD=(y3-y4)/(x3-x4);
      |   ^~
Language: C

#include<stdio.h>
int main(){

  float x1, y1, x2, y2, x3, y3, x4, y4, a, b;
  int i, n;
  scanf("%d", &n);
  for(i=0;i<n;i++){
  scanf("%f %f %f %f %f %f %f %f", &x1, &y1, &x2, &y2, &x3, &y3, &x4, &y4);

  AB=(y1-y2)/(x1-x2);

  CD=(y3-y4)/(x3-x4);

  if(a==b)

  printf("YES\n");

  else

  printf("NO\n");

  }

  return 0;

  }



Compiler output:
main.c: In function 'main':
main.c:10:3: error: 'AB' undeclared (first use in this function)
   10 |   AB=(y1-y2)/(x1-x2);
      |   ^~
main.c:10:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:12:3: error: 'CD' undeclared (first use in this function)
   12 |   CD=(y3-y4)/(x3-x4);
      |   ^~
Language: C

#include<stdio.h>
int main(){
  double x1,x2,x3,x4,y1,y2,y3,y4;
  int n,i,j,ans1,ans2;
  scanf("%d",&n);
  for(i=0;i<n;i++){
    for(j=0;j<4;j++){
      scanf("%lf %lf %lf %lf %lf %lf %lf %lf",&x1,&y1,&x2,&y2,&x3,&y3,&x4,&y4);
    }
    for(j=0;j<4;j+=2){
      if(x[j]<x[j+1]){
	if(j == 0){
	  ans1 = x[j+1] - x[j];
	}
	else{
	  ans2 = x[j+1] - x[j];
	}
      }
      else{
	if(j == 2){
	  ans1 = x[j] - x[j+1];
	}
	else{
	  ans2 = x[j] - x[j+1];
	}
      }
    }
    if(ans1 == ans2){
      printf("YES\n");
    }
    else{
      printf("NO\n");
    }
  }
  return 0;
}
  

Compiler output:
main.c: In function 'main':
main.c:11:10: error: 'x' undeclared (first use in this function)
   11 |       if(x[j]<x[j+1]){
      |          ^
main.c:11:10: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
int main() {
  int n, s;
  double x[4], y[4], z;
  scanf("%d", &n);
  for (s = 0; s < n; s ++) {
    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]);
    z = (y[0] - y[1]) * (x[2] - x[3]) - (x[0] - x[1]) * (y[2] - y[3]);
    if (-0.000005 < z && x < 0.000005) printf("YES\n");
    else printf("NO\n");
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:28: error: invalid operands to binary < (have 'double *' and 'double')
    9 |     if (-0.000005 < z && x < 0.000005) printf("YES\n");
      |                       ~~   ^
      |                       |
      |                       double *
Language: C

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

int main(void)
{
    double x[4];
    double y[4];
    double num1, num2, num3, num4;
    int n;
    scanf("%d", &n);

    while (n > 0){
    	flag = 0;
        n--;
        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]);
        
        num1 = (x[0] - x[1]) * (x[0] - x[1]) + (y[0] - y[1]) * (y[0] - y[1]);
        num2 = (x[2] - x[3]) * (x[2] - x[3]) + (y[2] - y[3]) * (y[2] - y[3]);
        num1 = sqrt(num1);
        num2 = sqrt(num2);
        
        if (num1 == num2){
        	num3 = (x[0] - x[2]) * (x[0] - x[2]) + (y[0] - y[2]) * (y[0] - y[2]);
        	num4 = (x[1] - x[3]) * (x[1] - x[3]) + (y[1] - y[3]) * (y[1] - y[3]);
        	
        	if (num3 != num4){
        		printf("YES\n");
        	}
        	else {
        		printf("NO\n");
        	}
        }
        else {
            printf("NO\n");
        }
    }

    return 0;
}

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

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

int main(void)
{
    double x[4];
    double y[4];
    double num1, num2, num3, num4;
    int n;
    scanf("%d", &n);

    while (n > 0){
    	flag = 0;
        n--;
        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]);
        
        num1 = (x[0] - x[1]) * (x[0] - x[1]) + (y[0] - y[1]) * (y[0] - y[1]);
        num2 = (x[2] - x[3]) * (x[2] - x[3]) + (y[2] - y[3]) * (y[2] - y[3]);
        num1 = sqrt(num1);
        num2 = sqrt(num2);
        
        if (num1 == num2){
        	num3 = (x[0] - x[2]) * (x[0] - x[2]) + (y[0] - y[2]) * (y[0] - y[2]);
        	num4 = (x[1] - x[3]) * (x[1] - x[3]) + (y[1] - y[3]) * (y[1] - y[3]);
        	num3 = sqrt(num3)
        	num4 = sqrt(num4)
        	
        	if (num3 != num4){
        		printf("YES\n");
        	}
        	else {
        		printf("NO\n");
        	}
        }
        else {
            printf("NO\n");
        }
    }

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:9: error: 'flag' undeclared (first use in this function)
   13 |         flag = 0;
      |         ^~~~
main.c:13:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:25:34: error: expected ';' before 'num4'
   25 |                 num3 = sqrt(num3)
      |                                  ^
      |                                  ;
   26 |                 num4 = sqrt(num4)
      |                 ~~~~
Language: C

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

int main(void)
{
    double x[4];
    double y[4];
    double num1, num2, num3, num4;
    int n;
    scanf("%d", &n);

    while (n > 0){
        n--;
        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]);
        
        num1 = (x[0] - x[1]) * (x[0] - x[1]) + (y[0] - y[1]) * (y[0] - y[1]);
        num2 = (x[2] - x[3]) * (x[2] - x[3]) + (y[2] - y[3]) * (y[2] - y[3]);
        num1 = sqrt(num1);
        num2 = sqrt(num2);
        
        if (num1 == num2){
        	num3 = (x[0] - x[2]) * (x[0] - x[2]) + (y[0] - y[2]) * (y[0] - y[2]);
        	num4 = (x[1] - x[3]) * (x[1] - x[3]) + (y[1] - y[3]) * (y[1] - y[3]);
        	num3 = sqrt(num3)
        	num4 = sqrt(num4)
        	
        	if (num3 != num4){
        		printf("YES\n");
        	}
        	else {
        		printf("NO\n");
        	}
        }
        else {
            printf("NO\n");
        }
    }

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:24:34: error: expected ';' before 'num4'
   24 |                 num3 = sqrt(num3)
      |                                  ^
      |                                  ;
   25 |                 num4 = sqrt(num4)
      |                 ~~~~