Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
I don't remember the exact number but it's around 5.5k I think
try changing the compiler. it worked for me
someone hacked the main frame!
I suppose it was in C? C translation updated.
I solved this in my PC with gcc. Here with Clang, I can't get the registers. I'm using
__asm__
and the multiple options in the StackOverflow post. Can anybody offer a hint?I'm solving this kata in C.
What's the largest prime the solution has to support?
Because people don't actually know how to read code or check to see if actually works. They think it is "clever" just because it is on one line.
I've put all the fixed tests in the actual tests into the sample tests, which should help with this.
Why is this wrong solution so highly upvoted?
In C language:
If I add a test
cr_assert_str_eq(solution(1992), "MCMXCII");
it passes.
However, when I submit, it tells me:
The expression (as strings) (solution(1992)) == ("MCMXCII") is false.
What's going on?
As @frogamic, my solution crashes and no feedback is given.
I passed the C version by brute-force submitting until getting >100 right. In all previous submissions it was crashing at some test and giving me the error "*** Error in `/home/codewarrior/solution': free(): invalid next size (fast):"
Now I'm getting:
Can you please check for another typo in the hidden test cases?
Should be fixed now!
A typo in one of test cases: "hambrgers" should be "hamburgers". (python)
Loading more items...