116342024-11-02 11:13:19MagyarKendeSZLGVilágnaptár (45 pont)cpp17Compilation error
DL   = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]
LDL  = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]
WDL  = [31, 30, 30, 31, 30, 30, 31, 30, 30, 31, 30, 31]
WLDL = [31, 30, 30, 31, 30, 31, 31, 30, 30, 31, 30, 31]

Y, M, D = map(int, input().split())
if Y % 4 == 0:
    for i in range(M - 1):
        D += LDL[i]
    wm = 1
    for i in range(12):
        if WLDL[i] < D:
            wm += 1
            D -= WLDL[i]
        else:
            break
    if wm == 6 and D == 31:
        print(Y, wm, "SZN")
    elif wm == 12 and D == 31:
        print(Y, wm, "VN")
    else:
        print(Y, wm, D)
else:
    for i in range(M - 1):
        D += DL[i]
    wm = 1
    for i in range(12):
        if WDL[i] < D:
            wm += 1
            D -= WDL[i]
        else:
            break
    if wm == 12 and D == 31:
        print(Y, wm, "VN")
    else:
        print(Y, wm, D)
Compilation error
open /var/local/lib/isolate/422/box/a.out: no such file or directory
main.cpp:1:1: error: 'DL' does not name a type
    1 | DL   = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]
      | ^~