Tell me whether these are flowers or trees: lily, oak, rose, pine, marigold, hickory, dahlia, spruce

Flowers: Lily, rose, marigold, dahlia
Trees: Oak, pine, hickory, spruce