/ Vijos /

记录详情

Compile Error

/in/foo.c:1:7: warning: type defaults to 'int' in declaration of 'py' [-Wimplicit-int]
 const py=100000;
       ^~
/in/foo.c:2:1: error: unknown type name 'type'
 type dd=array[0..50] of longint;
 ^~~~
/in/foo.c:2:9: error: 'array' undeclared here (not in a function)
 type dd=array[0..50] of longint;
         ^~~~~
/in/foo.c:2:15: error: too many decimal points in number
 type dd=array[0..50] of longint;
               ^~~~~
/in/foo.c:2:22: error: expected ',' or ';' before 'of'
 type dd=array[0..50] of longint;
                      ^~
/in/foo.c:3:1: error: unknown type name 'var'
 var
 ^~~
/in/foo.c:4:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
 f:array[0..51,0..600] of dd;
  ^
/in/foo.c:4:9: error: too many decimal points in number
 f:array[0..51,0..600] of dd;
         ^~~~~
/in/foo.c:4:15: error: too many decimal points in number
 f:array[0..51,0..600] of dd;
               ^~~~~~
/in/foo.c:5:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
 d:array[0..51,0..51] of longint;
  ^
/in/foo.c:5:9: error: too many decimal points in number
 d:array[0..51,0..51] of longint;
         ^~~~~
/in/foo.c:5:15: error: too many decimal points in number
 d:array[0..51,0..51] of longint;
               ^~~~~
/in/foo.c:6:1: warning: data definition has no type or storage class
 n,l,i,j,k:longint;
 ^
/in/foo.c:6:1: warning: type defaults to 'int' in declaration of 'n' [-Wimplicit-int]
/in/foo.c:6:3: warning: type defaults to 'int' in declaration of 'l' [-Wimplicit-int]
 n,l,i,j,k:longint;
   ^
/in/foo.c:6:5: warning: type defaults to 'int' in declaration of 'i' [-Wimplicit-int]
 n,l,i,j,k:longint;
     ^
/in/foo.c:6:7: warning: type defaults to 'int' in declaration of 'j' [-Wimplicit-int]
 n,l,i,j,k:longint;
       ^
/in/foo.c:6:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
 n,l,i,j,k:longint;
          ^
/in/foo.c:7:1: warning: data definition has no type or storage class
 ans,t:dd;
 ^~~
/in/foo.c:7:1: warning: type defaults to 'int' in declaration of 'ans' [-Wimplicit-int]
/in/foo.c:7:6: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
 ans,t:dd;
      ^
/in/foo.c:8:1: error: unknown type name 'function'
 function add(a,b:dd):dd;
 ^~~~~~~~
/in/foo.c:8:17: error: expected ')' before ':' token
 function add(a,b:dd):dd;
                 ^
/in/foo.c:9:1: error: unknown type name 'var'
 var i,len:longint;
 ^~~
/in/foo.c:9:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
 var i,len:longint;
          ^
/in/foo.c:10:1: error: unknown type name 'begin'
 begin
 ^~~~~
/in/foo.c:11:14: error: expected ')' before 'sizeof'
 fillchar(add,sizeof(add),0);
              ^~~~~~
/in/foo.c:12:1: error: expected identifier or '(' before 'if'
 if a[0]>b[0] then len:=a[0] else len:=b[0];
 ^~
/in/foo.c:13:1: error: expected identifier or '(' before 'for'
 for i:=1 to len do
 ^~~
/in/foo.c:16:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
 add[i+1]:=add[i+1]+add[i] div py;
         ^
/in/foo.c:17:7: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
 add[i]:=add[i] mod py
       ^
/in/foo.c:19:1: error: expected identifier or '(' before 'if'
 if add[len+1]>0 then inc(len);
 ^~
/in/foo.c:20:7: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
 add[0]:=len;
       ^
/in/foo.c:21:1: warning: data definition has no type or storage class
 end;
 ^~~
/in/foo.c:21:1: warning: type defaults to 'int' in declaration of 'end' [-Wimplicit-int]
/in/foo.c:22:1: error: unknown type name 'begin'
 begin
 ^~~~~
/in/foo.c:23:1: warning: parameter names (without types) in function declaration
 readln(n,l);
 ^~~~~~
/in/foo.c:24:1: error: expected identifier or '(' before 'for'
 for i:=0 to n do
 ^~~
/in/foo.c:28:1: error: expected identifier or '(' before 'for'
 for i:=1 to n do
 ^~~
/in/foo.c:31:6: error: expected ']' before ',' token
 d[i+1,i]:=d[i,i+1];
      ^
/in/foo.c:32:1: warning: data definition has no type or storage class
 end;
 ^~~
/in/foo.c:32:1: warning: type defaults to 'int' in declaration of 'end' [-Wimplicit-int]
/in/foo.c:33:4: error: expected ']' before ',' token
 d[n,1]:=d[n,n+1]; d[1,n]:=d[n,1];
    ^
/in/foo.c:33:22: error: expected ']' before ',' token
 d[n,1]:=d[n,n+1]; d[1,n]:=d[n,1];
                      ^
/in/foo.c:35:1: error: expected identifier or '(' before 'for'
 for i:=1 to n do
 ^~~
/in/foo.c:38:4: error: expected ']' before ',' token
 d[i,0]:=d[0,i];
    ^
/in/foo.c:39:1: warning: data definition has no type or storage class
 end;
 ^~~
/in/foo.c:39:1: warning: type defaults to 'int' in declaration of 'end' [-Wimplicit-int]
/in/foo.c:40:4: error: expected ']' before ',' token
 f[0,0][0]:=1; f[0,0][1]:=1;
    ^
/in/foo.c:40:18: error: expected ']' before ',' token
 f[0,0][0]:=1; f[0,0][1]:=1;
                  ^
/in/foo.c:41:1: error: expected identifier or '(' before 'for'
 for j:=1 to l do
 ^~~
/in/foo.c:45:1: error: expected identifier or '(' before 'for'
 for k:=0 to n do
 ^~~
/in/foo.c:48:4: error: expected ']' before ',' token
 f[i,j]:=t;
    ^
/in/foo.c:49:1: warning: data definition has no type or storage class
 end;
 ^~~
/in/foo.c:49:1: warning: type defaults to 'int' in declaration of 'end' [-Wimplicit-int]
/in/foo.c:50:4: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
 ans:=f[0,l];
    ^
/in/foo.c:51:7: error: expected declaration specifiers or '...' before 'ans'
 write(ans[ans[0]]);
       ^~~
/in/foo.c:52:1: error: expected identifier or '(' before 'for'
 for i:=ans[0]-1 downto 1 do
 ^~~
/in/foo.c:55:1: error: expected identifier or '(' before 'if'
 if ans[i]<100 then write('0');
 ^~
/in/foo.c:56:1: error: expected identifier or '(' before 'if'
 if ans[i]<1000 then write('0');
 ^~
/in/foo.c:57:1: error: expected identifier or '(' before 'if'
 if ans[i]<10000 then write('0');
 ^~
/in/foo.c:58:7: error: expected declaration specifiers or '...' before 'ans'
 write(ans[i]);
       ^~~
/in/foo.c:59:1: warning: data definition has no type or storage class
 end;
 ^~~
/in/foo.c:59:1: warning: type defaults to 'int' in declaration of 'end' [-Wimplicit-int]
/in/foo.c:61:4: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
 end.
    ^

信息

递交者
类型
递交
题目
P1658 萌萌的哈密顿
语言
C
递交时间
2021-07-19 15:55:35
评测时间
2021-07-19 15:55:35
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes