Suppose $G$ is a set and $\cdot$ is a binary operation on $G$ such that there exists an $e\in G$ such that $a\cdot e=a$ for a in $G$ and given $a\in G$, there is a $y(a)\in G$ such that $y(a)\cdot a=e$. I wish to find a $G$ such that $G$ is not a group under $\cdot$.
An obvious place to start looking would be sets with some non-commutative operation. An example that comes to my mind would be that of square matrices under multiplication but it seems that if a square matrix is left invertible it has a right inverse as well, so this example doesn't work.