Ad
  • Custom User Avatar

    Thanks! I just solved it, everything's cool. I'll mark this as resolved.

  • Custom User Avatar

    fixed! All tests have passed, warnings fixed also

  • Custom User Avatar

    Just completed the kata in C. It has a bunch of issues with compilation (warnings, missing includes), but it is compilable and solvable in C. stderr looks nasty tho.

  • Custom User Avatar

    Same issue here! Cannot compile and run code. Please fix.

  • Default User Avatar

    I also get a bunch of warnings about comparing integers of different types - maybe just needs a bit of casting?

  • Default User Avatar

    C language, little mistake in test program:

    setup.c:2:20: warning: extra tokens at end of #include directive [-Wextra-tokens]
    #include <stdlib.h>,
                       ^
                       //
    1 warning generated.
    
  • Default User Avatar

    Not an issue of the kata but of your code. Print the input to see the test input.
    You should read thishttps://github.com/codewars/codewars.com/wiki/Troubleshooting-your-solution.

  • Custom User Avatar

    Not an issue. Print the inputs, and debug your solution.

  • Default User Avatar

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

  • Default User Avatar

    Thx everyone for participation! Sadly i still don't understand what sorcery is this, but my verbose and bloated solution is working now!

    Tho i still pursue the goal to understand everything is going on in c.

  • Custom User Avatar

    mmm, possible yes. Just note that when I said a change on version of the runner, I wasn't talking about the version chosen in the edit panel but the one of the stuff that is actually running the whole environment.

    (edit: ...but that might end up in the very same behavior, yeah... :/ )

  • Default User Avatar

    you can get those info through the "revisions" page in the edit panel.

    As far as I know, only when there are changes in the desription or in the codes, not when it is a simple version change:-(

  • Custom User Avatar

    you can get those info through the "revisions" page in the edit panel. The only thing you cannot know, iirc, is who approved a transaltion.

  • Default User Avatar

    For C I came back to my translation, edited and published.
    C++ fixed.

    @hobovsky, Update: don't you think it would be good to know who approves a kata and who update it?

  • Custom User Avatar

    Warnings started appearing for both C and C++ kata after tools got updated to CLang 8. I think compilation flags for warnings (-Wall?) were added for CLang 8, but they are not there for other versions of C and C++ runtimes. That's why so many kata suddenly got affected.
    You might want to take a look also at oher C and C++ translations of your kata, because they may have lots of warnings now, even if there were none in the past.

    PS. initial setup of C++ version does not compile (vector header is not included, type name vector is used instead of std::vector), would you consider fixing this too?

  • Loading more items...