Ad
  • Custom User Avatar

    the error comes from your code, you removed the const qualifier from the input (std::string &s instead of const std::string &s). As a result, the tests cannot find your function. this is a linker error, unrelated to the warning for comparison of signed and unsigned integers.

  • Custom User Avatar

    sorry is that a problem with the kata or your own code? what are you saying that the kata should do differently? all I see from your post is that you point out a problem with your own code.

    also, when you say "treated as error" I do wonder if you mean that it's showing you stderr, as opposed to refusing to compile, because your output says warning, not error, and if I produce warnings in the c++ env here then it does not treat that as an error - which is to say that it displays it but still compiles