/ Vijos /

记录详情

Compile Error

/in/Main.java:1: error: class, interface, or enum expected
procedure plus(k:longint);
^
/in/Main.java:3: error: class, interface, or enum expected
var i:longint;
^
/in/Main.java:5: error: class, interface, or enum expected
begin
^
/in/Main.java:9: error: class, interface, or enum expected
for i:=1 to b[k,0]do
^
/in/Main.java:15: error: class, interface, or enum expected
b[k,i+1]:=b[k,i+1]+b[k,i]div 10;
^
/in/Main.java:17: error: class, interface, or enum expected
b[k,i]:=b[k,i]mod 10;
^
/in/Main.java:19: error: class, interface, or enum expected
end;
^
/in/Main.java:21: error: class, interface, or enum expected
end;
^
/in/Main.java:23: error: class, interface, or enum expected
begin
^
/in/Main.java:25: error: class, interface, or enum expected
readln(s);l:=length(s);
          ^
/in/Main.java:27: error: class, interface, or enum expected
for i:=1 to l div 2 do
^
/in/Main.java:35: error: class, interface, or enum expected
ss:=copy(s,1,i);
^
/in/Main.java:37: error: class, interface, or enum expected
for j:=1 to l div i-1 do
^
/in/Main.java:39: error: class, interface, or enum expected
if sscopy(s,j*i+1,i)then begin f:=false;break;end;
                                        ^
/in/Main.java:39: error: class, interface, or enum expected
if sscopy(s,j*i+1,i)then begin f:=false;break;end;
                                              ^
/in/Main.java:41: error: class, interface, or enum expected
if f then break;
^
/in/Main.java:43: error: class, interface, or enum expected
end;
^
/in/Main.java:45: error: class, interface, or enum expected
if f then len:=i else len:=l;
^
/in/Main.java:47: error: class, interface, or enum expected
for i:=1 to len do a[i]:=ord(s[len-i+1])-ord('0');
^
/in/Main.java:49: error: class, interface, or enum expected
x:=1;
^
/in/Main.java:51: error: class, interface, or enum expected
if len=1 then
^
/in/Main.java:59: error: class, interface, or enum expected
while x mod 10=0do x:=x div 10;
^
/in/Main.java:61: error: class, interface, or enum expected
writeln(x mod 10);
^
/in/Main.java:63: error: class, interface, or enum expected
halt;
^
/in/Main.java:65: error: class, interface, or enum expected
end;
^
/in/Main.java:67: error: class, interface, or enum expected
a[0]:=len; for i:=2 to 9 do b:=1;
^
/in/Main.java:67: error: class, interface, or enum expected
a[0]:=len; for i:=2 to 9 do b:=1;
           ^
/in/Main.java:69: error: class, interface, or enum expected
make(a,1);
^
/in/Main.java:71: error: class, interface, or enum expected
i:=200;while bb[i]=0 do dec(i);bb[0]:=i;
^
/in/Main.java:71: error: class, interface, or enum expected
i:=200;while bb[i]=0 do dec(i);bb[0]:=i;
       ^
/in/Main.java:71: error: class, interface, or enum expected
i:=200;while bb[i]=0 do dec(i);bb[0]:=i;
                               ^
/in/Main.java:75: error: class, interface, or enum expected
{for i:=2 to 9 do
^
/in/Main.java:81: error: class, interface, or enum expected
for j:=b+1downto 1 do
^
/in/Main.java:85: error: class, interface, or enum expected
writeln(' ',b);
^
/in/Main.java:87: error: class, interface, or enum expected
end;}
^
/in/Main.java:87: error: class, interface, or enum expected
end;}
    ^
/in/Main.java:89: error: class, interface, or enum expected
plus(2);plus(4);plus(8);
        ^
/in/Main.java:89: error: class, interface, or enum expected
plus(2);plus(4);plus(8);
                ^
/in/Main.java:91: error: class, interface, or enum expected
fillchar(bb,sizeof(bb),0);
^
/in/Main.java:93: error: class, interface, or enum expected
for i:=2 to len do
^
/in/Main.java:97: error: class, interface, or enum expected
bb[0]:=len-1;
^
/in/Main.java:101: error: class, interface, or enum expected
for i:=2 to 4 do plus(i);for i:=7 to 9 do plus(i);
^
/in/Main.java:101: error: class, interface, or enum expected
for i:=2 to 4 do plus(i);for i:=7 to 9 do plus(i);
                         ^
/in/Main.java:103: error: class, interface, or enum expected
x:=a[1];////!!!!
^
/in/Main.java:105: error: class, interface, or enum expected
{c:=n div 10;
^
/in/Main.java:107: error: class, interface, or enum expected
for i:=2 to 9do inc(b[i],c);
^
/in/Main.java:109: error: class, interface, or enum expected
c:=n mod 10;
^
/in/Main.java:111: error: class, interface, or enum expected
for i:=2to c do inc(b[i]);}
^
/in/Main.java:111: error: class, interface, or enum expected
for i:=2to c do inc(b[i]);}
                          ^
/in/Main.java:117: error: class, interface, or enum expected
for i:=1 to x do inc(b1[i]);
^
/in/Main.java:119: error: class, interface, or enum expected
{ for i:=2 to 9 do
^
/in/Main.java:125: error: class, interface, or enum expected
for j:=b+1downto 1 do
^
/in/Main.java:129: error: class, interface, or enum expected
writeln(' ',b);
^
/in/Main.java:131: error: class, interface, or enum expected
end;}
^
/in/Main.java:131: error: class, interface, or enum expected
end;}
    ^
/in/Main.java:137: error: class, interface, or enum expected
b1[2]:=b1[2]mod 4;b1[3]:=b1[3]mod 4;
^
/in/Main.java:137: error: class, interface, or enum expected
b1[2]:=b1[2]mod 4;b1[3]:=b1[3]mod 4;
                  ^
/in/Main.java:139: error: class, interface, or enum expected
b1[7]:=b1[7]mod 4;b1[8]:=b1[8]mod 4;
^
/in/Main.java:139: error: class, interface, or enum expected
b1[7]:=b1[7]mod 4;b1[8]:=b1[8]mod 4;
                  ^
/in/Main.java:141: error: class, interface, or enum expected
b1[4]:=b1[4]and 1;b1[9]:=b1[9]and 1;
^
/in/Main.java:141: error: class, interface, or enum expected
b1[4]:=b1[4]and 1;b1[9]:=b1[9]and 1;
                  ^
/in/Main.java:145: error: class, interface, or enum expected
ans:=a2[b1[2]]*a3[b1[3]]*a4[b1[4]]*6*a7[b1[7]]*a8[b1[8]]*a9[b1[9]];
^
/in/Main.java:147: error: class, interface, or enum expected
writeln(ans mod 10);
^
/in/Main.java:149: error: class, interface, or enum expected
end.
^
64 errors

信息

递交者
类型
递交
题目
P1505 信息学老师的失误
语言
Java
递交时间
2021-12-23 20:41:55
评测时间
2021-12-23 20:41:55
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes