Ad
  • Custom User Avatar

    There's a known problem with some of Rust kata. Rust version got recently updated on Codewars and now some kata do not compile correctly. They are being updated gradually, but there's still ~100 of them to go. I will try to get someone on this one, but I do not know when it will get fixed :( Just back up your code somewhere and try again tomorrow, or in a couple of days. Hopefully it will get processed until then.

  • Custom User Avatar

    It works on my end if I change the Rust version from 1.44 to 1.49. It's related to the rand crate dependency that introduced a breaking change.

    Let me know if that resolves the issue.

  • Custom User Avatar

    Hi I wrote my program in Rust and get this feedback, what could be wrong?

    error[E0061]: this function takes 2 arguments but 1 argument was supplied
    --> src/lib.rs:94:31
    |
    94 | test.push(rng.gen_range(range.0..=range.1));
    | ^^^^^^^^^ ----------------- supplied 1 argument
    | |
    | expected 2 arguments

    error: aborting due to previous error

    For more information about this error, try rustc --explain E0061.
    error: could not compile qualified-rust.

    NOTE: Line numbers in error messages can be incorrect due to concatenation.