QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#538594#8932. Bingoucup-team3685#Compile Error//Rust1.7kb2024-08-31 12:36:002024-08-31 12:36:00

Details

error[E0432]: unresolved import `num_bigint`
 --> answer.code:2:5
  |
2 | use num_bigint::BigInt;
  |     ^^^^^^^^^^ maybe a missing crate `num_bigint`?
  |
  = help: consider adding `extern crate num_bigint` to use the `num_bigint` crate

error[E0432]: unresolved import `num_traits`
 --> answer.code:3:5
  |
3 | use num_traits::{One, Zero};
  |     ^^^^^^^^^^ maybe a missing crate `num_traits`?
  |
  = help: consider adding `extern crate num_traits` to use the `num_traits` crate

error[E0425]: cannot find function `range` in this scope
  --> answer.code:17:14
   |
17 |     for _ in range(0..t) {
   |              ^^^^^ not found in this scope
   |
help: consider importing this function
   |
1  + use std::slice::range;
   |

warning: unused import: `BufRead`
 --> answer.code:1:21
  |
1 | use std::io::{self, BufRead, Write};
  |                     ^^^^^^^
  |
  = note: `#[warn(unused_imports)]` on by default

warning: unused import: `std::str::FromStr`
 --> answer.code:4:5
  |
4 | use std::str::FromStr;
  |     ^^^^^^^^^^^^^^^^^

error[E0599]: no method named `read_to_string` found for struct `StdinLock` in the current scope
  --> answer.code:11:18
   |
11 |     stdin.lock().read_to_string(&mut input).unwrap();
   |                  ^^^^^^^^^^^^^^ method not found in `StdinLock<'static>`
  --> /build/rustc-60UC9b/rustc-1.75.0+dfsg0ubuntu1~bpo0/library/std/src/io/mod.rs:814:8
   |
   = note: the method is available for `StdinLock<'static>` here
   |
   = help: items from traits can only be used if the trait is in scope
help: the following trait is implemented but not in scope; perhaps add a `use` for it:
   |
1  + use std::io::Read;
   |

error: aborting due to 4 previous errors; 2 warnings emitted

Some errors have detailed explanations: E0425, E0432, E0599.
For more information about an error, try `rustc --explain E0425`.