Ad
  • Custom User Avatar

    OP solved it, closing. Based on the error message, seems like you are trying to parse a non-digit character into integer

  • Custom User Avatar

    Should be fixed.

  • Custom User Avatar

    For C++

    I passed all the fixed test but for random test I got expected-actual problem like:

    Expected: equal to "0.1.1"
    Actual: "0.1.2"
    

    Sometimes i received this error on random test:

    Caught std::exception, what(): Error occured while parsing version!
    

    Can someone help me how can i troubleshoot my code?

  • Custom User Avatar

    for throw exception you just need to type "throw VersionException("Error occured while parsing version!");"
    because it already have built-in VersionException Class for tester. Means to submit you dont have to use try and catch block. I hope my explaination is clear, sorry for my broken english

  • Custom User Avatar

    Great idea, I hope i can have this good programming thinking like you