/ Vijos /

记录详情

Compile Error

/in/foo.c:1:1: error: unknown type name 'var'
 var djb:array['!'..'z',1..2] of integer;
 ^~~
/in/foo.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
 var djb:array['!'..'z',1..2] of integer;
        ^
/in/foo.c:1:24: error: too many decimal points in number
 var djb:array['!'..'z',1..2] of integer;
                        ^~~~
/in/foo.c:3:4: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
 shu:array[0..100] of int64;
    ^
/in/foo.c:3:11: error: too many decimal points in number
 shu:array[0..100] of int64;
           ^~~~~~
/in/foo.c:5:4: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
 yun:array[0..100] of char;
    ^
/in/foo.c:5:11: error: too many decimal points in number
 yun:array[0..100] of char;
           ^~~~~~
/in/foo.c:7:1: warning: data definition has no type or storage class
 s,stt:string;
 ^
/in/foo.c:7:1: warning: type defaults to 'int' in declaration of 's' [-Wimplicit-int]
/in/foo.c:7:6: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
 s,stt:string;
      ^
/in/foo.c:9:1: warning: data definition has no type or storage class
 i,n,ps,py,p,k:longint;
 ^
/in/foo.c:9:1: warning: type defaults to 'int' in declaration of 'i' [-Wimplicit-int]
/in/foo.c:9:3: warning: type defaults to 'int' in declaration of 'n' [-Wimplicit-int]
 i,n,ps,py,p,k:longint;
   ^
/in/foo.c:9:5: warning: type defaults to 'int' in declaration of 'ps' [-Wimplicit-int]
 i,n,ps,py,p,k:longint;
     ^~
/in/foo.c:9:8: warning: type defaults to 'int' in declaration of 'py' [-Wimplicit-int]
 i,n,ps,py,p,k:longint;
        ^~
/in/foo.c:9:11: warning: type defaults to 'int' in declaration of 'p' [-Wimplicit-int]
 i,n,ps,py,p,k:longint;
           ^
/in/foo.c:9:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
 i,n,ps,py,p,k:longint;
              ^
/in/foo.c:11:1: warning: data definition has no type or storage class
 aim1,aim2,aim3:int64;
 ^~~~
/in/foo.c:11:1: warning: type defaults to 'int' in declaration of 'aim1' [-Wimplicit-int]
/in/foo.c:11:6: warning: type defaults to 'int' in declaration of 'aim2' [-Wimplicit-int]
 aim1,aim2,aim3:int64;
      ^~~~
/in/foo.c:11:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
 aim1,aim2,aim3:int64;
               ^
/in/foo.c:12:1: error: unknown type name 'function'
 function yuns(x,y:int64;fh:char):int64;
 ^~~~~~~~
/in/foo.c:12:18: error: expected ')' before ':' token
 function yuns(x,y:int64;fh:char):int64;
                  ^
/in/foo.c:14:1: error: unknown type name 'var'
 var o:longint;
 ^~~
/in/foo.c:14:6: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
 var o:longint;
      ^
/in/foo.c:16:3: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
 tt:int64;
   ^
/in/foo.c:20:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'case'
 case fh of
 ^~~~
/in/foo.c:24:1: error: expected identifier or '(' before '-'
 '-':yuns:=(x-y) mod 199999;
 ^~~
/in/foo.c:26:1: error: expected identifier or '(' before '*'
 '*':yuns:=(x*y) mod 199999;
 ^~~
/in/foo.c:28:1: error: expected identifier or '(' before '^'
 '^':begin
 ^~~
/in/foo.c:32:1: error: expected identifier or '(' before 'for'
 for o:=1 to y do tt:=(tt*x) mod 199999;
 ^~~
/in/foo.c:34:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
 yuns:=tt;
     ^
/in/foo.c:36:1: warning: data definition has no type or storage class
 end;
 ^~~
/in/foo.c:36:1: warning: type defaults to 'int' in declaration of 'end' [-Wimplicit-int]
/in/foo.c:37:1: warning: data definition has no type or storage class
 end;
 ^~~
/in/foo.c:37:1: warning: type defaults to 'int' in declaration of 'end' [-Wimplicit-int]
/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:1: error: unknown type name 'procedure'
 procedure kid(st:string);
 ^~~~~~~~~
/in/foo.c:40:17: error: expected ')' before ':' token
 procedure kid(st:string);
                 ^
/in/foo.c:42:1: error: unknown type name 'var'
 var ch:char;
 ^~~
/in/foo.c:42:7: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
 var ch:char;
       ^
/in/foo.c:44:1: error: unknown type name 'begin'
 begin
 ^~~~~
/in/foo.c:46:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
 p:=1;ps:=1;py:=0;
  ^
/in/foo.c:46:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
 p:=1;ps:=1;py:=0;
        ^
/in/foo.c:46:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
 p:=1;ps:=1;py:=0;
              ^
/in/foo.c:48:1: error: expected identifier or '(' before 'while'
 while py>-1 do
 ^~~~~
/in/foo.c:54:1: error: expected identifier or '(' before 'if'
 if (ord(ch)>=48) and (ord(ch)=48) and (ord(st[p])djb[yun[py],2] then
 ^~
/in/foo.c:60:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
 yun[py]:=ch;
        ^
/in/foo.c:62:1: warning: data definition has no type or storage class
 inc(p);
 ^~~
/in/foo.c:62:1: warning: type defaults to 'int' in declaration of 'inc' [-Wimplicit-int]
/in/foo.c:62:1: warning: parameter names (without types) in function declaration
/in/foo.c:66:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'else'
 else begin
 ^~~~
/in/foo.c:70:1: warning: data definition has no type or storage class
 dec(py);
 ^~~
/in/foo.c:70:1: warning: type defaults to 'int' in declaration of 'dec' [-Wimplicit-int]
/in/foo.c:70:1: warning: parameter names (without types) in function declaration
/in/foo.c:72:1: warning: data definition has no type or storage class
 dec(ps);
 ^~~
/in/foo.c:72:1: warning: type defaults to 'int' in declaration of 'dec' [-Wimplicit-int]
/in/foo.c:72:1: warning: parameter names (without types) in function declaration
/in/foo.c:74:1: warning: data definition has no type or storage class
 end;
 ^~~
/in/foo.c:74:1: warning: type defaults to 'int' in declaration of 'end' [-Wimplicit-int]
/in/foo.c:76:1: warning: data definition has no type or storage class
 end;
 ^~~
/in/foo.c:76:1: warning: type defaults to 'int' in declaration of 'end' [-Wimplicit-int]
/in/foo.c:78:1: warning: data definition has no type or storage class
 end;
 ^~~
/in/foo.c:78:1: warning: type defaults to 'int' in declaration of 'end' [-Wimplicit-int]
/in/foo.c:79:1: error: unknown type name 'function'
 function f(ss,k:string):string;
 ^~~~~~~~
/in/foo.c:79:16: error: expected ')' before ':' token
 function f(ss,k:string):string;
                ^
/in/foo.c:81:1: error: unknown type name 'var'
 var j:longint;
 ^~~
/in/foo.c:81:6: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
 var j:longint;
      ^
/in/foo.c:85:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'while'
 while pos(' ',ss)>0 do delete(ss,pos(' ',ss),1);
 ^~~~~
/in/foo.c:87:1: error: expected identifier or '(' before 'while'
 while pos('a',ss)>0 do
 ^~~~~
/in/foo.c:93:13: error: expected ')' before numeric constant
 delete(ss,j,1);
             ^
/in/foo.c:95:1: warning: data definition has no type or storage class
 insert(k,ss,j);
 ^~~~~~
/in/foo.c:95:1: warning: type defaults to 'int' in declaration of 'insert' [-Wimplicit-int]
/in/foo.c:95:1: warning: parameter names (without types) in function declaration
/in/foo.c:97:1: warning: data definition has no type or storage class
 end;
 ^~~
/in/foo.c:97:1: warning: type defaults to 'int' in declaration of 'end' [-Wimplicit-int]
/in/foo.c:99:3: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
 ss:=ss+'#';
   ^
/in/foo.c:101:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
 f:=ss;
  ^
/in/foo.c:103:1: warning: data definition has no type or storage class
 end;
 ^~~
/in/foo.c:103:1: warning: type defaults to 'int' in declaration of 'end' [-Wimplicit-int]
/in/foo.c:104:1: error: unknown type name 'begin'
 begin
 ^~~~~
/in/foo.c:106:8: error: expected ']' before ',' token
 djb['+',1]:=1;djb['+',2]:=2;djb['-',1]:=1;d

信息

递交者
类型
递交
题目
P1003 等价表达式
语言
C
递交时间
2017-08-20 15:16:08
评测时间
2017-08-20 15:16:08
评测机
分数
0
总耗时
14ms
峰值内存
2.582 MiB