The Hardness of Approximate Optimia in Lattices, Codes, and Systems of Linear Equations