def test_areas(root, printerror=False):
    """Verifies if the Lattes CV contains actuation areas.
    Args:
        root: the Lattes CV that has been parsed with the ElementTree
        language.
        flag: if 0, then the Lattes CV contains actuation areas.
        If 1, the Lattes CV doesn't contain actuation areas.
        printerror: if True, shows the errors in the command window.
    """
    areasflag = 0
    x = root.findall('.//AREAS-DE-ATUACAO')

    if x == []:
        areasflag = 1
        if printerror: print('Áreas de atuação não fornecidas.')

    return areasflag