There seems to be some errors in this post. I am trying to fix some.
It may be a pain to see compile errors, but trust me, getting error here is good for you. You did something stupid you tried to compare string with int and decide which one is equal. This does not make any sense to the computer most of the time (nor does it make sense to human), so you should never be able to run program like this. Computer says “No!” and you have to cope with that.
Consider this part "should never be able to run program like this".
Per Oxford dictionary "able to" means "competent to", "capable of".
I guess this expression "You could be able to run program like this but you shout never do" is more appropriate and clear than the original one, is it?