Well the first one does not have the 0 indentity. Therefore, not a vector space.
The second contains the 0 identity, is closed under addition and is closed under scalar multiplication. Therefore, its a vector space.
Note to verify if something is a vector space you must do the following:
1) Is 0 in the vector space?
2) If x and y are in the vector space is x + y in the vector space. (This is called closed under addition)
3) If x is in the vector space and c is any scalar then cx is in the vector space. (This is called closed under scalar multiplication)
If these are all true then its a vector space!
Hope this helps!