Language: C++

import java.util.Scanner;
import java.util.Arrays;
import java.util.ArrayDeque;
import java.util.Deque;
import java.util.Collection;
import java.util.LinkedList;
import java.util.Queue;

class Main{
          public static void main(String[] args) {
                  Scanner scan = new Scanner(System.in);
                  int A = scan.nextInt();
                  int B = scan.nextInt();
                  int C = scan.nextInt();
                  if (A == 5 && B == 7 && C == 5) {
                          boolean f = true;
                  }
                  if (A == 7 && B == 5 && C == 5) {
                          boolean f = true;
                  }
                  if (A == 5 && B == 5 && C == 7) {
                          boolean f = true;
                  }
                  if (f) {
                          System.out.println("YES");
                  }
                  else System.out.println("NO");
                  }
}


Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Scanner;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: 'import' does not name a type
    2 | import java.util.Arrays;
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: 'import' does not name a type
    3 | import java.util.ArrayDeque;
      | ^~~~~~
a.cc:3:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:1: error: 'import' does not name a type
    4 | import java.util.Deque;
      | ^~~~~~
a.cc:4:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:5:1: error: 'import' does not name a type
    5 | import java.util.Collection;
      | ^~~~~~
a.cc:5:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:6:1: error: 'import' does not name a type
    6 | import java.util.LinkedList;
      | ^~~~~~
a.cc:6:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:7:1: error: 'import' does not name a type
    7 | import java.util.Queue;
      | ^~~~~~
a.cc:7:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:10:17: error: expected ':' before 'static'
   10 |           public static void main(String[] args) {
      |                 ^~~~~~~
      |                 :
a.cc:10:35: error: 'String' has not been declared
   10 |           public static void main(String[] args) {
      |                                   ^~~~~~
a.cc:10:44: error: expected ',' or '...' before 'args'
   10 |           public static void main(String[] args) {
      |                                            ^~~~
a.cc:29:2: error: expected ';' after class definition
   29 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Main::main(int*)':
a.cc:11:19: error: 'Scanner' was not declared in this scope
   11 |                   Scanner scan = new Scanner(System.in);
      |                   ^~~~~~~
a.cc:12:27: error: 'scan' was not declared in this scope
   12 |                   int A = scan.nextInt();
      |                           ^~~~
a.cc:16:27: error: 'boolean' was not declared in this scope; did you mean 'bool'?
   16 |                           boolean f = true;
      |                           ^~~~~~~
      |                           bool
a.cc:19:27: error: 'boolean' was not declared in this scope; did you mean 'bool'?
   19 |                           boolean f = true;
      |                           ^~~~~~~
      |                           bool
a.cc:22:27: error: 'boolean' was not declared in this scope; did you mean 'bool'?
   22 |                           boolean f = true;
      |                           ^~~~~~~
      |                           bool
a.cc:24:23: error: 'f' was not declared in this scope
   24 |                   if (f) {
      |                       ^
a.cc:25:27: error: 'System' was not declared in this scope
   25 |                           System.out.println("YES");
      |                           ^~~~~~
a.cc:27:24: error: 'System' was not declared in this scope
   27 |                   else System.out.println("NO");
      |                        ^~~~~~