what is woung with when engine is getting to much air and not enouth fuel? on 2003 BMW 325i

codes p0171 and p0174 what should i do to fix this problem?

1 answer 1 comment
vac leak or poss mass air flow sensor
what do you mean by vac leak and could to damage my engine if i use it?