Ad
  • Custom User Avatar

    if it won't pass the random test... there is a bug in your code, not with the tests

  • Custom User Avatar

    Hi I cant seem to pass the random test. I pass all the other test just having problems with the random test. what's the difference between the fixed test and the random test? how is the list generaded between the two? I have working solution i just dont know why it wont pass the random test. How can i solve this issue?

  • Default User Avatar

    You can use std::cout in your code to display whatever you want. Anyway I added also to my Kata logging what message and code are tested.
    BTW. The n is not a four digit number. It's a random number between 0 and INT_MAX.

  • Custom User Avatar

    I'm trying to get my code to pass the random test. my code passes the first two test but not the final random test which i cant figure out why. I know the n is a four digit number and my program processes that number correctly. also str is processed correctly as well. but when I try to test the random values the output shows that there are two number in the sequence off by a few. How should I try to figure out how to pass the random test if i dont know what its testing for?

  • Custom User Avatar

    sorry im new. but i figured it out. i was getting the error because i didnt check it the vector was null or none changed my code and it worked. thanks for the repley.

  • Default User Avatar

    Don't create an issue, if you are not sure, if the problem is in the kata or in your code.

    As you can see, over 600 people solved it in C++. So I think the problem is in your code.

  • Custom User Avatar

    "Process exited prematurely with a SIGSEGV signal." I keep getting this error for c++. My solution passes all the test but I keep getting this error? is anyone else getting this error too?