You need to learn to read the compiler output. The error is often explained there and it shows which line of code the error occurred on (the number in parentheses after the file name), as is the case here.
In this specific case, you need to look at the "new menus" tutorial.