Notepad++ is not showing the error

If you wondering why it's not showing coding errors, Notepad++ is a text editor, not an IDE. It's not designed to show errors as you type. If you want such a thing, try an IDE such as Eclipse.