/ Vijos /

记录详情

Compile Error

/in/foo.cc:2:15: error: too many decimal points in number
 type dd=array[0..50] of longint;
               ^~~~~
/in/foo.cc:4:9: error: too many decimal points in number
 f:array[0..51,0..600] of dd;
         ^~~~~
/in/foo.cc:4:15: error: too many decimal points in number
 f:array[0..51,0..600] of dd;
               ^~~~~~
/in/foo.cc:5:9: error: too many decimal points in number
 d:array[0..51,0..51] of longint;
         ^~~~~
/in/foo.cc:5:15: error: too many decimal points in number
 d:array[0..51,0..51] of longint;
               ^~~~~
/in/foo.cc:1:7: error: 'py' does not name a type
 const py=100000;
       ^~
/in/foo.cc:2:1: error: 'type' does not name a type
 type dd=array[0..50] of longint;
 ^~~~
/in/foo.cc:3:1: error: 'var' does not name a type
 var
 ^~~
/in/foo.cc:5:2: error: found ':' in nested-name-specifier, expected '::'
 d:array[0..51,0..51] of longint;
  ^
/in/foo.cc:5:1: error: 'd' does not name a type
 d:array[0..51,0..51] of longint;
 ^
/in/foo.cc:6:1: error: 'n' does not name a type
 n,l,i,j,k:longint;
 ^
/in/foo.cc:7:1: error: 'ans' does not name a type
 ans,t:dd;
 ^~~
/in/foo.cc:8:1: error: 'function' does not name a type
 function add(a,b:dd):dd;
 ^~~~~~~~
/in/foo.cc:9:1: error: 'var' does not name a type
 var i,len:longint;
 ^~~
/in/foo.cc:10:1: error: 'begin' does not name a type
 begin
 ^~~~~
/in/foo.cc:12:1: error: expected unqualified-id before 'if'
 if a[0]>b[0] then len:=a[0] else len:=b[0];
 ^~
/in/foo.cc:13:1: error: expected unqualified-id before 'for'
 for i:=1 to len do
 ^~~
/in/foo.cc:16:1: error: 'add' does not name a type
 add[i+1]:=add[i+1]+add[i] div py;
 ^~~
/in/foo.cc:17:1: error: 'add' does not name a type
 add[i]:=add[i] mod py
 ^~~
/in/foo.cc:19:1: error: expected unqualified-id before 'if'
 if add[len+1]>0 then inc(len);
 ^~
/in/foo.cc:20:1: error: 'add' does not name a type
 add[0]:=len;
 ^~~
/in/foo.cc:21:1: error: 'end' does not name a type
 end;
 ^~~
/in/foo.cc:22:1: error: 'begin' does not name a type
 begin
 ^~~~~
/in/foo.cc:24:1: error: expected unqualified-id before 'for'
 for i:=0 to n do
 ^~~
/in/foo.cc:27:1: error: expected unqualified-id before 'for'
 for i:=1 to n do
 ^~~
/in/foo.cc:30:1: error: 'd' does not name a type
 d[i+1,i]:=d[i,i+1];
 ^
/in/foo.cc:31:1: error: 'end' does not name a type
 end;
 ^~~
/in/foo.cc:32:1: error: 'd' does not name a type
 d[n,1]:=d[n,n+1]; d[1,n]:=d[n,1];
 ^
/in/foo.cc:32:19: error: 'd' does not name a type
 d[n,1]:=d[n,n+1]; d[1,n]:=d[n,1];
                   ^
/in/foo.cc:33:1: error: expected unqualified-id before 'for'
 for i:=1 to n do
 ^~~
/in/foo.cc:36:1: error: 'd' does not name a type
 d[i,0]:=d[0,i];
 ^
/in/foo.cc:37:1: error: 'end' does not name a type
 end;
 ^~~
/in/foo.cc:38:1: error: 'f' does not name a type
 f[0,0][0]:=1; f[0,0][1]:=1;
 ^
/in/foo.cc:38:15: error: 'f' does not name a type
 f[0,0][0]:=1; f[0,0][1]:=1;
               ^
/in/foo.cc:39:1: error: expected unqualified-id before 'for'
 for j:=1 to l do
 ^~~
/in/foo.cc:43:1: error: expected unqualified-id before 'for'
 for k:=0 to n do
 ^~~
/in/foo.cc:46:1: error: 'f' does not name a type
 f[i,j]:=t;
 ^
/in/foo.cc:47:1: error: 'end' does not name a type
 end;
 ^~~
/in/foo.cc:48:1: error: 'ans' does not name a type
 ans:=f[0,l];
 ^~~
/in/foo.cc:49:6: error: expected constructor, destructor, or type conversion before '(' token
 write(ans[ans[0]]);
      ^
/in/foo.cc:50:1: error: expected unqualified-id before 'for'
 for i:=ans[0]-1 downto 1 do
 ^~~
/in/foo.cc:53:1: error: expected unqualified-id before 'if'
 if ans[i]<100 then write('0');
 ^~
/in/foo.cc:54:1: error: expected unqualified-id before 'if'
 if ans[i]<1000 then write('0');
 ^~
/in/foo.cc:55:1: error: expected unqualified-id before 'if'
 if ans[i]<10000 then write('0');
 ^~
/in/foo.cc:56:6: error: expected constructor, destructor, or type conversion before '(' token
 write(ans[i]);
      ^
/in/foo.cc:57:1: error: 'end' does not name a type
 end;
 ^~~
/in/foo.cc:58:1: error: 'end' does not name a type
 end.
 ^~~

信息

递交者
类型
递交
题目
P1658 萌萌的哈密顿
语言
C++
递交时间
2017-05-27 11:19:26
评测时间
2017-05-27 11:19:27
评测机
分数
0
总耗时
10ms
峰值内存
2.672 MiB