I’m convinced that this is a compilation issue but unfortunately it’s happening randomly. I’ve put this debug line in my code right after the main method. It should have been displayed if it were a timeout issue related to my code execution.
stderr prints will sometimes not show on the same turn as a timeout unless you force a flush. I don’t know anything about Scala, but if there’s a stderr.flush() method, try doing that after your print.
This message is displayed because the the -explaintypes option is enabled in the scala compiler. It seems that there is something wrong with the types but i don’t understand why it’s happening randomly.