Language: C


def main():
    for _ in inputt(1):
        n,  = inputi()
        A = inputl()
        L = [0] * (n + 1)
        for a in A:
            L[a] += 1
        print("\n".join(map(str, L[1:])))


# region M


# region import
# 所有import部分

from math import *
from heapq import *
from itertools import *
from functools import reduce, lru_cache, partial
from collections import Counter, defaultdict
import re, copy, operator, cmath
import sys, io, os, builtins
sys.setrecursionlimit(1000)

# endregion

# region fastio
# 快速io，能提升大量时间

BUFSIZE = 8192
class FastIO(io.IOBase):
    newlines = 0
    def __init__(self, file):
        self._fd = file.fileno()
        self.buffer = io.BytesIO()
        self.writable = "x" in file.mode or "r" not in file.mode
        self.write = self.buffer.write if self.writable else None
    def read(self):
        while True:
            b = os.read(self._fd, max(os.fstat(self._fd).st_size, BUFSIZE))
            if not b:
                break
            ptr = self.buffer.tell()
            self.buffer.seek(0, 2), self.buffer.write(b), self.buffer.seek(ptr)
        self.newlines = 0
        return self.buffer.read()
    def readline(self):
        while self.newlines == 0:
            b = os.read(self._fd, max(os.fstat(self._fd).st_size, BUFSIZE))
            self.newlines = b.count(b"\n") + (not b)
            ptr = self.buffer.tell()
            self.buffer.seek(0, 2), self.buffer.write(b), self.buffer.seek(ptr)
        self.newlines -= 1
        return self.buffer.readline()
    def flush(self):
        if self.writable:
            os.write(self._fd, self.buffer.getvalue())
            self.buffer.truncate(0), self.buffer.seek(0)
class IOWrapper(io.IOBase):
    def __init__(self, file):
        self.buffer = FastIO(file)
        self.flush = self.buffer.flush
        self.writable = self.buffer.writable
        self.write = lambda s: self.buffer.write(s.encode("ascii"))
        self.read = lambda: self.buffer.read().decode("ascii")
        self.readline = lambda: self.buffer.readline().decode("ascii")
def print(*args, **kwargs):
    sys.stdout.write(kwargs.pop("split", " ").join(map(str, args)))
    sys.stdout.write(kwargs.pop("end", "\n"))
sys.stdin, sys.stdout = IOWrapper(sys.stdin), IOWrapper(sys.stdout)
input = lambda: sys.stdin.readline().rstrip()
inputt = lambda t = 0: range(t) if t else range(int(input()))
inputs = lambda: input().split()
inputi = lambda: map(int, inputs())
inputl = lambda t = 0, k = inputi: map(list, (k() for _ in range(t))) if t else list(k())

# endregion

# region bisect
# 二分搜索，标准库没有函数参数

def len(a):
    if isinstance(a, range):
        return -((a.start - a.stop) // a.step)
    return builtins.len(a)
def bisect_left(a, x, key = None, lo = 0, hi = None):
    if lo < 0: lo = 0
    if hi == None: hi = len(a)
    if key == None: key = do_nothing
    while lo < hi:
        mid = (lo + hi) // 2
        if key(a[mid]) < x: lo = mid + 1
        else: hi = mid
    return lo
def bisect_right(a, x, key = None, lo = 0, hi = None):
    if lo < 0: lo = 0
    if hi == None: hi = len(a)
    if key == None: key = do_nothing
    while lo < hi:
        mid = (lo + hi) // 2
        if x < key(a[mid]): hi = mid
        else: lo = mid + 1
    return lo
def insort_left(a, x, key = None, lo = 0, hi = None):
    lo = bisect_left(a, x, key, lo, hi)
    a.insert(lo, x)
def insort_right(a, x, key = None, lo = 0, hi = None):
    lo = bisect_right(a, x, key, lo, hi)
    a.insert(lo, x)
do_nothing = lambda x: x
bisect = bisect_right
insort = insort_right
def index(a, x, default = None, key = None, lo = 0, hi = None):
    if lo < 0: lo = 0
    if hi == None: hi = len(a)
    if key == None: key = do_nothing
    i = bisect_left(a, x, key, lo, hi)
    if lo <= i < hi and key(a[i]) == x: return a[i]
    if default != None: return default
    raise ValueError
def find_lt(a, x, default = None, key = None, lo = 0, hi = None):
    if lo < 0: lo = 0
    if hi == None: hi = len(a)
    i = bisect_left(a, x, key, lo, hi)
    if lo < i <= hi: return a[i - 1]
    if default != None: return default
    raise ValueError
def find_le(a, x, default = None, key = None, lo = 0, hi = None):
    if lo < 0: lo = 0
    if hi == None: hi = len(a)
    i = bisect_right(a, x, key, lo, hi)
    if lo < i <= hi: return a[i - 1]
    if default != None: return default
    raise ValueError
def find_gt(a, x, default = None, key = None, lo = 0, hi = None):
    if lo < 0: lo = 0
    if hi == None: hi = len(a)
    i = bisect_right(a, x, key, lo, hi)
    if lo <= i < hi: return a[i]
    if default != None: return default
    raise ValueError
def find_ge(a, x, default = None, key = None, lo = 0, hi = None):
    if lo < 0: lo = 0
    if hi == None: hi = len(a)
    i = bisect_left(a, x, key, lo, hi)
    if lo <= i < hi: return a[i]
    if default != None: return default
    raise ValueError

# endregion

# region csgraph
# 稀疏矩阵 图论部分
class Tree:
    def __init__(n):
        self._n = n
        self._conn = [[] for _ in range(n)]
        self._list = [0] * n
    def connect(a, b):
        pass

# endregion

# region ntheory
# number theory 数论部分
class Sieve:
    def __init__(self):
        self._n = 6
        self._list = [2, 3, 5, 7, 11, 13]
    def extend(self, n):
        pass


sieve = Sieve()
def isprime(n):
    pass
def prime(n):
    pass
def factorint(n):
    factordict = defaultdict(int)
    for i in sieve:
        if n <= i * i:
            break
        while not n % i:
            factordict[i] += 1
            n //= i
    if n != 1:
        factordict[n] += 1
    return factordict
# endregion

# region main
# main 函数部分

if __name__ == "__main__":
    main()

# endregion


# endregion

Compiler output:
main.c:2:1: error: unknown type name 'def'
    2 | def main():
      | ^~~
main.c: In function 'main':
main.c:2:11: error: expected declaration specifiers before ':' token
    2 | def main():
      |           ^
main.c:12:3: error: invalid preprocessing directive #region
   12 | # region M
      |   ^~~~~~
main.c:15:3: error: invalid preprocessing directive #region
   15 | # region import
      |   ^~~~~~
main.c:16:3: error: invalid preprocessing directive #\U00006240\U00006709import\U000090e8\U00005206
   16 | # 所有import部分
      |   ^~~~~~~~~~~~~~
main.c:27:3: error: invalid preprocessing directive #endregion
   27 | # endregion
      |   ^~~~~~~~~
main.c:29:3: error: invalid preprocessing directive #region
   29 | # region fastio
      |   ^~~~~~
main.c:30:3: error: invalid preprocessing directive #\U00005feb\U0000901fio\U0000ff0c\U000080fd\U000063d0\U00005347\U00005927\U000091cf\U000065f6\U000095f4
   30 | # 快速io，能提升大量时间
      |   ^~~~~~~~~~~~~~~~~~~~~~
main.c:79:3: error: invalid preprocessing directive #endregion
   79 | # endregion
      |   ^~~~~~~~~
main.c:81:3: error: invalid preprocessing directive #region
   81 | # region bisect
      |   ^~~~~~
main.c:82:3: error: invalid preprocessing directive #\U00004e8c\U00005206\U0000641c\U00007d22\U0000ff0c\U00006807\U000051c6\U00005e93\U00006ca1\U00006709\U000051fd\U00006570\U000053c2\U00006570
   82 | # 二分搜索，标准库没有函数参数
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:152:3: error: invalid preprocessing directive #endregion
  152 | # endregion
      |   ^~~~~~~~~
main.c:154:3: error: invalid preprocessing directive #region
  154 | # region csgraph
      |   ^~~~~~
main.c:155:3: error: invalid preprocessing directive #\U00007a00\U0000758f\U000077e9\U00009635
  155 | # 稀疏矩阵 图论部分
      |   ^~~~~~~~
main.c:164:3: error: invalid preprocessing directive #endregion
  164 | # endregion
      |   ^~~~~~~~~
main.c:166:3: error: invalid preprocessing directive #region
  166 | # region ntheory
      |   ^~~~~~
main.c:167:3: error: invalid preprocessing directive #number
  167 | # number theory 数论部分
      |   ^~~~~~
main.c:192:3: error: invalid preprocessing directive #endregion
  192 | # endregion
      |   ^~~~~~~~~
main.c:194:3: error: invalid preprocessing directive #region
  194 | # region main
      |   ^~~~~~
main.c:195:3: error: invalid preprocessing directive #main
  195 | # main 函数部分
      |   ^~~~
main.c:200:3: error: invalid preprocessing directive #endregion
  200 | # endregion
      |   ^~~~~~~~~
main.c:203:3: error: invalid preprocessing directive #endregion
  203 | # endregion
      |   ^~~~~~~~~