Skip to content

fixes some mistakes in the C++ code snippets - #530

Open
interrupt-routine wants to merge 1 commit into
codewars:masterfrom
interrupt-routine:patch-1
Open

interrupt-routine wants to merge 1 commit into
codewars:masterfrom
interrupt-routine:patch-1

Conversation

@interrupt-routine

Copy link
Copy Markdown
Contributor

<functional> is needed for std::bind

std::uniform_int_distribution does not support char as a template type argument (this apparently happens to work in the Codewars Clang 8/C++17 image, but in the Clang 22/C++23 image there are type checks so this fails to compile)

the example test suite crashes if the expected and actual vectors' lengths do not match

`<functional>` is needed for std::bind

std::uniform_int_distribution does not support `char`s as a template type argument

the example test suite crashes if the expected and actual vectors' lengths do not match
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant