Discussion
Do not post solutions here. This page is intended only to ask questions about problem, tips if you stuck or discuss problem in general.
Loading
Just a moment, getting data from the server
I tried to submit a solution in Rust but I get runtime errors, but my solution in C++ works fine, what did I do wrong ?
skolodyazhnyy Thanks, I am new to the plateform, and since the replies button does not show any reply, I thought it was like bug or something.
user795364 it's not shown due to security considerations, you should prepare your own test cases, especially edge cases, and verify your program correctness before submitting it.
user795364 it seems your program goes out of bounds, it fails with this error:
thread 'main' panicked at 'index out of bounds: the len is 1 but the index is 1', source.rs:57:9 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace