Not sure what point you're making here. It doesn't really say anything about a programmer if he/she forgets the semicolons when writing out a C++ function by hand. Especially if this person is constantly juggling many different language syntaxes, some of which have line terminators and some not.
The function logic is wrong; yes, that's a problem. But forgetting the semicolons has no significance whatsoever.
Take another look at that code. If someone makes that many mistakes in a short space, then even if any one of those mistakes is forgivable, it reveals that they are not a good programmer.
me: "Let's write some code, what's your favorite language?"
them: "My favorite? I guess C++"
me: "So how about, write a function to find the most common string in a vector of strings."
They write something like
me: "I see. Well for one, in C++ you need to end each line with a semicolon."them: "Jeez! Interviewers always expect you to have all this trivia memorized!!!"