/ Vijos /

记录详情

Compile Error

./Main.java:1: error: class, interface, enum, or record expected
from decimal import Decimal
^
./Main.java:1: error: '.' expected
from decimal import Decimal
                           ^
./Main.java:3: error: ';' expected
s = raw_input()
 ^
./Main.java:4: error: unclosed character literal
if len(s)>1 and s[0]=='0' and (s[1] not in '.+-*/'):
                                           ^
./Main.java:4: error: unclosed character literal
if len(s)>1 and s[0]=='0' and (s[1] not in '.+-*/'):
                                                 ^
./Main.java:5: error: unclosed character literal
    print 'FormulaException'
          ^
./Main.java:5: error: illegal line end in character literal
    print 'FormulaException'
                           ^
./Main.java:6: error: unclosed character literal
elif any(st in s for st in [sig1+sig2 for sig1 in '+-*/' for sig2 in '+-*/'] +
                                                  ^
./Main.java:6: error: unclosed character literal
elif any(st in s for st in [sig1+sig2 for sig1 in '+-*/' for sig2 in '+-*/'] +
                                                       ^
./Main.java:6: error: unclosed character literal
elif any(st in s for st in [sig1+sig2 for sig1 in '+-*/' for sig2 in '+-*/'] +
                                                                     ^
./Main.java:6: error: unclosed character literal
elif any(st in s for st in [sig1+sig2 for sig1 in '+-*/' for sig2 in '+-*/'] +
                                                                          ^
./Main.java:7: error: unclosed character literal
                         [sig+'0'+num for sig in '+-*/()' for num in '0123456789'] +
                                                 ^
./Main.java:7: error: unclosed character literal
                         [sig+'0'+num for sig in '+-*/()' for num in '0123456789'] +
                                                        ^
./Main.java:7: error: unclosed character literal
                         [sig+'0'+num for sig in '+-*/()' for num in '0123456789'] +
                                                                     ^
./Main.java:7: error: unclosed character literal
                         [sig+'0'+num for sig in '+-*/()' for num in '0123456789'] +
                                                                                ^
./Main.java:8: error: unclosed character literal
                         [x for x in 'abcdefghijklmnopqrstuvwxyz']):
                                     ^
./Main.java:8: error: unclosed character literal
                         [x for x in 'abcdefghijklmnopqrstuvwxyz']):
                                                                ^
./Main.java:9: error: unclosed character literal
    print 'FormulaException'
          ^
./Main.java:9: error: illegal line end in character literal
    print 'FormulaException'
                           ^
./Main.java:12: error: unclosed character literal
        print Decimal(eval(s)).quantize(Decimal('0.00'))
                                                ^
./Main.java:12: error: unclosed character literal
        print Decimal(eval(s)).quantize(Decimal('0.00'))
                                                     ^
./Main.java:14: error: unclosed character literal
        print 'ZeroException'
              ^
./Main.java:14: error: illegal line end in character literal
        print 'ZeroException'
                            ^
./Main.java:16: error: unclosed character literal
        print 'FormulaException'
              ^
./Main.java:16: error: illegal line end in character literal
        print 'FormulaException'
                               ^
./Main.java:18: error: unclosed character literal
        print 'FormulaException'
              ^
./Main.java:18: error: illegal line end in character literal
        print 'FormulaException'
                               ^
./Main.java:20: error: unclosed character literal
        print 'FormulaException'
              ^
./Main.java:20: error: illegal line end in character literal
        print 'FormulaException'
                               ^
29 errors
[Hydro](https://hydro.ac)提供评测服务

信息

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