Language: C++

import core.bitop;
import std.algorithm;
import std.array;
import std.ascii;
import std.container;
import std.conv;
import std.format;
import std.math;
import std.range;
import std.stdio;
import std.string;
import std.typecons;

void main()
{
  int n = readln.chomp.to!int;
  int[] a = readln.chomp.split.map!(to!int).array;

  int one = 0;
  int four = 0;
  foreach (v; a) {
    if (v % 4 == 0) {
      ++four;
      continue;
    }
    if (v % 2 == 0) {
      continue;
    }
    ++one;
  }
  writeln = one <= four ? "Yes" : "No";
}


Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import core.bitop;
      | ^~~~~~
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 std.algorithm;
      | ^~~~~~
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 std.array;
      | ^~~~~~
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 std.ascii;
      | ^~~~~~
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 std.container;
      | ^~~~~~
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 std.conv;
      | ^~~~~~
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 std.format;
      | ^~~~~~
a.cc:7:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:8:1: error: 'import' does not name a type
    8 | import std.math;
      | ^~~~~~
a.cc:8:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:9:1: error: 'import' does not name a type
    9 | import std.range;
      | ^~~~~~
a.cc:9:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:10:1: error: 'import' does not name a type
   10 | import std.stdio;
      | ^~~~~~
a.cc:10:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:11:1: error: 'import' does not name a type
   11 | import std.string;
      | ^~~~~~
a.cc:11:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:12:1: error: 'import' does not name a type
   12 | import std.typecons;
      | ^~~~~~
a.cc:12:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:14:1: error: '::main' must return 'int'
   14 | void main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:16:11: error: 'readln' was not declared in this scope
   16 |   int n = readln.chomp.to!int;
      |           ^~~~~~
a.cc:17:6: error: structured binding declaration cannot have type 'int'
   17 |   int[] a = readln.chomp.split.map!(to!int).array;
      |      ^~
a.cc:17:6: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:17:6: error: empty structured binding declaration
a.cc:17:9: error: expected initializer before 'a'
   17 |   int[] a = readln.chomp.split.map!(to!int).array;
      |         ^
a.cc:21:12: error: 'v' was not declared in this scope
   21 |   foreach (v; a) {
      |            ^
a.cc:21:15: error: 'a' was not declared in this scope
   21 |   foreach (v; a) {
      |               ^
a.cc:31:3: error: 'writeln' was not declared in this scope
   31 |   writeln = one <= four ? "Yes" : "No";
      |   ^~~~~~~