def check_comment(lines):
    (ifndef_symbol, _) = get_ifndef_symbol(lines)
    index = [i for (i, s) in enumerate(lines) if ('#endif' in s)]
    endif_line = lines[index[(- 1)]].strip()
    if (endif_line != ('#endif // ' + ifndef_symbol)):
        print(ifndef_symbol)
        print(endif_line)
        return '#endif line is not correctly formatted'
    else:
        return ''
def check_comment(lines):
    (ifndef_symbol, _) = get_ifndef_symbol(lines)
    index = [i for (i, s) in enumerate(lines) if ('#endif' in s)]
    endif_line = lines[index[(- 1)]].strip()
    if (endif_line != ('#endif // ' + ifndef_symbol)):
        print(ifndef_symbol)
        print(endif_line)
        return '#endif line is not correctly formatted'
    else:
        return 