This is also why interviews are a joke when they expect candidates to have full recall without Internet assistance, documentation, syntax checking, or compiler feedback.
After the mistake she then gave me the "real" test with the correct language. I did not search google (except for one question) or test with a compiler. I failed.