Language: C++

/**
 * 
 */
import java.util.*;
/**
 * @author afterCmidday
 *
 */
class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		final double eps = 1e-10;
		int n;
		Scanner scan = new Scanner(System.in);
		n = scan.nextInt();
		for(int i = 0;i < n;i++){
			double x1 = scan.nextDouble(), y1 = scan.nextDouble(), x2 = scan.nextDouble(), y2 = scan.nextDouble();
			double a = x2 - x1, b = y2 - y1;
			double x3 = scan.nextDouble(), y3 = scan.nextDouble(), x4 = scan.nextDouble(), y4 = scan.nextDouble();
			double c = x4 - x3, d = y4 - y3;
			double e = a * d - b * c;
			if(Math.abs(e) < eps){
				System.out.println("YES");
			}else{
				System.out.println("NO");
			}
		}

	}

}

Compiler output:
a.cc:4:1: error: 'import' does not name a type
    4 | import java.util.*;
      | ^~~~~~
a.cc:4:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:14:15: error: expected ':' before 'static'
   14 |         public static void main(String[] args) {
      |               ^~~~~~~
      |               :
a.cc:14:33: error: 'String' has not been declared
   14 |         public static void main(String[] args) {
      |                                 ^~~~~~
a.cc:14:42: error: expected ',' or '...' before 'args'
   14 |         public static void main(String[] args) {
      |                                          ^~~~
a.cc:35:2: error: expected ';' after class definition
   35 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Main::main(int*)':
a.cc:16:17: error: 'final' was not declared in this scope
   16 |                 final double eps = 1e-10;
      |                 ^~~~~
a.cc:18:17: error: 'Scanner' was not declared in this scope
   18 |                 Scanner scan = new Scanner(System.in);
      |                 ^~~~~~~
a.cc:19:21: error: 'scan' was not declared in this scope
   19 |                 n = scan.nextInt();
      |                     ^~~~
a.cc:22:36: error: 'x2' was not declared in this scope; did you mean 'x1'?
   22 |                         double a = x2 - x1, b = y2 - y1;
      |                                    ^~
      |                                    x1
a.cc:24:36: error: 'x4' was not declared in this scope; did you mean 'x3'?
   24 |                         double c = x4 - x3, d = y4 - y3;
      |                                    ^~
      |                                    x3
a.cc:25:40: error: 'd' was not declared in this scope
   25 |                         double e = a * d - b * c;
      |                                        ^
a.cc:25:44: error: 'b' was not declared in this scope
   25 |                         double e = a * d - b * c;
      |                                            ^
a.cc:26:28: error: 'Math' was not declared in this scope
   26 |                         if(Math.abs(e) < eps){
      |                            ^~~~
a.cc:26:42: error: 'eps' was not declared in this scope
   26 |                         if(Math.abs(e) < eps){
      |                                          ^~~
a.cc:27:33: error: 'System' was not declared in this scope
   27 |                                 System.out.println("YES");
      |                                 ^~~~~~
a.cc:29:33: error: 'System' was not declared in this scope
   29 |                                 System.out.println("NO");
      |                                 ^~~~~~