If I understand correctly, the phrase "decision problem" basically means a subset of $\mathbb{N}$. A complexity class is a set of decision problems, ergo it's a set of subsets of $\mathbb{N}$. A decision problem $D$ is in a complexity class $\mathbf{C}$ iff $D \in \mathbf{C}$.
This seems at odds with statements like "$\mathbf{P}$ is the complexity class of decision problems for which solutions can be found in polynomial time." In some sense, every problem is in $\mathbf{P}$. For example, given a problem $D$ for which finding an element is difficult insofar as it takes about a 1 year to do it, but nonetheless possible, there's a perfectly good "instantaneous" algorithm to find an element of $D$. You just pre-compute an element. And sure, it takes a year. But now you have an algorithm that's virtually instantaneous. In particular, when you're asked to find an element, you just give the asker the value you precomputed.
In other words, every decision problem can, in some sense, be solved in $O(1)$ time. So every decision problem is an element of $\mathbf{P}$.
Obviously, this is nonsense, and I have not grasped the basic definitions.
Question. What do the phrases "decision problem" and "complexity class" really mean?