/ Vijos /

记录详情

Compile Error

foo.cc:2:1: error: 'procedure' does not name a type
 procedure refresh;
 ^~~~~~~~~
foo.cc:4:1: error: 'var' does not name a type; did you mean 'char'?
 var i,y:longint;
 ^~~
 char
foo.cc:6:1: error: 'begin' does not name a type
 begin
 ^~~~~
foo.cc:10:1: error: 'a' does not name a type
 a[y,0]:=0;
 ^
foo.cc:12:1: error: expected unqualified-id before 'for'
 for i:=1 to a[x,0] do
 ^~~
foo.cc:20:1: error: 'a' does not name a type
 a[y,a[y,0]]:=a[x,i];
 ^
foo.cc:22:1: error: 'end' does not name a type; did you mean 'enum'?
 end;
 ^~~
 enum
foo.cc:24:1: error: 'b' does not name a type
 b[y,0]:=0;
 ^
foo.cc:26:1: error: expected unqualified-id before 'for'
 for i:=1 to b[x,0] do
 ^~~
foo.cc:34:1: error: 'b' does not name a type
 b[y,b[y,0]]:=b[x,i];
 ^
foo.cc:36:1: error: 'end' does not name a type; did you mean 'enum'?
 end;
 ^~~
 enum
foo.cc:38:1: error: 'x' does not name a type
 x:=y;//滚动数组
 ^
foo.cc:40:9: error: expected constructor, destructor, or type conversion before '(' token
 fillchar(f1,sizeof(f1),false);
         ^
foo.cc:42:9: error: expected constructor, destructor, or type conversion before '(' token
 fillchar(f2,sizeof(f2),false);
         ^
foo.cc:44:1: error: 'end' does not name a type; did you mean 'enum'?
 end;
 ^~~
 enum
foo.cc:46:1: error: 'begin' does not name a type
 begin
 ^~~~~
foo.cc:50:5: error: expected constructor, destructor, or type conversion before '(' token
 read(a[x,0]); for i:=1 to a[x,0] do read(a[x,i]);
     ^
foo.cc:50:15: error: expected unqualified-id before 'for'
 read(a[x,0]); for i:=1 to a[x,0] do read(a[x,i]);
               ^~~
foo.cc:52:5: error: expected constructor, destructor, or type conversion before '(' token
 read(b[x,0]); for i:=1 to b[x,0] do read(b[x,i]);
     ^
foo.cc:52:15: error: expected unqualified-id before 'for'
 read(b[x,0]); for i:=1 to b[x,0] do read(b[x,i]);
               ^~~
foo.cc:54:1: error: expected unqualified-id before 'for'
 for i:=1 to a[x,0]-1 do
 ^~~
foo.cc:62:12: error: 'a' does not name a type
 o:=a[x,i]; a[x,i]:=a[x,j]; a[x,j]:=o;
            ^
foo.cc:62:28: error: 'a' does not name a type
 o:=a[x,i]; a[x,i]:=a[x,j]; a[x,j]:=o;
                            ^
foo.cc:64:1: error: 'end' does not name a type; did you mean 'enum'?
 end;
 ^~~
 enum
foo.cc:66:1: error: expected unqualified-id before 'for'
 for i:=1 to b[x,0]-1 do
 ^~~
foo.cc:74:12: error: 'b' does not name a type
 o:=b[x,i]; b[x,i]:=b[x,j]; b[x,j]:=o;
            ^
foo.cc:74:28: error: 'b' does not name a type
 o:=b[x,i]; b[x,i]:=b[x,j]; b[x,j]:=o;
                            ^
foo.cc:76:1: error: 'end' does not name a type; did you mean 'enum'?
 end;
 ^~~
 enum
foo.cc:80:1: error: expected unqualified-id before 'while'
 while true do
 ^~~~~
foo.cc:94:1: error: 'f2' does not name a type
 f2[j]:=true;
 ^~
foo.cc:96:1: error: 'refresh' does not name a type
 refresh;
 ^~~~~~~
foo.cc:98:1: error: 'end' does not name a type; did you mean 'enum'?
 end;
 ^~~
 enum
foo.cc:102:1: error: 'ok' does not name a type
 ok:=true;
 ^~
foo.cc:104:1: error: expected unqualified-id before 'while'
 while ok do
 ^~~~~
foo.cc:110:1: error: expected unqualified-id before 'for'
 for i:=a[x,0]-1 downto 1 do
 ^~~
foo.cc:120:1: error: expected unqualified-id before 'if'
 if a[x,i]+a[x,j]=b[x,k] then
 ^~
foo.cc:126:1: error: 'f1' does not name a type
 f1[i]:=true;
 ^~
foo.cc:128:1: error: 'f1' does not name a type
 f1[j]:=true;
 ^~
foo.cc:130:1: error: 'f2' does not name a type
 f2[k]:=true;
 ^~
foo.cc:132:1: error: 'refresh' does not name a type
 refresh;
 ^~~~~~~
foo.cc:134:1: error: 'ok' does not name a type
 ok:=true;
 ^~
foo.cc:136:1: error: 'end' does not name a type; did you mean 'enum'?
 end;
 ^~~
 enum
foo.cc:138:1: error: 'end' does not name a type; did you mean 'enum'?
 end;
 ^~~
 enum
foo.cc:140:1: error: 'end' does not name a type; did you mean 'enum'?
 end;
 ^~~
 enum
foo.cc:144:1: error: 'ok' does not name a type
 ok:=true;
 ^~
foo.cc:146:1: error: expected unqualified-id before 'while'
 while ok do
 ^~~~~
foo.cc:152:1: error: expected unqualified-id before 'for'
 for i:=b[x,0]-1 downto 1 do
 ^~~
foo.cc:162:1: error: expected unqualified-id before 'if'
 if b[x,i]+b[x,j]=a[x,k] then
 ^~
foo.cc:168:1: error: 'f2' does not name a type
 f2[i]:=true;
 ^~
foo.cc:170:1: error: 'f2' does not name a type
 f2[j]:=true;
 ^~
foo.cc:172:1: error: 'f1' does not name a type
 f1[k]:=true;
 ^~
foo.cc:174:1: error: 'refresh' does not name a type
 refresh;
 ^~~~~~~
foo.cc:176:1: error: 'ok' does not name a type
 ok:=true;
 ^~
foo.cc:178:1: error: 'end' does not name a type; did you mean 'enum'?
 end;
 ^~~
 enum
foo.cc:180:1: error: 'end' does not name a type; did you mean 'enum'?
 end;
 ^~~
 enum
foo.cc:182:1: error: 'end' does not name a type; did you mean 'enum'?
 end;
 ^~~
 enum
foo.cc:186:1: error: expected unqualified-id before 'if'
 if a[x,a[x,0]]>b[x,b[x,0]] then
 ^~
foo.cc:192:1: error: 'a' does not name a type
 a[x,a[x,0]]:=a[x,a[x,0]]-b[x,b[x,0]];
 ^
foo.cc:194:4: error: expected constructor, destructor, or type conversion before '(' token
 dec(b[x,0]);
    ^
foo.cc:196:1: error: expected unqualified-id before 'for'
 for i:=1 to a[x,0]-1 do
 ^~~
foo.cc:204:12: error: 'a' does not name a type
 o:=a[x,i]; a[x,i]:=a[x,j]; a[x,j]:=o;
            ^
foo.cc:204:28: error: 'a' does not name a type
 o:=a[x,i]; a[x,i]:=a[x,j]; a[x,j]:=o;
                            ^
foo.cc:206:1: error: 'end' does not name a type; did you mean 'enum'?
 end;
 ^~~
 enum
foo.cc:208:1: error: 'end' does not name a type; did you mean 'enum'?
 end else
 ^~~
 enum
foo.cc:214:12: error: 'b' does not name a type
 o:=b[x,i]; b[x,i]:=b[x,j]; b[x,j]:=o;
            ^
foo.cc:214:28: error: 'b' does not name a type
 o:=b[x,i]; b[x,i]:=b[x,j]; b[x,j]:=o;
                            ^
foo.cc:216:1: error: 'end' does not name a type; did you mean 'enum'?
 end;
 ^~~
 enum
foo.cc:218:1: error: 'end' does not name a type; did you mean 'enum'?
 end;
 ^~~
 enum
foo.cc:222:4: error: expected constructor, destructor, or type conversion before '(' token
 inc(sum);
    ^
foo.cc:224:1: error: expected unqualified-id before 'if'
 if sum>100000 then
 ^~
foo.cc:230:1: error: expected unqualified-id before 'break'
 break;
 ^~~~~
foo.cc:234:1: error: 'end' does not name a type; did you mean 'enum'?
 end;
 ^~~
 enum
foo.cc:236:1: error: expected unqualified-id before 'if'
 if (a[x,0]=0) and (b[x,0]=0) then break;//抵消完了就输答案
 ^~
foo.cc:238:1: error: 'end' does not name a type; did you mean 'enum'?
 end;
 ^~~
 enum
foo.cc:240:8: error: expected constructor, destructor, or type conversion before '(' token
 writeln(ans);
        ^
foo.cc:242:1: error: 'end' does not name a type; did you mean 'enum'?
 end.
 ^~~
 enum
正在同步测试数据,请稍后
自豪的采用HydroJudge(https://github.com/hydro-dev/Hydro)进行评测。

信息

递交者
类型
递交
题目
P1758 硬币
语言
C++
递交时间
2021-04-17 21:39:56
评测时间
2021-04-17 21:39:56
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes