Language: C++

using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Text;
using System.Globalization;
using System.Numerics;

class Myon
{
    //chokudaiさんのコードをコピペ
    static Scanner cin;
    public Myon() { }
    public static int Main()
    {
        //Console.SetOut(new Printer(Console.OpenStandardOutput()));
        cin = new Scanner();
        new Myon().calc();
        Console.Read();

        return 0;
    }


    public void calc()
    {
        int n = cin.nextInt();
        int[] a = new int[n];
        for (int i = 0; i < n; i++) a[i] = cin.nextInt();
        int[] b = new int[n];

        for(int i = 0; i < n; i++)
        {
            b[a[i] - 1] = i+1; 
        }

        for (int i = 0; i < n; i++) { Console.Write(b[i]); Console.Write(" "); }

    }


    

    public void backetSort(ref int[] a)
    {
        //max a << a.len に対して有効なソート
        //よってa = int[] とする
        long n = a.Length;
        var count = new int[n];
        var loc = new long[n];//loc[i] は i が終わる 位置 max index where c[index] = loc[i]
        for (long i = 0; i < n; i++) count[a[i]]++;
        loc[0] = count[0] - 1;
        for (long i = 0; i < n-1; i++) loc[i+1] = loc[i] + count[i+1]; 
        long index = 0;

        for(int i = 0; i < n; i++)
        {
            while (index <= loc[i]) a[index++] = i; //incex <= loc[i] == index < loc[i] + 1
        }
    }

    public static void showL(long n) { Console.WriteLine(n); }
    public static void showL(string s) { Console.WriteLine(s); }
}

class Printer : StreamWriter
{
    public override IFormatProvider FormatProvider { get { return CultureInfo.InvariantCulture; } }
    public Printer(Stream stream) : base(stream, new UTF8Encoding(false, true)) { }
    public Printer(Stream stream, Encoding encoding) : base(stream, encoding) { }
}

class Scanner
{
    string[] s;
    int i;

    char[] cs = new char[] { ' ' };

    public Scanner()
    {
        s = new string[0];
        i = 0;
    }

    public string next()
    {
        while (i >= s.Length)
        {
            string st = Console.ReadLine();
            while (st == "") st = Console.ReadLine();
            s = st.Split(cs, StringSplitOptions.RemoveEmptyEntries);
            i = 0;
        }
        return s[i++];
    }

    public int nextInt()
    {
        return int.Parse(next());
    }

    public long nextLong()
    {
        return long.Parse(next());
    }

    public double nextDouble()
    {
        return double.Parse(next());
    }

}

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;
      |       ^~~~~~
a.cc:3:7: error: expected nested-name-specifier before 'System'
    3 | using System.Collections.Generic;
      |       ^~~~~~
a.cc:4:7: error: expected nested-name-specifier before 'System'
    4 | using System.Linq;
      |       ^~~~~~
a.cc:5:7: error: expected nested-name-specifier before 'System'
    5 | using System.IO;
      |       ^~~~~~
a.cc:6:7: error: expected nested-name-specifier before 'System'
    6 | using System.Text;
      |       ^~~~~~
a.cc:7:7: error: expected nested-name-specifier before 'System'
    7 | using System.Globalization;
      |       ^~~~~~
a.cc:8:7: error: expected nested-name-specifier before 'System'
    8 | using System.Numerics;
      |       ^~~~~~
a.cc:13:12: error: 'Scanner' does not name a type
   13 |     static Scanner cin;
      |            ^~~~~~~
a.cc:14:11: error: expected ':' before 'Myon'
   14 |     public Myon() { }
      |           ^~~~~
      |           :
a.cc:15:11: error: expected ':' before 'static'
   15 |     public static int Main()
      |           ^~~~~~~
      |           :
a.cc:26:11: error: expected ':' before 'void'
   26 |     public void calc()
      |           ^~~~~
      |           :
a.cc:45:11: error: expected ':' before 'void'
   45 |     public void backetSort(ref int[] a)
      |           ^~~~~
      |           :
a.cc:45:28: error: 'ref' has not been declared
   45 |     public void backetSort(ref int[] a)
      |                            ^~~
a.cc:45:28: error: two or more data types in declaration of 'parameter'
a.cc:45:37: error: expected ')' before 'a'
   45 |     public void backetSort(ref int[] a)
      |                           ~         ^~
      |                                     )
a.cc:45:36: error: expected ';' at end of member declaration
   45 |     public void backetSort(ref int[] a)
      |                                    ^
      |                                     ;
a.cc:45:38: error: 'a' does not name a type
   45 |     public void backetSort(ref int[] a)
      |                                      ^
a.cc:63:11: error: expected ':' before 'static'
   63 |     public static void showL(long n) { Console.WriteLine(n); }
      |           ^~~~~~~
      |           :
a.cc:64:11: error: expected ':' before 'static'
   64 |     public static void showL(string s) { Console.WriteLine(s); }
      |           ^~~~~~~
      |           :
a.cc:64:30: error: 'string' has not been declared
   64 |     public static void showL(string s) { Console.WriteLine(s); }
      |                              ^~~~~~
a.cc:65:2: error: expected ';' after class definition
   65 | }
      |  ^
      |  ;
a.cc: In static member function 'static int Myon::Main()':
a.cc:18:9: error: 'cin' was not declared in this scope
   18 |         cin = new Scanner();
      |         ^~~
a.cc:18:19: error: expected type-specifier before 'Scanner'
   18 |         cin = new Scanner();
      |                   ^~~~~~~
a.cc:19:19: error: expected ';' before '.' token
   19 |         new Myon().calc();
      |                   ^
a.cc:20:9: error: 'Console' was not declared in this scope
   20 |         Console.Read();
      |         ^~~~~~~
a.cc: In member function 'void Myon::calc()':
a.cc:28:17: error: 'cin' was not declared in this scope
   28 |         int n = cin.nextInt();
      |                 ^~~
a.cc:29:12: error: structured binding declaration cannot have type 'int'
   29 |         int[] a = new int[n];
      |            ^~
a.cc:29:12: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:29:12: error: empty structured binding declaration
a.cc:29:15: error: expected initializer before 'a'
   29 |         int[] a = new int[n];
      |               ^
a.cc:30:37: error: 'a' was not declared in this scope
   30 |         for (int i = 0; i < n; i++) a[i] = cin.nextInt();
      |                                     ^
a.cc:31:12: error: structured binding declaration cannot have type 'int'
   31 |         int[] b = new int[n];
      |            ^~
a.cc:31:12: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:31:12: error: empty structured binding declaration
a.cc:31:15: error: expected initializer before 'b'
   31 |         int[] b = new int[n];
      |               ^
a.cc:35:13: error: 'b' was not declared in this scope
   35 |             b[a[i] - 1] = i+1;
      |             ^
a.cc:35:15: error: 'a' was not declared in this scope
   35 |             b[a[i] - 1] = i+1;
      |               ^
a.cc:38:39: error: 'Console' was not declared in this scope
   38 |         for (int i = 0; i < n; i++) { Console.Write(b[i]); Console.Write(" "); }
      |                                       ^~~~~~~
a.cc:38:53: error: 'b' was not declared in this scope
   38 |         for (int i = 0; i < n; i++) { Console.Write(b[i]); Console.Write(" "); }
      |                                                     ^
a.cc: In static member function 'static void Myon::showL(long int)':
a.cc:63:40: error: 'Console' was not declared in this scope
   63 |     public static void showL(long n) { Console.WriteLine(n); }
      |                                        ^~~~~~~
a.cc: In static member function 'static void Myon::showL(int)':
a.cc:64:42: error: 'Console' was not declared in this scope
   64 |     public static void showL(string s) { Console.WriteLine(s); }
      |                                          ^~~~~~~
a.cc: At global scope:
a.cc:68:1: error: expected class-name before '{' token
   68 | {
      | ^
a.cc:69:11: error: expected ':' before 'override'
   69 |     public override IFormatProvider FormatProvider { get { return CultureInfo.InvariantCulture; } }
      |           ^~~~~~~~~
      |           :
a.cc:69:12: error: 'override' does not name a type
   69 |     public override IFormatProvider FormatProvider { get { return CultureInfo.InvariantCulture; } }
      |            ^~~~~~~~
a.cc:70:11: error: expected ':' before 'Printer'
   70 |     public Printer(Stream stream) : base(stream, new UTF8Encoding(false, true)) { }
      |           ^~~~~~~~
      |           :
a.cc:70:26: error: expected ')' before 'stream'
   70 |     public Printer(Stream stream) : base(stream, new UTF8Encoding(false, true)) { }
      |                   ~      ^~~~~~~
      |                          )
a.cc:71:11: error: expected ':' before 'Printer'
   71 |     public Printer(Stream stream, Encoding encoding) : base(stream, encoding) { }
      |           ^~~~~~~~
      |           :
a.cc:71:26: error: expected ')' before 'stream'
   71 |     public Printer(Stream stream, Encoding encoding) : base(stream, encoding) { }
      |                   ~      ^~~~~~~
      |                          )
a.cc:72:2: error: expected ';' after class definition
   72 | }
      |  ^
      |  ;
a.cc:76:5: error: 'string' does not name a type
   76 |     string[] s;
      |     ^~~~~~
a.cc:79:9: error: expected unqualified-id before '[' token
   79 |     char[] cs = new char[] { ' ' };
      |         ^
a.cc:81:11: error: expected ':' before 'Scanner'
   81 |     public Scanner()
      |           ^~~~~~~~
      |           :
a.cc:87:11: error: expected ':' before 'string'
   87 |     public string next()
      |           ^~~~~~~
      |           :
a.cc:87:12: error: 'string' does not name a type
   87 |     public string next()
      |            ^~~~~~
a.cc:99:11: error: expected ':' before 'int'
   99 |     public int nextInt()
      |           ^~~~
      |           :
a.cc:104:11: error: expected ':' before 'long'
  104 |     public long nextLong()
      |           ^~~~~
      |           :
a.cc:109:11: error: expected ':' before 'double'
  109 |     public double nextDouble()
      |           ^~~~~~~
      |           :
a.cc:114:2: error: expected ';' after class definition
  114 | }
      |  ^
      |  ;
a.cc: In constructor 'Scanner::Scanner()':
a.cc:83:9: error: 's' was not declared in this scope
   83 |         s = new string[0];
      |         ^
a.cc:83:17: error: 'string' does not name a type
   83 |         s = new string[0];
      |                 ^~~~~~
a.cc: In member function 'int Scanner::nextInt()':
a.cc:101:16: error: expected primary-expression before 'int'
  101 |         return int.Parse(next());
      |                ^~~
a.cc:101:16: error: expected ';' before 'int'
a.cc:101:19: error: expected unqualified-id before '.' token
  101 |         return int.Parse(next());
      |                   ^
a.cc: In member function 'long int Scanner::nextLong()':
a.cc:106:16: error: expected primary-expression before 'long'
  106 |         return long.Parse(next());
      |                ^~~~
a.cc:106:16: error: expected ';' before 'long'
a.cc:106:20: error: expected unqualified-id before '.' token
  106 |         return long.Parse(next());
      |                    ^
a.cc: In member function 'double Scanner::nextDouble()':
a.cc:111:16: error: expected primary-expression before 'double'
  111 |         return double.Parse(next());
      |                ^~~~~~
a.cc:111:16: error: expected ';' before 'double'
a.cc:111:22: error: expected unqualified-id before '.' token
  111 |         return double.Parse(next());
      |                      ^