It is established that there exist functions that, on any interval, take on all real values (see Function whose image of every open interval is $(-\infty,\infty)$ and Is there a function $f\colon\mathbb{R}\to\mathbb{R}$ such that every non-empty open interval is mapped onto $\mathbb{R}$? ).
Below is a facile proof, which I believe incorrect: Any interval in $\mathbb{R}$ has cardinality $C$, equal to the cardinality of $\mathbb{R}$ itself. By definition of equal cardinality, a function exists between the two sets creating a one-to-one correspondence. QED.
I believe this proof is incorrect, because it shows $f$ exists for any particular interval, but doesn't show that the same $f$ can be defined over multiple overlapping intervals. However, I don't find this objection to be very robustly formulated.
Can you strengthen my objection to the "proof"? Can you provide another objection?