It seems you are having an issue with Proteus configuration. Your code has been compiled succesfully.

So for sure, it is not about your code.