user
Analyze this sentence and identify errors in grammar, punctuation, and spelling.

I saw him yesterday and he said hi


assistant
Error - punctuation: I saw him yesterday and he said hi should be I saw him yesterday, and he said hi. 
Error - grammar: "he said" should be "he said hi". 
No spelling errors.