Language: C++

//dlang template---{{{
import std.stdio;
import std.conv;
import std.string;
import std.array;
import std.algorithm;
import std.typecons;
import std.math;
import std.range;

// MIT-License https://github.com/kurokoji/nephele
class Scanner
{
  import std.stdio : File, stdin;
  import std.conv : to;
  import std.array : split;
  import std.string;
  import std.traits : isSomeString;

  private File file;
  private char[][] str;
  private size_t idx;

  this(File file = stdin)
  {
    this.file = file;
    this.idx = 0;
  }

  this(StrType)(StrType s, File file = stdin) if (isSomeString!(StrType))
  {
    this.file = file;
    this.idx = 0;
    fromString(s);
  }

  private char[] next()
  {
    if (idx < str.length)
    {
      return str[idx++];
    }

    char[] s;
    while (s.length == 0)
    {
      s = file.readln.strip.to!(char[]);
    }

    str = s.split;
    idx = 0;

    return str[idx++];
  }

  T next(T)()
  {
    return next.to!(T);
  }

  T[] nextArray(T)(size_t len)
  {
    T[] ret = new T[len];

    foreach (ref c; ret)
    {
      c = next!(T);
    }

    return ret;
  }

  void scan()()
  {
  }

  void scan(T, S...)(ref T x, ref S args)
  {
    x = next!(T);
    scan(args);
  }

  void fromString(StrType)(StrType s) if (isSomeString!(StrType))
  {
    str ~= s.to!(char[]).strip.split;
  }
}

//Digit count---{{{
int DigitNum(int num) {
  int digit = 0;

  while (num != 0) {
    num /= 10;
    digit++;
  }

  return digit;
}
//}}}
//}}}

void main() {
  Scanner sc = new Scanner;

  int A, B, C;

  sc.scan(A, B, C);

  if (B / A < C) {
    writeln(B / A);
  } else {
    writeln(C);
  }
}


Compiler output:
a.cc:2:1: error: 'import' does not name a type
    2 | import std.stdio;
      | ^~~~~~
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.conv;
      | ^~~~~~
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.string;
      | ^~~~~~
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.array;
      | ^~~~~~
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.algorithm;
      | ^~~~~~
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.typecons;
      | ^~~~~~
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:14:3: error: 'import' does not name a type
   14 |   import std.stdio : File, stdin;
      |   ^~~~~~
a.cc:14:3: note: C++20 'import' only available with '-fmodules-ts'
a.cc:15:3: error: 'import' does not name a type
   15 |   import std.conv : to;
      |   ^~~~~~
a.cc:15:3: note: C++20 'import' only available with '-fmodules-ts'
a.cc:16:3: error: 'import' does not name a type
   16 |   import std.array : split;
      |   ^~~~~~
a.cc:16:3: note: C++20 'import' only available with '-fmodules-ts'
a.cc:17:3: error: 'import' does not name a type
   17 |   import std.string;
      |   ^~~~~~
a.cc:17:3: note: C++20 'import' only available with '-fmodules-ts'
a.cc:18:3: error: 'import' does not name a type
   18 |   import std.traits : isSomeString;
      |   ^~~~~~
a.cc:18:3: note: C++20 'import' only available with '-fmodules-ts'
a.cc:20:10: error: expected ':' before 'File'
   20 |   private File file;
      |          ^~~~~
      |          :
a.cc:20:11: error: 'File' does not name a type
   20 |   private File file;
      |           ^~~~
a.cc:21:10: error: expected ':' before 'char'
   21 |   private char[][] str;
      |          ^~~~~
      |          :
a.cc:21:15: error: expected unqualified-id before '[' token
   21 |   private char[][] str;
      |               ^
a.cc:22:10: error: expected ':' before 'size_t'
   22 |   private size_t idx;
      |          ^~~~~~~
      |          :
a.cc:22:11: error: 'size_t' does not name a type
   22 |   private size_t idx;
      |           ^~~~~~
a.cc:1:1: note: 'size_t' is defined in header '<cstddef>'; this is probably fixable by adding '#include <cstddef>'
  +++ |+#include <cstddef>
    1 | //dlang template---{{{
a.cc:24:3: error: expected unqualified-id before 'this'
   24 |   this(File file = stdin)
      |   ^~~~
a.cc:30:3: error: expected unqualified-id before 'this'
   30 |   this(StrType)(StrType s, File file = stdin) if (isSomeString!(StrType))
      |   ^~~~
a.cc:37:10: error: expected ':' before 'char'
   37 |   private char[] next()
      |          ^~~~~
      |          :
a.cc:37:15: error: expected unqualified-id before '[' token
   37 |   private char[] next()
      |               ^
a.cc:56:3: error: 'T' does not name a type
   56 |   T next(T)()
      |   ^
a.cc:61:3: error: 'T' does not name a type
   61 |   T[] nextArray(T)(size_t len)
      |   ^
a.cc:73:3: error: 'scan' declared as function returning a function
   73 |   void scan()()
      |   ^~~~
a.cc:77:13: error: 'T' has not been declared
   77 |   void scan(T, S...)(ref T x, ref S args)
      |             ^
a.cc:77:16: error: 'S' has not been declared
   77 |   void scan(T, S...)(ref T x, ref S args)
      |                ^
a.cc:77:22: error: 'ref' has not been declared
   77 |   void scan(T, S...)(ref T x, ref S args)
      |                      ^~~
a.cc:77:28: error: expected ',' or '...' before 'x'
   77 |   void scan(T, S...)(ref T x, ref S args)
      |                            ^
a.cc:77:3: error: 'scan' declared as function returning a function
   77 |   void scan(T, S...)(ref T x, ref S args)
      |   ^~~~
a.cc:83:19: error: 'StrType' has not been declared
   83 |   void fromString(StrType)(StrType s) if (isSomeString!(StrType))
      |                   ^~~~~~~
a.cc:83:28: error: 'StrType' has not been declared
   83 |   void fromString(StrType)(StrType s) if (isSomeString!(StrType))
      |                            ^~~~~~~
a.cc:83:3: error: 'fromString' declared as function returning a function
   83 |   void fromString(StrType)(StrType s) if (isSomeString!(StrType))
      |   ^~~~
a.cc:83:37: error: expected ';' at end of member declaration
   83 |   void fromString(StrType)(StrType s) if (isSomeString!(StrType))
      |                                     ^
      |                                      ;
a.cc:83:39: error: expected unqualified-id before 'if'
   83 |   void fromString(StrType)(StrType s) if (isSomeString!(StrType))
      |                                       ^~
a.cc:87:2: error: expected ';' after class definition
   87 | }
      |  ^
      |  ;
a.cc:103:1: error: '::main' must return 'int'
  103 | void main() {
      | ^~~~
a.cc: In function 'int main()':
a.cc:104:16: error: conversion from 'Scanner*' to non-scalar type 'Scanner' requested
  104 |   Scanner sc = new Scanner;
      |                ^~~~~~~~~~~
a.cc:108:6: error: 'class Scanner' has no member named 'scan'
  108 |   sc.scan(A, B, C);
      |      ^~~~
a.cc:111:5: error: 'writeln' was not declared in this scope
  111 |     writeln(B / A);
      |     ^~~~~~~
a.cc:113:5: error: 'writeln' was not declared in this scope
  113 |     writeln(C);
      |     ^~~~~~~