/ Vijos /

记录详情

Compile Error

./Main.java:1: error: class, interface, enum, or record expected
;(function () {
 ^
./Main.java:3: error: class, interface, enum, or record expected
    if (str.match(/[^\d\.\(\)\+\-\*\/]/g))
    ^
./Main.java:3: error: illegal character: '\'
    if (str.match(/[^\d\.\(\)\+\-\*\/]/g))
                     ^
./Main.java:3: error: illegal character: '\'
    if (str.match(/[^\d\.\(\)\+\-\*\/]/g))
                       ^
./Main.java:3: error: illegal character: '\'
    if (str.match(/[^\d\.\(\)\+\-\*\/]/g))
                         ^
./Main.java:3: error: illegal character: '\'
    if (str.match(/[^\d\.\(\)\+\-\*\/]/g))
                           ^
./Main.java:3: error: illegal character: '\'
    if (str.match(/[^\d\.\(\)\+\-\*\/]/g))
                             ^
./Main.java:3: error: illegal character: '\'
    if (str.match(/[^\d\.\(\)\+\-\*\/]/g))
                               ^
./Main.java:3: error: illegal character: '\'
    if (str.match(/[^\d\.\(\)\+\-\*\/]/g))
                                 ^
./Main.java:3: error: illegal character: '\'
    if (str.match(/[^\d\.\(\)\+\-\*\/]/g))
                                   ^
./Main.java:5: error: class, interface, enum, or record expected
    str = "var k = "+str;
    ^
./Main.java:6: error: class, interface, enum, or record expected
    if (str.match(/[^\d\.]0\d/g) ||
    ^
./Main.java:6: error: illegal character: '\'
    if (str.match(/[^\d\.]0\d/g) ||
                     ^
./Main.java:6: error: illegal character: '\'
    if (str.match(/[^\d\.]0\d/g) ||
                       ^
./Main.java:6: error: illegal character: '\'
    if (str.match(/[^\d\.]0\d/g) ||
                           ^
./Main.java:7: error: illegal character: '\'
            str.match(/[\*\/\+\-][\*\/\+\-]/g) ||
                        ^
./Main.java:7: error: illegal character: '\'
            str.match(/[\*\/\+\-][\*\/\+\-]/g) ||
                          ^
./Main.java:7: error: illegal character: '\'
            str.match(/[\*\/\+\-][\*\/\+\-]/g) ||
                            ^
./Main.java:7: error: illegal character: '\'
            str.match(/[\*\/\+\-][\*\/\+\-]/g) ||
                              ^
./Main.java:7: error: illegal character: '\'
            str.match(/[\*\/\+\-][\*\/\+\-]/g) ||
                                  ^
./Main.java:7: error: illegal character: '\'
            str.match(/[\*\/\+\-][\*\/\+\-]/g) ||
                                    ^
./Main.java:7: error: illegal character: '\'
            str.match(/[\*\/\+\-][\*\/\+\-]/g) ||
                                      ^
./Main.java:7: error: illegal character: '\'
            str.match(/[\*\/\+\-][\*\/\+\-]/g) ||
                                        ^
./Main.java:8: error: illegal character: '\'
            str.match(/((\D\.\d)|(\d\.\D)|(\D\.\D))/g))
                         ^
./Main.java:8: error: illegal character: '\'
            str.match(/((\D\.\d)|(\d\.\D)|(\D\.\D))/g))
                           ^
./Main.java:8: error: illegal character: '\'
            str.match(/((\D\.\d)|(\d\.\D)|(\D\.\D))/g))
                             ^
./Main.java:8: error: illegal character: '\'
            str.match(/((\D\.\d)|(\d\.\D)|(\D\.\D))/g))
                                  ^
./Main.java:8: error: illegal character: '\'
            str.match(/((\D\.\d)|(\d\.\D)|(\D\.\D))/g))
                                    ^
./Main.java:8: error: illegal character: '\'
            str.match(/((\D\.\d)|(\d\.\D)|(\D\.\D))/g))
                                      ^
./Main.java:8: error: illegal character: '\'
            str.match(/((\D\.\d)|(\d\.\D)|(\D\.\D))/g))
                                           ^
./Main.java:8: error: illegal character: '\'
            str.match(/((\D\.\d)|(\d\.\D)|(\D\.\D))/g))
                                             ^
./Main.java:8: error: illegal character: '\'
            str.match(/((\D\.\d)|(\d\.\D)|(\D\.\D))/g))
                                               ^
./Main.java:10: error: class, interface, enum, or record expected
    try {
    ^
./Main.java:12: error: class, interface, enum, or record expected
    } catch (e) {
    ^
./Main.java:14: error: class, interface, enum, or record expected
    }
    ^
./Main.java:17: error: class, interface, enum, or record expected
    print(k.toFixed(2));
    ^
./Main.java:18: error: class, interface, enum, or record expected
})();
^
37 errors
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P2019 表达式求值2
语言
Java
递交时间
2023-07-15 12:58:24
评测时间
2023-07-15 12:58:24
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes