Обсуждение
Не публикуйте здесь решения. Эта страница предназначена только для того, чтобы задавать вопросы о проблеме, давать советы, если вы застряли, или обсуждать проблему в целом.
Загрузка
Минутку, получение данных с сервера
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