No amount of vacuuming will remove the unpleasant odors associated with dirt, debris, and stains. If you have pets, carpet odor could be even more of a problem. Accidents happen with pets just as often as with people. The difference being that pet odors smell much worse than a spilled drink.
No one wants their home to smell terrible, especially when entertaining guests. Removing these lingering odors necessitates a full, deep cleaning using specialized cleaning solutions. If offensive odors seem to be a problem for your carpet, you should consider hiring a professional carpet cleaning company.