I'm really sorry for the problems, I have already fixed the issue, this was my first translation and I misunderstood how the tests are checked before publication.
At Example Test Cases I have changed expected value (e.g. 5) into Equals(5), Hidden test cases were fine.
Please comment on the GH thread: https://github.com/codews/runner/issues/113.
You have absolutely right that GCC/CLANG does not implement all C++20 features (my bad), but a few ready to use functions can be helpful to write better solutions.
yep, I should use const reference.
Is this correction sufficient?
Thanks for review! I have fixed all mentioned problems. I agree that using pair is much better approach.
Thank you for review and detailed description of all problems. I already fixed all mentioned points, please review changes.
C++ translation:
https://www.codewars.com/kumite/6244bc2c58ad06006b64b094?sel=6244bc2c58ad06006b64b094
C++ translation:
https://www.codewars.com/kumite/62433060e2be22004f060552?sel=62433060e2be22004f060552
If Rust tests are fine then C++ tests are ok as well.
I'm really sorry for the problems, I have already fixed the issue, this was my first translation and I misunderstood how the tests are checked before publication.
At
Example Test Cases
I have changed expected value (e.g. 5) intoEquals(5)
, Hidden test cases were fine.Once again sorry for the problems.
Please comment on the GH thread: https://github.com/codews/runner/issues/113.
You have absolutely right that GCC/CLANG does not implement all C++20 features (my bad), but a few ready to use functions can be helpful to write better solutions.
for sure g++ and clang support c++20
[edit]: it is not true
Add support for C++20 please ;)