All About Time Signatures
If you said the first measure was incorrect, you're right! There should be an eighth rest in there. This is because the measure is 3 and 7/8th of a beat. It isn't completely 4 beats. Here is the correct measures, try playing it with the digital piano below now. After that, try the two measures of music at the bottom.
If you thought both measure were incorrect, you were correct! The first measure is missing a sixteenth note. The second measure is missing an eighth note.
If you thought the second measure was incorrect, congratulations! You are correct. The second measure is missing two half rests.