Language: C++

using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;

class A {
    static StreamWriter Out = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
    static void Main(string[] args) {
        int X, Y, Z;
        Input(out X, out Y, out Z);
        Print(Z, X, Y);
        Out.Flush();
    }
    static T ChangeT<T>(string s) => (T)Convert.ChangeType(s, typeof(T));
    static void Input<A>(out A a) {
        var words = Console.ReadLine().Split(new[] { ' ' }, options: StringSplitOptions.RemoveEmptyEntries);
        a = ChangeT<A>(words[0]);
    }
    static void Input<A, B>(out A a, out B b) {
        var words = Console.ReadLine().Split(new[] { ' ' }, options: StringSplitOptions.RemoveEmptyEntries);
        a = ChangeT<A>(words[0]);
        b = ChangeT<B>(words[1]);
    }
    static void Input<A, B, C>(out A a, out B b, out C c) {
        var words = Console.ReadLine().Split(new[] { ' ' }, options: StringSplitOptions.RemoveEmptyEntries);
        a = ChangeT<A>(words[0]);
        b = ChangeT<B>(words[1]);
        c = ChangeT<C>(words[2]);
    }
    static void Input<A, B, C, D>(out A a, out B b, out C c, out D d) {
        var words = Console.ReadLine().Split(new[] { ' ' }, options: StringSplitOptions.RemoveEmptyEntries);
        a = ChangeT<A>(words[0]);
        b = ChangeT<B>(words[1]);
        c = ChangeT<C>(words[2]);
        d = ChangeT<D>(words[3]);
    }
    static void Input<A, B, C, D, E>(out A a, out B b, out C c, out D d, out E e) {
        var words = Console.ReadLine().Split(new[] { ' ' }, options: StringSplitOptions.RemoveEmptyEntries);
        a = ChangeT<A>(words[0]);
        b = ChangeT<B>(words[1]);
        c = ChangeT<C>(words[2]);
        d = ChangeT<D>(words[3]);
        e = ChangeT<E>(words[4]);
    }
    static void Input<A, B, C, D, E, F>(out A a, out B b, out C c, out D d, out E e, out F f) {
        var words = Console.ReadLine().Split(new[] { ' ' }, options: StringSplitOptions.RemoveEmptyEntries);
        a = ChangeT<A>(words[0]);
        b = ChangeT<B>(words[1]);
        c = ChangeT<C>(words[2]);
        d = ChangeT<D>(words[3]);
        e = ChangeT<E>(words[4]);
        f = ChangeT<F>(words[5]);
    }
    static void Inputs<T>(out T[] array) {
        array = Console.ReadLine().Split(new[] { ' ' }, options: StringSplitOptions.RemoveEmptyEntries).Select(s => ChangeT<T>(s)).ToArray();
    }
    static void Print<T>(T s) => Out.WriteLine(s);
    static void Print<T>(params T[] s) => Out.WriteLine(string.Join(" ", s));
    static void Print<T>(IEnumerable<T> e) => Out.WriteLine(string.Join(" ", e));
}

Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:2:7: error: expected nested-name-specifier before 'System'
    2 | using System.Collections.Generic;
      |       ^~~~~~
a.cc:3:7: error: expected nested-name-specifier before 'System'
    3 | using System.IO;
      |       ^~~~~~
a.cc:4:7: error: expected nested-name-specifier before 'System'
    4 | using System.Linq;
      |       ^~~~~~
a.cc:7:12: error: 'StreamWriter' does not name a type
    7 |     static StreamWriter Out = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
      |            ^~~~~~~~~~~~
a.cc:8:22: error: 'string' has not been declared
    8 |     static void Main(string[] args) {
      |                      ^~~~~~
a.cc:8:31: error: expected ',' or '...' before 'args'
    8 |     static void Main(string[] args) {
      |                               ^~~~
a.cc:14:12: error: 'T' does not name a type
   14 |     static T ChangeT<T>(string s) => (T)Convert.ChangeType(s, typeof(T));
      |            ^
a.cc:15:17: error: variable or field 'Input' declared void
   15 |     static void Input<A>(out A a) {
      |                 ^~~~~
a.cc:15:17: error: expected ';' at end of member declaration
   15 |     static void Input<A>(out A a) {
      |                 ^~~~~
      |                      ;
a.cc:15:22: error: expected unqualified-id before '<' token
   15 |     static void Input<A>(out A a) {
      |                      ^
a.cc:19:17: error: variable or field 'Input' declared void
   19 |     static void Input<A, B>(out A a, out B b) {
      |                 ^~~~~
a.cc:19:17: error: expected ';' at end of member declaration
   19 |     static void Input<A, B>(out A a, out B b) {
      |                 ^~~~~
      |                      ;
a.cc:19:22: error: expected unqualified-id before '<' token
   19 |     static void Input<A, B>(out A a, out B b) {
      |                      ^
a.cc:24:17: error: variable or field 'Input' declared void
   24 |     static void Input<A, B, C>(out A a, out B b, out C c) {
      |                 ^~~~~
a.cc:24:17: error: expected ';' at end of member declaration
   24 |     static void Input<A, B, C>(out A a, out B b, out C c) {
      |                 ^~~~~
      |                      ;
a.cc:24:22: error: expected unqualified-id before '<' token
   24 |     static void Input<A, B, C>(out A a, out B b, out C c) {
      |                      ^
a.cc:30:17: error: variable or field 'Input' declared void
   30 |     static void Input<A, B, C, D>(out A a, out B b, out C c, out D d) {
      |                 ^~~~~
a.cc:30:17: error: expected ';' at end of member declaration
   30 |     static void Input<A, B, C, D>(out A a, out B b, out C c, out D d) {
      |                 ^~~~~
      |                      ;
a.cc:30:22: error: expected unqualified-id before '<' token
   30 |     static void Input<A, B, C, D>(out A a, out B b, out C c, out D d) {
      |                      ^
a.cc:37:17: error: variable or field 'Input' declared void
   37 |     static void Input<A, B, C, D, E>(out A a, out B b, out C c, out D d, out E e) {
      |                 ^~~~~
a.cc:37:17: error: expected ';' at end of member declaration
   37 |     static void Input<A, B, C, D, E>(out A a, out B b, out C c, out D d, out E e) {
      |                 ^~~~~
      |                      ;
a.cc:37:22: error: expected unqualified-id before '<' token
   37 |     static void Input<A, B, C, D, E>(out A a, out B b, out C c, out D d, out E e) {
      |                      ^
a.cc:45:17: error: variable or field 'Input' declared void
   45 |     static void Input<A, B, C, D, E, F>(out A a, out B b, out C c, out D d, out E e, out F f) {
      |                 ^~~~~
a.cc:45:17: error: expected ';' at end of member declaration
   45 |     static void Input<A, B, C, D, E, F>(out A a, out B b, out C c, out D d, out E e, out F f) {
      |                 ^~~~~
      |                      ;
a.cc:45:22: error: expected unqualified-id before '<' token
   45 |     static void Input<A, B, C, D, E, F>(out A a, out B b, out C c, out D d, out E e, out F f) {
      |                      ^
a.cc:54:17: error: variable or field 'Inputs' declared void
   54 |     static void Inputs<T>(out T[] array) {
      |                 ^~~~~~
a.cc:54:17: error: expected ';' at end of member declaration
   54 |     static void Inputs<T>(out T[] array) {
      |                 ^~~~~~
      |                       ;
a.cc:54:23: error: expected unqualified-id before '<' token
   54 |     static void Inputs<T>(out T[] array) {
      |                       ^
a.cc:57:17: error: variable or field 'Print' declared void
   57 |     static void Print<T>(T s) => Out.WriteLine(s);
      |                 ^~~~~
a.cc:57:17: error: expected ';' at end of member declaration
   57 |     static void Print<T>(T s) => Out.WriteLine(s);
      |                 ^~~~~
      |                      ;
a.cc:57:22: error: expected unqualified-id before '<' token
   57 |     static void Print<T>(T s) => Out.WriteLine(s);
      |                      ^
a.cc:58:17: error: variable or field 'Print' declared void
   58 |     static void Print<T>(params T[] s) => Out.WriteLine(string.Join(" ", s));
      |                 ^~~~~
a.cc:58:17: error: expected ';' at end of member declaration
   58 |     static void Print<T>(params T[] s) => Out.WriteLine(string.Join(" ", s));
      |                 ^~~~~
      |                      ;
a.cc:58:22: error: expected unqualified-id before '<' token
   58 |     static void Print<T>(params T[] s) => Out.WriteLine(string.Join(" ", s));
      |                      ^
a.cc:59:17: error: variable or field 'Print' declared void
   59 |     static void Print<T>(IEnumerable<T> e) => Out.WriteLine(string.Join(" ", e));
      |                 ^~~~~
a.cc:59:17: error: expected ';' at end of member declaration
   59 |     static void Print<T>(IEnumerable<T> e) => Out.WriteLine(string.Join(" ", e));
      |                 ^~~~~
      |                      ;
a.cc:59:22: error: expected unqualified-id before '<' token
   59 |     static void Print<T>(IEnumerable<T> e) => Out.WriteLine(string.Join(" ", e));
      |                      ^
a.cc:60:2: error: expected ';' after class definition
   60 | }
      |  ^
      |  ;
a.cc: In static member function 'static void A::Main(int*)':
a.cc:10:15: error: 'out' was not declared in this scope
   10 |         Input(out X, out Y, out Z);
      |               ^~~
a.cc:10:26: error: expected ')' before 'Y'
   10 |         Input(out X, out Y, out Z);
      |                          ^
a.cc:10:14: note: to match this '('
   10 |         Input(out X, out Y, out Z);
      |              ^
a.cc:10:33: error: expected ')' before 'Z'
   10 |         Input(out X, out Y, out Z);
      |                                 ^
a.cc:10:14: note: to match this '('
   10 |         Input(out X, out Y, out Z);
      |              ^
a.cc:10:9: error: 'Input' was not declared in this scope
   10 |         Input(out X, out Y, out Z);
      |         ^~~~~
a.cc:11:9: error: 'Print' was not declared in this scope; did you mean 'int'?
   11 |         Print(Z, X, Y);
      |         ^~~~~
      |         int
a.cc:12:9: error: 'Out' was not declared in this scope
   12 |         Out.Flush();
      |         ^~~