/ WHOJ /

记录详情

Compile Error

./Main.java:1: error: class, interface, enum, or record expected
var a,b:array[1..1000] of int64;
^
./Main.java:2: error: class, interface, enum, or record expected
    i,j,la,lb,n:longint;
    ^
./Main.java:3: error: class, interface, enum, or record expected
procedure cheng(t:longint);//???????
^
./Main.java:4: error: class, interface, enum, or record expected
var i:longint;
^
./Main.java:5: error: class, interface, enum, or record expected
begin
^
./Main.java:8: error: class, interface, enum, or record expected
    for i:=1 to la do
    ^
./Main.java:11: error: class, interface, enum, or record expected
        a[i]:=a[i] mod 10;
        ^
./Main.java:12: error: class, interface, enum, or record expected
    end;
    ^
./Main.java:13: error: class, interface, enum, or record expected
    while a[la+1]>0 do inc(la);
    ^
./Main.java:14: error: class, interface, enum, or record expected
end;
^
./Main.java:15: error: class, interface, enum, or record expected
procedure jia;//?????
^
./Main.java:16: error: class, interface, enum, or record expected
var i:longint;
^
./Main.java:17: error: class, interface, enum, or record expected
begin
^
./Main.java:21: error: class, interface, enum, or record expected
        b[i+1]:=b[i+1]+b[i] div 10;
        ^
./Main.java:22: error: class, interface, enum, or record expected
        b[i]:=b[i] mod 10;
        ^
./Main.java:23: error: class, interface, enum, or record expected
    end;
    ^
./Main.java:24: error: class, interface, enum, or record expected
    while b[lb+1]>0 do inc(lb);
    ^
./Main.java:25: error: class, interface, enum, or record expected
end;
^
./Main.java:26: error: class, interface, enum, or record expected
begin
^
./Main.java:28: error: class, interface, enum, or record expected
    a[1]:=1;
    ^
./Main.java:29: error: class, interface, enum, or record expected
    for i:=1 to n do
    ^
./Main.java:32: error: class, interface, enum, or record expected
        jia;
        ^
./Main.java:33: error: class, interface, enum, or record expected
    end;
    ^
./Main.java:34: error: class, interface, enum, or record expected
    for i:= lb downto 1 do
    ^
./Main.java:36: error: class, interface, enum, or record expected
end.
^
25 errors
正在同步测试数据,请稍后
Found 10 testcases.
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1234 [NOIP1998 普及组] 阶乘之和
题目数据
下载
语言
Java
递交时间
2022-07-02 17:49:23
评测时间
2022-07-02 17:49:23
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes