The two seem to be abelian groups for but take a closer look at the stability under multiplication.

For example, in the second belongs to it, but what about the product ?

If there are no such that then is not stable under multiplication and it cannot be a ring.