/ Vijos /

记录详情

Compile Error

./Main.java:1: error: class, interface, enum, or record expected
program liukee;
^
./Main.java:2: error: class, interface, enum, or record expected
var
^
./Main.java:4: error: class, interface, enum, or record expected
  goal,s:string;
  ^
./Main.java:5: error: class, interface, enum, or record expected
procedure can;
^
./Main.java:6: error: class, interface, enum, or record expected
begin
^
./Main.java:8: error: class, interface, enum, or record expected
  close(input);
  ^
./Main.java:9: error: class, interface, enum, or record expected
  close(output);
  ^
./Main.java:10: error: class, interface, enum, or record expected
  halt;
  ^
./Main.java:11: error: class, interface, enum, or record expected
end;
^
./Main.java:13: error: class, interface, enum, or record expected
procedure cannot;
^
./Main.java:14: error: class, interface, enum, or record expected
begin
^
./Main.java:15: error: unclosed character literal
  writeln('0 0');
          ^
./Main.java:15: error: unclosed character literal
  writeln('0 0');
              ^
./Main.java:16: error: class, interface, enum, or record expected
  close(input);
  ^
./Main.java:17: error: class, interface, enum, or record expected
  close(output);
  ^
./Main.java:18: error: class, interface, enum, or record expected
  halt;
  ^
./Main.java:19: error: class, interface, enum, or record expected
end;
^
./Main.java:21: error: class, interface, enum, or record expected
function addhash(st:string):boolean;
^
./Main.java:22: error: class, interface, enum, or record expected
  var i:integer;
  ^
./Main.java:23: error: class, interface, enum, or record expected
      value:longint;
      ^
./Main.java:24: error: class, interface, enum, or record expected
  begin
  ^
./Main.java:26: error: class, interface, enum, or record expected
    for i:=1 to length(st) do
    ^
./Main.java:28: error: class, interface, enum, or record expected
    if (hash[value]) then exit(true);
    ^
./Main.java:29: error: class, interface, enum, or record expected
    hash[value]:=true;
    ^
./Main.java:30: error: class, interface, enum, or record expected
    exit(false);
    ^
./Main.java:31: error: class, interface, enum, or record expected
  end;
  ^
./Main.java:33: error: class, interface, enum, or record expected
function check(s1:string):boolean;
^
./Main.java:34: error: class, interface, enum, or record expected
var
^
./Main.java:36: error: class, interface, enum, or record expected
begin
^
./Main.java:38: error: class, interface, enum, or record expected
  if addhash(s1) then exit(false);
  ^
./Main.java:39: error: class, interface, enum, or record expected
  j:=47;
  ^
./Main.java:40: error: class, interface, enum, or record expected
  k:=length(s1);
  ^
./Main.java:41: error: class, interface, enum, or record expected
  while goal[j]=s1[k] do
  ^
./Main.java:44: error: class, interface, enum, or record expected
	dec(k);
	^
./Main.java:45: error: class, interface, enum, or record expected
  end;
  ^
./Main.java:46: error: class, interface, enum, or record expected
  if s1[k]<>'W' then exit(false);
  ^
./Main.java:47: error: class, interface, enum, or record expected
  k:=1;
  ^
./Main.java:48: error: class, interface, enum, or record expected
  while goal[k]=s1[k] do inc(k);
  ^
./Main.java:49: error: class, interface, enum, or record expected
  if s1[k]<>'C' then exit(false);
  ^
./Main.java:50: error: class, interface, enum, or record expected
  for i:=k+1 to length(s1)do
  ^
./Main.java:56: error: class, interface, enum, or record expected
	exit(true);
	^
./Main.java:57: error: class, interface, enum, or record expected
end;
^
./Main.java:59: error: class, interface, enum, or record expected
procedure dfs(s:string);
^
./Main.java:60: error: class, interface, enum, or record expected
var
^
./Main.java:62: error: class, interface, enum, or record expected
begin
^
./Main.java:64: error: class, interface, enum, or record expected
  if check(s) then
  ^
./Main.java:72: error: class, interface, enum, or record expected
end;
^
./Main.java:74: error: class, interface, enum, or record expected
begin
^
./Main.java:75: error: unclosed character literal
  assign(input,'cryptcow.in');
               ^
./Main.java:75: error: unclosed character literal
  assign(input,'cryptcow.in');
                           ^
./Main.java:76: error: class, interface, enum, or record expected
  assign(output,'cryptcow.out');
  ^
./Main.java:76: error: unclosed character literal
  assign(output,'cryptcow.out');
                ^
./Main.java:76: error: unclosed character literal
  assign(output,'cryptcow.out');
                             ^
./Main.java:77: error: class, interface, enum, or record expected
  reset(input);
  ^
./Main.java:78: error: class, interface, enum, or record expected
  rewrite(output);
  ^
./Main.java:79: error: class, interface, enum, or record expected
  fillchar(hash,sizeof(hash),0);
  ^
./Main.java:80: error: class, interface, enum, or record expected
  goal:='Begin the Escape execution at the Break of Dawn';
  ^
./Main.java:80: error: unclosed character literal
  goal:='Begin the Escape execution at the Break of Dawn';
        ^
./Main.java:80: error: unclosed character literal
  goal:='Begin the Escape execution at the Break of Dawn';
                                                        ^
./Main.java:82: error: class, interface, enum, or record expected
  if length(s)<47 then cannot;
  ^
./Main.java:83: error: class, interface, enum, or record expected
  if (length(s)-47) mod 3<>0 then cannot;
  ^
./Main.java:84: error: class, interface, enum, or record expected
  dfs(s);
  ^
./Main.java:85: error: class, interface, enum, or record expected
  cannot;
  ^
./Main.java:86: error: class, interface, enum, or record expected
end.
^
64 errors
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1031 奶牛加密术
语言
Java
递交时间
2022-04-07 19:15:01
评测时间
2022-04-07 19:15:01
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes