Language: C++

import std.algorithm;
import std.array;
import std.ascii;
import std.bigint;
import std.complex;
import std.container;
import std.conv;
import std.functional;
import std.math;
import std.range;
import std.stdio;
import std.string;
import std.typecons;

auto readInts() {
	return array(map!(to!int)(readln().strip().split()));
}
auto readInt() {
	return readInts()[0];
}
auto readLongs() {
	return array(map!(to!long)(readln().strip().split()));
}
auto readLong() {
	return readLongs()[0];
}

void readlnTo(T...)(ref T t) {
    auto s = readln().split();
    assert(s.length == t.length);
    foreach(ref ti; t) {
        ti = s[0].to!(typeof(ti));
        s = s[1..$];
    }
}

class UnionFindTree {
public:
    this(size_t n) {
        parent = iota(n).array();
        rank = new size_t[](n);
    }
    size_t find(size_t n) {
        if(n == parent[n]) {
            return n;
        } else {
            parent[n] = find(parent[n]);
            return parent[n];
        }
    }
    void unite(size_t n, size_t m) {
        auto p1 = find(n);
        auto p2 = find(m);
        if(n == m) {
            return;
        }
        if(rank[p1] < rank[p2]) {
            swap(p1, p2);
        }
        if(rank[p1] == rank[p2]) {
            ++rank[p1];
        }
        parent[p2] = p1;
    }
private:
    size_t[] parent;
    size_t[] rank;
}
unittest {
    auto uft = new UnionFindTree(10);
    foreach(i; iota(10)) {
        assert(uft.find(i) == i);
    }
    foreach(i; iota(10).filter!(a => a%3 == 0).drop(1)) {
        uft.unite(i, i-3);
    }
    foreach(i; iota(10).filter!(a => a%3 == 0)) {
        assert(uft.find(0) == uft.find(i));
    }
    foreach(i; iota(10).filter!(a => a%3 != 0)) {
        assert(uft.find(0) != uft.find(i));
    }
}

//内部では1-based, 使うときは0-based
class BinaryIndexedTree(T, alias F = "a + b") if(is(typeof(binaryFun!F))) {
    alias f = binaryFun!F;
public:
    this(in size_t n, in T T0 = T.init) {
        t.length = n+1;
        t[] = T0;
    }

    void add(in size_t idx, in T v)
    in {
        assert(idx < t.length-1);
    }
    body {
        one_based_add(idx+1, v);
    }

    T accumulate(size_t idx) {
        return one_based_accumulate(idx+1);
    }

private:
    T[] t;

    //1-based
    void one_based_add(size_t idx, in ref T v) {
        if(idx >= t.length) {
            return;
        }
        t[idx] = f(t[idx], v);
        one_based_add(idx + (idx & (-idx)), v);
    }
    T one_based_accumulate(size_t idx) {
        if(idx == 0) {
            return t[0];
        } else {
            return f(one_based_accumulate(idx - (idx & (-idx))), t[idx]);
        }
    }
}
unittest {
    auto bit = new BinaryIndexedTree!(long)(10);
    foreach(i; iota(10)) {
        assert(bit.accumulate(i) == 0);
    }
    bit.add(5, 3);
    foreach(i; iota(5)) {
        assert(bit.accumulate(i) == 0);
    }
    foreach(i; iota(5, 10)) {
        assert(bit.accumulate(i) == 3);
    }

    bit.add(7, 2);

    foreach(i; iota(5)) {
        assert(bit.accumulate(i) == 0);
    }
    foreach(i; iota(5, 7)) {
        assert(bit.accumulate(i) == 3);
    }
    foreach(i; iota(7, 10)) {
        assert(bit.accumulate(i) == 5);
    }
}
unittest {
    auto bit = new BinaryIndexedTree!(long, "a*b")(10, 1);
    foreach(i; iota(10)) {
        assert(bit.accumulate(i) == 1);
    }
    bit.add(5, 3);
    foreach(i; iota(5)) {
        assert(bit.accumulate(i) == 1);
    }
    foreach(i; iota(5, 10)) {
        assert(bit.accumulate(i) == 3);
    }

    bit.add(7, 2);

    foreach(i; iota(5)) {
        assert(bit.accumulate(i) == 1);
    }
    foreach(i; iota(5, 7)) {
        assert(bit.accumulate(i) == 3);
    }
    foreach(i; iota(7, 10)) {
        assert(bit.accumulate(i) == 6);
    }
}

//最大流、O(|V||E|^2)
template Flow_Dinic() {
    class Edge {
    public:
        this(long to, long capacity) {
            this.to = to;
            this.capacity = capacity;
        }
        long to;
        long capacity;
        Edge reverse;
    }

    //gを残余グラフにする
    void residualise(Edge[][] g) {
        foreach(u; iota(g.length)) {
            foreach(e; g[u]) {
                if(e.capacity != 0) {
                    e.reverse = new Edge(u, 0);
                    e.reverse.reverse = e;
                    g[e.to] ~= e.reverse;
                }
            }
        }
    }

    const long INF = long.max / 2;

    //gは残余グラフ
    //gは計算の結果書き換わる
    long solve(Edge[][] g, long s, long t) {
        long ret;
        while(true) {
            auto level = new long[](g.length);
            level[] = INF;
            auto q = DList!long(s);
            level[s] = 0;
            //level graph
            auto lg = new Edge[][](g.length, 0);
            while(!q.empty()) {
                auto u = q.front();
                q.removeFront();
                if(u == t) {
                    break;
                }
                foreach(e; g[u]) {
                    if(e.capacity > 0 && level[e.to] >= level[u] + 1) {
                        level[e.to] = level[u] + 1;
                        q.insertBack(e.to);
                        lg[u] ~= e;
                    }
                }
            }
            if(level[t] == INF) {
                break;
            }
            auto iter = new long[](g.length);
            long dfs(long u, long c_min) {
                if(u == t) {
                    return c_min;
                }
                foreach(i; iota(iter[u], lg[u].length)) {
                    iter[u] = i;
                    long f = dfs(lg[u][i].to, min(c_min, lg[u][i].capacity));
                    if(f > 0) {
                        lg[u][i].capacity -= f;
                        lg[u][i].reverse.capacity += f;
                        return f;
                    }
                }
                return 0;
            }
            while(true) {
                long f = dfs(s, INF);
                if(f == 0) {
                    break;
                }
                ret += f;
            }
        }
        return ret;
    }
}

enum real eps = 1e-10;

enum long mod = 1_000_000_000 + 7;

void main(){
  long a, b;
  readlnTo(a, b);
  long ans;
  foreach(i; iota(1, 13)) {
    if(i < a || (i == a && i <= b)) {
      ++ans;
    }
  }
  writeln(ans);
}



Compiler output:
a.cc:33:15: error: too many decimal points in number
   33 |         s = s[1..$];
      |               ^~~~
a.cc:1:1: error: 'import' does not name a type
    1 | import std.algorithm;
      | ^~~~~~
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.array;
      | ^~~~~~
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.ascii;
      | ^~~~~~
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.bigint;
      | ^~~~~~
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.complex;
      | ^~~~~~
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.container;
      | ^~~~~~
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.conv;
      | ^~~~~~
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.functional;
      | ^~~~~~
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.math;
      | ^~~~~~
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.range;
      | ^~~~~~
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.stdio;
      | ^~~~~~
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.string;
      | ^~~~~~
a.cc:12:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:13:1: error: 'import' does not name a type
   13 | import std.typecons;
      | ^~~~~~
a.cc:13:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc: In function 'auto readInts()':
a.cc:16:22: error: 'map' was not declared in this scope
   16 |         return array(map!(to!int)(readln().strip().split()));
      |                      ^~~
a.cc:16:16: error: 'array' was not declared in this scope
   16 |         return array(map!(to!int)(readln().strip().split()));
      |                ^~~~~
a.cc: In function 'auto readLongs()':
a.cc:22:22: error: 'map' was not declared in this scope
   22 |         return array(map!(to!long)(readln().strip().split()));
      |                      ^~~
a.cc:22:16: error: 'array' was not declared in this scope
   22 |         return array(map!(to!long)(readln().strip().split()));
      |                ^~~~~
a.cc: At global scope:
a.cc:28:6: error: variable or field 'readlnTo' declared void
   28 | void readlnTo(T...)(ref T t) {
      |      ^~~~~~~~
a.cc:28:15: error: 'T' was not declared in this scope
   28 | void readlnTo(T...)(ref T t) {
      |               ^
a.cc:39:5: error: expected unqualified-id before 'this'
   39 |     this(size_t n) {
      |     ^~~~
a.cc:43:5: error: 'size_t' does not name a type
   43 |     size_t find(size_t n) {
      |     ^~~~~~
a.cc:1:1: note: 'size_t' is defined in header '<cstddef>'; this is probably fixable by adding '#include <cstddef>'
  +++ |+#include <cstddef>
    1 | import std.algorithm;
a.cc:51:16: error: 'size_t' has not been declared
   51 |     void unite(size_t n, size_t m) {
      |                ^~~~~~
a.cc:51:26: error: 'size_t' has not been declared
   51 |     void unite(size_t n, size_t m) {
      |                          ^~~~~~
a.cc:66:5: error: 'size_t' does not name a type
   66 |     size_t[] parent;
      |     ^~~~~~
a.cc:66:5: note: 'size_t' is defined in header '<cstddef>'; this is probably fixable by adding '#include <cstddef>'
a.cc:67:5: error: 'size_t' does not name a type
   67 |     size_t[] rank;
      |     ^~~~~~
a.cc:67:5: note: 'size_t' is defined in header '<cstddef>'; this is probably fixable by adding '#include <cstddef>'
a.cc: In member function 'void UnionFindTree::unite(int, int)':
a.cc:52:19: error: 'find' was not declared in this scope
   52 |         auto p1 = find(n);
      |                   ^~~~
a.cc:57:12: error: 'rank' was not declared in this scope
   57 |         if(rank[p1] < rank[p2]) {
      |            ^~~~
a.cc:58:13: error: 'swap' was not declared in this scope
   58 |             swap(p1, p2);
      |             ^~~~
a.cc:60:12: error: 'rank' was not declared in this scope
   60 |         if(rank[p1] == rank[p2]) {
      |            ^~~~
a.cc:63:9: error: 'parent' was not declared in this scope
   63 |         parent[p2] = p1;
      |         ^~~~~~
a.cc: At global scope:
a.cc:70:5: error: expected primary-expression before 'auto'
   70 |     auto uft = new UnionFindTree(10);
      |     ^~~~
a.cc:70:5: error: expected '}' before 'auto'
a.cc:69:10: note: to match this '{'
   69 | unittest {
      |          ^
a.cc:70:5: error: expected ',' or ';' before 'auto'
   70 |     auto uft = new UnionFindTree(10);
      |     ^~~~
a.cc:71:12: error: expected constructor, destructor, or type conversion before '(' token
   71 |     foreach(i; iota(10)) {
      |            ^
a.cc:71:20: error: expected constructor, destructor, or type conversion before '(' token
   71 |     foreach(i; iota(10)) {
      |                    ^
a.cc:74:12: error: expected constructor, destructor, or type conversion before '(' token
   74 |     foreach(i; iota(10).filter!(a => a%3 == 0).drop(1)) {
      |            ^
a.cc:74:20: error: expected constructor, destructor, or type conversion before '(' token
   74 |     foreach(i; iota(10).filter!(a => a%3 == 0).drop(1)) {
      |                    ^
a.cc:77:12: error: expected constructor, destructor, or type conversion before '(' token
   77 |     foreach(i; iota(10).filter!(a => a%3 == 0)) {
      |            ^
a.cc:77:20: error: expected constructor, destructor, or type conversion before '(' token
   77 |     foreach(i; iota(10).filter!(a => a%3 == 0)) {
      |                    ^
a.cc:80:12: error: expected constructor, destructor, or type conversion before '(' token
   80 |     foreach(i; iota(10).filter!(a => a%3 != 0)) {
      |            ^
a.cc:80:20: error: expected constructor, destructor, or type conversion before '(' token
   80 |     foreach(i; iota(10).filter!(a => a%3 != 0)) {
      |                    ^
a.cc:83:1: error: expected declaration before '}' token
   83 | }
      | ^
a.cc:86:26: error: expected ')' before ',' token
   86 | class BinaryIndexedTree(T, alias F = "a + b") if(is(typeof(binaryFun!F))) {
      |                        ~ ^
      |                          )
a.cc:86:34: error: expected initializer before 'F'
   86 | class BinaryIndexedTree(T, alias F = "a + b") if(is(typeof(binaryFun!F))) {
      |                                  ^
a.cc:125:1: error: 'unittest' does not name a type
  125 | unittest {
      | ^~~~~~~~
a.cc:150:1: error: 'unittest' does not name a type
  150 | unittest {
      | ^~~~~~~~
a.cc:177:10: error: ISO C++ forbids declaration of 'Flow_Dinic' with no type [-fpermissive]
  177 | template Flow_Dinic() {
      |          ^~~~~~~~~~
a.cc:177:21: error: 'Flow_Dinic' is not a template function
  177 | template Flow_Dinic() {
      |                     ^
a.cc:177:22: error: expected ';' before '{' token
  177 | template Flow_Dinic() {
      |                      ^~
      |                      ;
a.cc:260:6: error: use of enum 'real' without previous declaration
  260 | enum real eps = 1e-10;
      |      ^~~~
a.cc:262:6: error: expected identifier before 'long'
  262 | enum long mod = 1_000_000_000 + 7;
      |      ^~~~
a.cc:262:17: error: unable to find numeric literal operator 'operator""_000_000_000'
  262 | enum long mod = 1_000_000_000 + 7;
      |                 ^~~~~~~~~~~~~
a.cc:264:1: error: '::main' must return 'int'
  264 | void main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:266:3: error: 'readlnTo' was not declared in this scope
  266 |   readlnTo(a, b);
      |   ^~~~~~~~
a.cc:268:11: error: 'i' was not declared in this scope
  268 |   foreach(i; iota(1, 13)) {
      |           ^
a.cc:268:14: error: 'iota' was not declared in this scope
  268 |   foreach(i; iota(1, 13)) {
      |              ^~~~
a.cc:273:3: error: 'writeln' was not declared in this scope
  273 |   writeln(ans);
      |   ^~~~~~~