Ad
  • Custom User Avatar

    You did not get exeption "Caught std::exception, what(): stoi"?
    I've got same code but avery time get this err and could not realise what's wrong with stoi

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    Could you explain how it work and what should i looking for ?

    I cant find any info about x ? sometnihg : something something

  • Default User Avatar

    Thanks!! I did overthink a lot, it was way easier than I thought!

  • Default User Avatar

    Ah you're overthinking this a lot - it's much simpler than that; maybe read the test cases to get a sense of what is being asked for (I can't help more than that without giving away the answer completely).

  • Custom User Avatar

    UndefinedBehaviorSanitizer:DEADLYSIGNAL
    ==1==ERROR: UndefinedBehaviorSanitizer: FPE on unknown address 0x00000042bebd (pc 0x00000042bebd bp 0x000000643d00 sp 0x7fff1b3247f0 T1)
    ==1==WARNING: invalid path to external symbolizer!
    ==1==WARNING: Failed to use and restart external symbolizer!
    #0 0x42bebc (/workspace/test+0x42bebc)
    #1 0x42a86e (/workspace/test+0x42a86e)
    #2 0x42a3c9 (/workspace/test+0x42a3c9)
    #3 0x429fbb (/workspace/test+0x429fbb)
    #4 0x42ca05 (/workspace/test+0x42ca05)
    #5 0x4255fd (/workspace/test+0x4255fd)
    #6 0x7f521e496bf6 (/lib/x86_64-linux-gnu/libc.so.6+0x21bf6)
    #7 0x4045f9 (/workspace/test+0x4045f9)

    UndefinedBehaviorSanitizer can not provide additional info.
    ==1==ABORTING

    ive no idea why cant start even random test