Language: C++

# ██╗     █████╗ ███╗   ███╗
# ██║    ██╔══██╗████╗ ████║
# ██║    ███████║██╔████╔██║
# ██║    ██╔══██║██║╚██╔╝██║
# ██║    ██║  ██║██║ ╚═╝ ██║
# ╚═╝    ╚═╝  ╚═╝╚═╝     ╚═╝
#
#
# ███╗   ███╗     █████╗     ██████╗     ██╗  ██╗    ██╗    ███╗   ██╗    ████████╗     ██████╗     ███████╗    ██╗  ██╗
# ████╗ ████║    ██╔══██╗    ██╔══██╗    ██║ ██╔╝    ██║    ████╗  ██║    ╚══██╔══╝    ██╔═══██╗    ██╔════╝    ██║  ██║
# ██╔████╔██║    ███████║    ██████╔╝    █████╔╝     ██║    ██╔██╗ ██║       ██║       ██║   ██║    ███████╗    ███████║
# ██║╚██╔╝██║    ██╔══██║    ██╔══██╗    ██╔═██╗     ██║    ██║╚██╗██║       ██║       ██║   ██║    ╚════██║    ██╔══██║
# ██║ ╚═╝ ██║    ██║  ██║    ██║  ██║    ██║  ██╗    ██║    ██║ ╚████║       ██║       ╚██████╔╝    ███████║    ██║  ██║
# ╚═╝     ╚═╝    ╚═╝  ╚═╝    ╚═╝  ╚═╝    ╚═╝  ╚═╝    ╚═╝    ╚═╝  ╚═══╝       ╚═╝        ╚═════╝     ╚══════╝    ╚═╝  ╚═╝
#
#
# ██████╗     ██╗    ████████╗     ██████╗    ██╗  ██╗
# ██╔══██╗    ██║    ╚══██╔══╝    ██╔════╝    ██║  ██║
# ██████╔╝    ██║       ██║       ██║         ███████║
# ██╔══██╗    ██║       ██║       ██║         ██╔══██║
# ██████╔╝    ██║       ██║       ╚██████╗    ██║  ██║
# ╚═════╝     ╚═╝       ╚═╝        ╚═════╝    ╚═╝  ╚═╝
n=int(input())
l=list(map(int,input().split()))
l=[10000]+l
dp=[0]*(n+1)
dp[0]=1e4+1
dp[1]=0
for i in range(2,n+1):
    dp[i]=min(dp[i-1]+abs(l[i]-l[i-1]),dp[i-2]+abs(l[i]-l[i-2]))
print(dp[-1])

Compiler output:
a.cc:1:3: error: extended character █ is not valid in an identifier
    1 | # ██╗     █████╗ ███╗   ███╗
      |   ^
a.cc:1:3: error: extended character █ is not valid in an identifier
a.cc:1:3: error: extended character ╗ is not valid in an identifier
a.cc:1:3: error: invalid preprocessing directive #\U00002588\U00002588\U00002557
    1 | # ██╗     █████╗ ███╗   ███╗
      |   ^~~
a.cc:1:11: error: extended character █ is not valid in an identifier
    1 | # ██╗     █████╗ ███╗   ███╗
      |           ^
a.cc:1:11: error: extended character █ is not valid in an identifier
a.cc:1:11: error: extended character █ is not valid in an identifier
a.cc:1:11: error: extended character █ is not valid in an identifier
a.cc:1:11: error: extended character █ is not valid in an identifier
a.cc:1:11: error: extended character ╗ is not valid in an identifier
a.cc:1:18: error: extended character █ is not valid in an identifier
    1 | # ██╗     █████╗ ███╗   ███╗
      |                  ^
a.cc:1:18: error: extended character █ is not valid in an identifier
a.cc:1:18: error: extended character █ is not valid in an identifier
a.cc:1:18: error: extended character ╗ is not valid in an identifier
a.cc:1:25: error: extended character █ is not valid in an identifier
    1 | # ██╗     █████╗ ███╗   ███╗
      |                         ^
a.cc:1:25: error: extended character █ is not valid in an identifier
a.cc:1:25: error: extended character █ is not valid in an identifier
a.cc:1:25: error: extended character ╗ is not valid in an identifier
a.cc:2:3: error: extended character █ is not valid in an identifier
    2 | # ██║    ██╔══██╗████╗ ████║
      |   ^
a.cc:2:3: error: extended character █ is not valid in an identifier
a.cc:2:3: error: extended character ║ is not valid in an identifier
a.cc:2:3: error: invalid preprocessing directive #\U00002588\U00002588\U00002551
    2 | # ██║    ██╔══██╗████╗ ████║
      |   ^~~
a.cc:2:10: error: extended character █ is not valid in an identifier
    2 | # ██║    ██╔══██╗████╗ ████║
      |          ^
a.cc:2:10: error: extended character █ is not valid in an identifier
a.cc:2:10: error: extended character ╔ is not valid in an identifier
a.cc:2:10: error: extended character ═ is not valid in an identifier
a.cc:2:10: error: extended character ═ is not valid in an identifier
a.cc:2:10: error: extended character █ is not valid in an identifier
a.cc:2:10: error: extended character █ is not valid in an identifier
a.cc:2:10: error: extended character ╗ is not valid in an identifier
a.cc:2:10: error: extended character █ is not valid in an identifier
a.cc:2:10: error: extended character █ is not valid in an identifier
a.cc:2:10: error: extended character █ is not valid in an identifier
a.cc:2:10: error: extended character █ is not valid in an identifier
a.cc:2:10: error: extended character ╗ is not valid in an identifier
a.cc:2:24: error: extended character █ is not valid in an identifier
    2 | # ██║    ██╔══██╗████╗ ████║
      |                        ^
a.cc:2:24: error: extended character █ is not valid in an identifier
a.cc:2:24: error: extended character █ is not valid in an identifier
a.cc:2:24: error: extended character █ is not valid in an identifier
a.cc:2:24: error: extended character ║ is not valid in an identifier
a.cc:3:3: error: extended character █ is not valid in an identifier
    3 | # ██║    ███████║██╔████╔██║
      |   ^
a.cc:3:3: error: extended character █ is not valid in an identifier
a.cc:3:3: error: extended character ║ is not valid in an identifier
a.cc:3:3: error: invalid preprocessing directive #\U00002588\U00002588\U00002551
    3 | # ██║    ███████║██╔████╔██║
      |   ^~~
a.cc:3:10: error: extended character █ is not valid in an identifier
    3 | # ██║    ███████║██╔████╔██║
      |          ^
a.cc:3:10: error: extended character █ is not valid in an identifier
a.cc:3:10: error: extended character █ is not valid in an identifier
a.cc:3:10: error: extended character █ is not valid in an identifier
a.cc:3:10: error: extended character █ is not valid in an identifier
a.cc:3:10: error: extended character █ is not valid in an identifier
a.cc:3:10: error: extended character █ is not valid in an identifier
a.cc:3:10: error: extended character ║ is not valid in an identifier
a.cc:3:10: error: extended character █ is not valid in an identifier
a.cc:3:10: error: extended character █ is not valid in an identifier
a.cc:3:10: error: extended character ╔ is not valid in an identifier
a.cc:3:10: error: extended character █ is not valid in an identifier
a.cc:3:10: error: extended character █ is not valid in an identifier
a.cc:3:10: error: extended character █ is not valid in an identifier
a.cc:3:10: error: extended character █ is not valid in an identifier
a.cc:3:10: error: extended character ╔ is not valid in an identifier
a.cc:3:10: error: extended character █ is not valid in an identifier
a.cc:3:10: error: extended character █ is not valid in an identifier
a.cc:3:10: error: extended character ║ is not valid in an identifier
a.cc:4:3: error: extended character █ is not valid in an identifier
    4 | # ██║    ██╔══██║██║╚██╔╝██║
      |   ^
a.cc:4:3: error: extended character █ is not valid in an identifier
a.cc:4:3: error: extended character ║ is not valid in an identifier
a.cc:4:3: error: invalid preprocessing directive #\U00002588\U00002588\U00002551
    4 | # ██║    ██╔══██║██║╚██╔╝██║
      |   ^~~
a.cc:4:10: error: extended character █ is not valid in an identifier
    4 | # ██║    ██╔══██║██║╚██╔╝██║
      |          ^
a.cc:4:10: error: extended character █ is not valid in an identifier
a.cc:4:10: error: extended character ╔ is not valid in an identifier
a.cc:4:10: error: extended character ═ is not valid in an identifier
a.cc:4:10: error: extended character ═ is not valid in an identifier
a.cc:4:10: error: extended character █ is not valid in an identifier
a.cc:4:10: error: extended character █ is not valid in an identifier
a.cc:4:10: error: extended character ║ is not valid in an identifier
a.cc:4:10: error: extended character █ is not valid in an identifier
a.cc:4:10: error: extended character █ is not valid in an identifier
a.cc:4:10: error: extended character ║ is not valid in an identifier
a.cc:4:10: error: extended character ╚ is not valid in an identifier
a.cc:4:10: error: extended character █ is not valid in an identifier
a.cc:4:10: error: extended character █ is not valid in an identifier
a.cc:4:10: error: extended character ╔ is not valid in an identifier
a.cc:4:10: error: extended character ╝ is not valid in an identifier
a.cc:4:10: error: extended character █ is not valid in an identifier
a.cc:4:10: error: extended character █ is not valid in an identifier
a.cc:4:10: error: extended character ║ is not valid in an identifier
a.cc:5:3: error: extended character █ is not valid in an identifier
    5 | # ██║    ██║  ██║██║ ╚═╝ ██║
      |   ^
a.cc:5:3: error: extended character █ is not valid in an identifier
a.cc:5:3: error: extended character ║ is not valid in an identifier
a.cc:5:3: error: invalid preprocessing directive #\U00002588\U00002588\U00002551
    5 | # ██║    ██║  ██║██║ ╚═╝ ██║
      |   ^~~
a.cc:5:10: error: extended character █ is not valid in an identifier
    5 | # ██║    ██║  ██║██║ ╚═╝ ██║
      |          ^
a.cc:5:10: error: extended character █ is not valid in an identifier
a.cc:5:10: error: extended character ║ is not valid in an identifier
a.cc:5:15: error: extended character █ is not valid in an identifier
    5 | # ██║    ██║  ██║██║ ╚═╝ ██║
      |               ^
a.cc:5:15: error: extended character █ is not valid in an identifier
a.cc:5:15: error: extended character ║ is not valid in an identifier
a.cc:5:15: error: extended character █ is not valid in an identifier
a.cc:5:15: error: extended character █ is not valid in an identifier
a.cc:5:15: error: extended character ║ is not valid in an identifier
a.cc:5:22: error: extended character ╚ is not valid in an identifier
    5 | # ██║    ██║  ██║██║ ╚═╝ ██║
      |                      ^
a.cc:5:22: error: extended character ═ is not valid in an identifier
a.cc:5:22: error: extended character ╝ is not valid in an identifier
a.cc:5:26: error: extended character █ is not valid in an identifier
    5 | # ██║    ██║  ██║██║ ╚═╝ ██║
      |                          ^
a.cc:5:26: error: extended character █ is not valid in an identifier
a.cc:5:26: error: extended character ║ is not valid in an identifier
a.cc:6:3: error: extended character ╚ is not valid in an identifier
    6 | # ╚═╝    ╚═╝  ╚═╝╚═╝     ╚═╝
      |   ^
a.cc:6:3: error: extended character ═ is not valid in an identifier
a.cc:6:3: error: extended character ╝ is not valid in an identifier
a.cc:6:3: error: invalid preprocessing directive #\U0000255a\U00002550\U0000255d
    6 | # ╚═╝    ╚═╝  ╚═╝╚═╝     ╚═╝
      |   ^~~
a.cc:6:10: error: extended character ╚ is not valid in an identifier
    6 | # ╚═╝    ╚═╝  ╚═╝╚═╝     ╚═╝
      |          ^
a.cc:6:10: error: extended character ═ is not valid in an identifier
a.cc:6:10: error: extended character ╝ is not valid in an identif