/ Vijos /

记录详情

Compile Error

/in/foo.cc:7:13: error: too many decimal points in number
 map : array[0..20,0..20]of integer;
             ^~~~~
/in/foo.cc:7:19: error: too many decimal points in number
 map : array[0..20,0..20]of integer;
                   ^~~~~
/in/foo.cc:9:15: error: too many decimal points in number
 check : array[0..4096]of boolean;
               ^~~~~~~
/in/foo.cc:11:13: error: too many decimal points in number
 vis : array[0..1,0..4096]of boolean;
             ^~~~
/in/foo.cc:11:18: error: too many decimal points in number
 vis : array[0..1,0..4096]of boolean;
                  ^~~~~~~
/in/foo.cc:13:11: error: too many decimal points in number
 a : array[0..100000]of record
           ^~~~~~~~~
/in/foo.cc:19:15: error: too many decimal points in number
 num,b : array[0..4096]of integer;
               ^~~~~~~
/in/foo.cc:63:11: error: too many decimal points in number
 c : array[0..11]of integer;
           ^~~~~
/in/foo.cc:1:1: error: 'program' does not name a type
 program vijos_1578;
 ^~~~~~~
/in/foo.cc:3:1: error: 'var' does not name a type
 var
 ^~~
/in/foo.cc:7:5: error: found ':' in nested-name-specifier, expected '::'
 map : array[0..20,0..20]of integer;
     ^
/in/foo.cc:7:1: error: 'map' does not name a type
 map : array[0..20,0..20]of integer;
 ^~~
/in/foo.cc:9:7: error: found ':' in nested-name-specifier, expected '::'
 check : array[0..4096]of boolean;
       ^
/in/foo.cc:9:1: error: 'check' does not name a type
 check : array[0..4096]of boolean;
 ^~~~~
/in/foo.cc:11:5: error: found ':' in nested-name-specifier, expected '::'
 vis : array[0..1,0..4096]of boolean;
     ^
/in/foo.cc:11:1: error: 'vis' does not name a type
 vis : array[0..1,0..4096]of boolean;
 ^~~
/in/foo.cc:13:3: error: found ':' in nested-name-specifier, expected '::'
 a : array[0..100000]of record
   ^
/in/foo.cc:13:1: error: 'a' does not name a type
 a : array[0..100000]of record
 ^
/in/foo.cc:17:1: error: 'end' does not name a type
 end;
 ^~~
/in/foo.cc:19:1: error: 'num' does not name a type
 num,b : array[0..4096]of integer;
 ^~~
/in/foo.cc:23:1: error: 'procedure' does not name a type
 procedure init;
 ^~~~~~~~~
/in/foo.cc:25:1: error: 'var' does not name a type
 var
 ^~~
/in/foo.cc:29:1: error: 'begin' does not name a type
 begin
 ^~~~~
/in/foo.cc:33:7: error: expected constructor, destructor, or type conversion before '(' token
 readln(n);
       ^
/in/foo.cc:35:7: error: expected constructor, destructor, or type conversion before '(' token
 readln(k);
       ^
/in/foo.cc:37:9: error: expected constructor, destructor, or type conversion before '(' token
 fillchar(map,sizeof(map),0);
         ^
/in/foo.cc:39:1: error: expected unqualified-id before 'for'
 for i:=1 to k do
 ^~~
/in/foo.cc:45:1: error: 'map' does not name a type
 map[x,y]:=1;
 ^~~
/in/foo.cc:47:1: error: 'map' does not name a type
 map[y,x]:=1;
 ^~~
/in/foo.cc:49:1: error: 'end' does not name a type
 end;
 ^~~
/in/foo.cc:51:1: error: 'end' does not name a type
 end;
 ^~~
/in/foo.cc:55:1: error: 'procedure' does not name a type
 procedure pre;
 ^~~~~~~~~
/in/foo.cc:57:1: error: 'var' does not name a type
 var
 ^~~
/in/foo.cc:61:6: error: found ':' in nested-name-specifier, expected '::'
 flag : boolean;
      ^
/in/foo.cc:61:1: error: 'flag' does not name a type
 flag : boolean;
 ^~~~
/in/foo.cc:63:3: error: found ':' in nested-name-specifier, expected '::'
 c : array[0..11]of integer;
   ^
/in/foo.cc:63:1: error: 'c' does not name a type
 c : array[0..11]of integer;
 ^
/in/foo.cc:65:1: error: 'begin' does not name a type
 begin
 ^~~~~
/in/foo.cc:69:1: error: expected unqualified-id before 'for'
 for i:=0 to 1 shl n-1 do
 ^~~
/in/foo.cc:75:1: error: 'sum' does not name a type
 sum:=0;
 ^~~
/in/foo.cc:77:1: error: 'k' does not name a type
 k:=i;
 ^
/in/foo.cc:79:1: error: expected unqualified-id before 'while'
 while k0 do
 ^~~~~
/in/foo.cc:85:1: error: expected unqualified-id before 'if'
 if k mod 2=1 then begin inc(sum);c[sum]:=tot;end;
 ^~
/in/foo.cc:85:34: error: 'c' does not name a type
 if k mod 2=1 then begin inc(sum);c[sum]:=tot;end;
                                  ^
/in/foo.cc:85:46: error: 'end' does not name a type
 if k mod 2=1 then begin inc(sum);c[sum]:=tot;end;
                                              ^~~
/in/foo.cc:87:1: error: 'k' does not name a type
 k:=k div 2;
 ^
/in/foo.cc:89:1: error: 'end' does not name a type
 end;
 ^~~
/in/foo.cc:91:1: error: 'flag' does not name a type
 flag:=true;
 ^~~~
/in/foo.cc:93:1: error: expected unqualified-id before 'for'
 for l:=1 to sum do
 ^~~
/in/foo.cc:103:1: error: expected unqualified-id before 'break'
 break;
 ^~~~~
/in/foo.cc:105:1: error: 'end' does not name a type
 end;
 ^~~
/in/foo.cc:107:1: error: expected unqualified-id before 'if'
 if flag then check[i]:=true;
 ^~
/in/foo.cc:109:1: error: 'num' does not name a type
 num[i]:=sum;
 ^~~
/in/foo.cc:111:1: error: 'end' does not name a type
 end;
 ^~~
/in/foo.cc:113:1: error: 'end' does not name a type
 end;
 ^~~

信息

递交者
类型
递交
题目
P1578 渡河
语言
C++
递交时间
2021-12-29 18:53:05
评测时间
2021-12-29 18:53:05
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes