提出 #27470
| 提出日時 | 05/07 01:07:00 |
|---|---|
| 問題 | B: Dynamic Scoring Test |
| ユーザ | mizar |
| 言語 | Rust (1.79.0) |
| 得点 | 0 |
| 結果 | CE |
コンパイルエラー
error[E0599]: cannot write into `BufWriter<Stdout>`
--> src/main.rs:3:14
|
3 | writeln!(bw, "{}", i64::MIN)?;
| ^^
--> /rustc/3f5fd8dd41153bc5fdca9427e9e05be2c767ba23/library/std/src/io/mod.rs:1814:8
|
= note: the method is available for `BufWriter<Stdout>` here
|
note: must implement `io::Write`, `fmt::Write`, or have a `write_fmt` method
--> src/main.rs:3:14
|
3 | writeln!(bw, "{}", i64::MIN)?;
| ^^
= help: items from traits can only be used if the trait is in scope
help: trait `Write` which provides `write_fmt` is implemented but not in scope; perhaps you want to import it
|
1 + use std::io::Write;
|
error[E0599]: no method named `flush` found for struct `BufWriter` in the current scope
--> src/main.rs:4:8
|
4 | bw.flush()?;
| ^^^^^ method not found in `BufWriter<Stdout>`
--> /rustc/3f5fd8dd41153bc5fdca9427e9e05be2c767ba23/library/std/src/io/mod.rs:1665:8
|
= note: the method is available for `BufWriter<Stdout>` here
|
= help: items from traits can only be used if the trait is in scope
help: trait `Write` which provides `flush` is implemented but not in scope; perhaps you want to import it
|
1 + use std::io::Write;
|
For more information about this error, try `rustc --explain E0599`.
error: could not compile `Rust` (bin "Rust") due to 2 previous errors