Python: Why am I getting Compile Error but without any error msg?!


  • 0
    B

    I typed in my python code for this problem, and it works well on my local machine. However, when I clicked the submit button, it simply says "Compile Error" without giving me more error msg or exception for debugging. What should I do?


  • 0
    S

    Can you present the code? There might be some forbidden words in it.


  • 4
    L

    I'm getting the same error when I was using re module. Maybe that's the problem?


  • 0
    K

    I think you are not suppose to "import" anything and should consider anything that is supposed to be "imported" already there.

    For example, if you "import string" you get the compile error. Anyway this is my observation.


  • 0
    A

    I found same issue. but I want to use python Queue.Queue, which need import. So do i need to write the queue myself?


Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.