error[E0432]: unresolved import `lazy_static`
--> /w/foo.rs:7:5
|
7 | use lazy_static::lazy_static;
| ^^^^^^^^^^^ maybe a missing crate `lazy_static`?
|
= help: consider adding `extern crate lazy_static` to use the `lazy_static` crate
error[E0432]: unresolved import `regex`
--> /w/foo.rs:9:5
|
9 | 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: cannot determine resolution for the macro `lazy_static`
--> /w/foo.rs:224:1
|
224 | lazy_static! {//让DP数组作为全局可变静态变量,需要使用lazy_static和Mutex配合实现初始化
| ^^^^^^^^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error[E0425]: cannot find value `DP` in this scope
--> /w/foo.rs:228:21
|
228 | let dp = &mut *(DP.lock()?);//dp为&mut Vec<Vec<u128>>
| ^^ not found in this scope
warning: unused import: `std::sync::Mutex`
--> /w/foo.rs:6:5
|
6 | use std::sync::Mutex;
| ^^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
error: aborting due to 4 previous errors; 1 warning emitted
Some errors have detailed explanations: E0425, E0432.
For more information about an error, try `rustc --explain E0425`.
[Hydro](https://hydro.ac)提供评测服务