You can’t exercise off a bad diet. Even if you spend hours in the gym, if you’re eating is out of control, chances are very high that you either won’t be able to lose weight, or that you’ll actually gain. Focus on making good choices in the kitchen, not just in the gym!