Note in advance:It would be very useful in the future if you include the error (using code tags).
ok is considered a variable by the compiler. You will have to embed it in double quotes to make it a string literal. Like if (letra = "ok")
Your topic has been moved to a more suitable location on the forum. Installation and Troubleshooting is not for problems with (nor for advise on) your project
See About the Installation & Troubleshooting category.