• Custom User Avatar

    So my code works and i solved all tests in C++. But when i try to submit in random tests it shows me: Expected: equal to Aramaki or equal to Togusa. Whats this?

  • Custom User Avatar

    Thanks for your answer, I solved it in another way and still have no idea why it didnt work the other way around.

  • Custom User Avatar

    I just solved C++ version and found no problems with it. I cannot really get what oyur problem is from your description, so I think you'd have to show some code so we could take a look.
    One thing to beware though: note that kata works with long long items, so if you use int literals in your code, be sure they are not narrowed to int because then you can sometimes get type errors on compilation.

  • Custom User Avatar

    Hi I have a Problem in C++.
    So i get the correct Values, but if i push them into my vector<vector> I get the error message "wrong return type". If I push some random numbers into the vecotr everything works. Even if I push, like in the first test, 15,21 into the first vector and then 15,21 into the second one everything works, but if i push 21,15 into the second one it magically wont work anymore (at least it seems to me).
    Has anyone experienced the same problem?

  • Custom User Avatar

    To change the string into an vector of long long values I use std::stoll. My code works well for the test cases, but if I do Attemp stoll throws an exception. I deletet the non digit letters at the beginning of the Random test. Also the exception is thrown when the code tries to convert the last number of the string in the random test into a long long value. Has anyone experienced the same problem?