in reply to Compilation Error

I was able to replicate your compile error. I was able to make it go away by deleting the last line (the tilde after the exit):
~