error[E0432]: unresolved import `regex`
--> /w/foo.rs:10:5
|
10 | use regex::{Captures, Regex};//regex = "1.6.0"
| ^^^^^ maybe a missing crate `regex`?
|
= help: consider adding `extern crate regex` to use the `regex` crate
error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
--> /w/foo.rs:1:1
|
1 | extern crate lazy_static;
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
--> /w/foo.rs:8:5
|
8 | use lazy_static::lazy_static;
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
--> /w/foo.rs:225:1
|
225 | / lazy_static! {//让DP数组作为全局可变静态变量,需要使用lazy_static和Mutex配合实现初始化
226 | | static ref DP: Mutex<Vec<Vec<u128>>> = Mutex::new(vec![vec![u128::MAX; MAXNUM]; MAXNUM]);
227 | | }
| |_^
|
= note: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
= note: this error originates in the macro `__lazy_static_create` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
--> /w/foo.rs:225:1
|
225 | / lazy_static! {//让DP数组作为全局可变静态变量,需要使用lazy_static和Mutex配合实现初始化
226 | | static ref DP: Mutex<Vec<Vec<u128>>> = Mutex::new(vec![vec![u128::MAX; MAXNUM]; MAXNUM]);
227 | | }
| |_^
|
= note: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
= note: this error originates in the macro `__lazy_static_create` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
--> /w/foo.rs:225:1
|
225 | / lazy_static! {//让DP数组作为全局可变静态变量,需要使用lazy_static和Mutex配合实现初始化
226 | | static ref DP: Mutex<Vec<Vec<u128>>> = Mutex::new(vec![vec![u128::MAX; MAXNUM]; MAXNUM]);
227 | | }
| |_^
|
= note: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
= note: this error originates in the macro `__lazy_static_internal` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
--> /w/foo.rs:225:1
|
225 | / lazy_static! {//让DP数组作为全局可变静态变量,需要使用lazy_static和Mutex配合实现初始化
226 | | static ref DP: Mutex<Vec<Vec<u128>>> = Mutex::new(vec![vec![u128::MAX; MAXNUM]; MAXNUM]);
227 | | }
| |_^
|
= note: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
= note: this error originates in the macro `__lazy_static_internal` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
--> /w/foo.rs:225:1
|
225 | / lazy_static! {//让DP数组作为全局可变静态变量,需要使用lazy_static和Mutex配合实现初始化
226 | | static ref DP: Mutex<Vec<Vec<u128>>> = Mutex::new(vec![vec![u128::MAX; MAXNUM]; MAXNUM]);
227 | | }
| |_^
|
= note: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
= note: this error originates in the macro `__lazy_static_create` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
--> /w/foo.rs:225:1
|
225 | / lazy_static! {//让DP数组作为全局可变静态变量,需要使用lazy_static和Mutex配合实现初始化
226 | | static ref DP: Mutex<Vec<Vec<u128>>> = Mutex::new(vec![vec![u128::MAX; MAXNUM]; MAXNUM]);
227 | | }
| |_^
|
= note: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
= note: this error originates in the macro `__lazy_static_internal` (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to 9 previous errors
Some errors have detailed explanations: E0432, E0658.
For more information about an error, try `rustc --explain E0432`.
[Hydro](https://hydro.ac)提供评测服务