Not registered yet?
Register now! It is easy and done in 1 minute and gives you access to special discounts and much more!
You need to initialize int del=-1.
Other than that, I don't see a problem. Could be that you might need to use single quotes like this '\n', indicating a character and not double quotes.