/ Vijos /

记录详情

Compile Error

error: unknown start of token: \
 --> /w/foo.rs:3:22
  |
3 |     if (str.match(/[^\d\.\(\)\+\-\*\/]/g))
  |                      ^

error: unknown start of token: \
 --> /w/foo.rs:3:24
  |
3 |     if (str.match(/[^\d\.\(\)\+\-\*\/]/g))
  |                        ^

error: unknown start of token: \
 --> /w/foo.rs:3:26
  |
3 |     if (str.match(/[^\d\.\(\)\+\-\*\/]/g))
  |                          ^

error: unknown start of token: \
 --> /w/foo.rs:3:28
  |
3 |     if (str.match(/[^\d\.\(\)\+\-\*\/]/g))
  |                            ^

error: unknown start of token: \
 --> /w/foo.rs:3:30
  |
3 |     if (str.match(/[^\d\.\(\)\+\-\*\/]/g))
  |                              ^

error: unknown start of token: \
 --> /w/foo.rs:3:32
  |
3 |     if (str.match(/[^\d\.\(\)\+\-\*\/]/g))
  |                                ^

error: unknown start of token: \
 --> /w/foo.rs:3:34
  |
3 |     if (str.match(/[^\d\.\(\)\+\-\*\/]/g))
  |                                  ^

error: unknown start of token: \
 --> /w/foo.rs:3:36
  |
3 |     if (str.match(/[^\d\.\(\)\+\-\*\/]/g))
  |                                    ^

error: unknown start of token: \
 --> /w/foo.rs:6:22
  |
6 |     if (str.match(/[^\d\.]0\d/g) ||
  |                      ^

error: unknown start of token: \
 --> /w/foo.rs:6:24
  |
6 |     if (str.match(/[^\d\.]0\d/g) ||
  |                        ^

error: unknown start of token: \
 --> /w/foo.rs:6:28
  |
6 |     if (str.match(/[^\d\.]0\d/g) ||
  |                            ^

error: unknown start of token: \
 --> /w/foo.rs:7:25
  |
7 |             str.match(/[\*\/\+\-][\*\/\+\-]/g) ||
  |                         ^

error: unknown start of token: \
 --> /w/foo.rs:7:27
  |
7 |             str.match(/[\*\/\+\-][\*\/\+\-]/g) ||
  |                           ^

error: unknown start of token: \
 --> /w/foo.rs:7:29
  |
7 |             str.match(/[\*\/\+\-][\*\/\+\-]/g) ||
  |                             ^

error: unknown start of token: \
 --> /w/foo.rs:7:31
  |
7 |             str.match(/[\*\/\+\-][\*\/\+\-]/g) ||
  |                               ^

error: unknown start of token: \
 --> /w/foo.rs:7:35
  |
7 |             str.match(/[\*\/\+\-][\*\/\+\-]/g) ||
  |                                   ^

error: unknown start of token: \
 --> /w/foo.rs:7:37
  |
7 |             str.match(/[\*\/\+\-][\*\/\+\-]/g) ||
  |                                     ^

error: unknown start of token: \
 --> /w/foo.rs:7:39
  |
7 |             str.match(/[\*\/\+\-][\*\/\+\-]/g) ||
  |                                       ^

error: unknown start of token: \
 --> /w/foo.rs:7:41
  |
7 |             str.match(/[\*\/\+\-][\*\/\+\-]/g) ||
  |                                         ^

error: unknown start of token: \
 --> /w/foo.rs:8:26
  |
8 |             str.match(/((\D\.\d)|(\d\.\D)|(\D\.\D))/g))
  |                          ^

error: unknown start of token: \
 --> /w/foo.rs:8:28
  |
8 |             str.match(/((\D\.\d)|(\d\.\D)|(\D\.\D))/g))
  |                            ^

error: unknown start of token: \
 --> /w/foo.rs:8:30
  |
8 |             str.match(/((\D\.\d)|(\d\.\D)|(\D\.\D))/g))
  |                              ^

error: unknown start of token: \
 --> /w/foo.rs:8:35
  |
8 |             str.match(/((\D\.\d)|(\d\.\D)|(\D\.\D))/g))
  |                                   ^

error: unknown start of token: \
 --> /w/foo.rs:8:37
  |
8 |             str.match(/((\D\.\d)|(\d\.\D)|(\D\.\D))/g))
  |                                     ^

error: unknown start of token: \
 --> /w/foo.rs:8:39
  |
8 |             str.match(/((\D\.\d)|(\d\.\D)|(\D\.\D))/g))
  |                                       ^

error: unknown start of token: \
 --> /w/foo.rs:8:44
  |
8 |             str.match(/((\D\.\d)|(\d\.\D)|(\D\.\D))/g))
  |                                            ^

error: unknown start of token: \
 --> /w/foo.rs:8:46
  |
8 |             str.match(/((\D\.\d)|(\d\.\D)|(\D\.\D))/g))
  |                                              ^

error: unknown start of token: \
 --> /w/foo.rs:8:48
  |
8 |             str.match(/((\D\.\d)|(\d\.\D)|(\D\.\D))/g))
  |                                                ^

error: expected item, found `;`
 --> /w/foo.rs:1:1
  |
1 | ;(function () {
  | ^ help: remove this semicolon

error[E0601]: `main` function not found in crate `foo`
 --> /w/foo.rs:1:1
  |
1 | ;(function () {
  | ^ consider adding a `main` function to `/w/foo.rs`

error: aborting due to 30 previous errors

For more information about this error, try `rustc --explain E0601`.
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P2019 表达式求值2
语言
Rust
递交时间
2021-12-19 16:24:46
评测时间
2021-12-19 16:24:46
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes