Let $(R,+,\cdot)$ be a ring (in the definition i use multiplication is associative operation and it's not assumed that there is unity in the ring).
I've seen two definitons of subring.
1) non-empty subset $S \subset R$ is called subring of ring $(R,+,\cdot)$ iff $(S,+,\cdot)$ is a ring
2) Let $(R,+,\cdot)$ be unitary ring with unity $e$. Non-empty subset $S \subset R$ is called subring of ring $(R,+,\cdot)$ iff $(S,+,\cdot)$ is a ring and $e \in S$.
I'm looking for an example of such ring R and its subset S that $(S,+,\cdot)$ is a ring but not a unitary ring.
I will be also very grateful for an example of such UNITARY rings $(R_1,+_1,\cdot_1)$, $(R_2,+_2,\cdot_2)$ and function $f: ~~ R_1 \longrightarrow R_2$ that
$(1) \forall a,b \in R_1 ~~~ f(a+_1 b) = f(a) +_2 f(b) $
$(2) \forall a,b \in R_1 ~~~ f(a\cdot_1 b) = f(a) \cdot_2 f(b)$
$(3) f(e_1) \neq e_2$
where $e_1$ is unity in $R_1$; $e_2$ - in $R_2$.
Thanks in advance.
More generally let $R$ be a unitary ring. Any proper ideal $S$ provides an example for 1. For arbitrary unitary rings $R_1$ and $R_2\neq\{0\}$, the zero map is always an example for 2.