/ Vijos /

记录详情

Compile Error

/in/foo.c:1:1: error: unknown type name 'var'
 var pre,res,vis,ok,len:Array[0..101]of longint;
 ^~~
/in/foo.c:1:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
 var pre,res,vis,ok,len:Array[0..101]of longint;
                       ^
/in/foo.c:1:30: error: too many decimal points in number
 var pre,res,vis,ok,len:Array[0..101]of longint;
                              ^~~~~~
/in/foo.c:3:1: warning: data definition has no type or storage class
 lin,ans:Array[0..101]of longint;
 ^~~
/in/foo.c:3:1: warning: type defaults to 'int' in declaration of 'lin' [-Wimplicit-int]
/in/foo.c:3:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
 lin,ans:Array[0..101]of longint;
        ^
/in/foo.c:3:15: error: too many decimal points in number
 lin,ans:Array[0..101]of longint;
               ^~~~~~
/in/foo.c:5:1: warning: data definition has no type or storage class
 i,j,k,m,n,t,l,r,best:longint;
 ^
/in/foo.c:5:1: warning: type defaults to 'int' in declaration of 'i' [-Wimplicit-int]
/in/foo.c:5:3: warning: type defaults to 'int' in declaration of 'j' [-Wimplicit-int]
 i,j,k,m,n,t,l,r,best:longint;
   ^
/in/foo.c:5:5: warning: type defaults to 'int' in declaration of 'k' [-Wimplicit-int]
 i,j,k,m,n,t,l,r,best:longint;
     ^
/in/foo.c:5:7: warning: type defaults to 'int' in declaration of 'm' [-Wimplicit-int]
 i,j,k,m,n,t,l,r,best:longint;
       ^
/in/foo.c:5:9: warning: type defaults to 'int' in declaration of 'n' [-Wimplicit-int]
 i,j,k,m,n,t,l,r,best:longint;
         ^
/in/foo.c:5:11: warning: type defaults to 'int' in declaration of 't' [-Wimplicit-int]
 i,j,k,m,n,t,l,r,best:longint;
           ^
/in/foo.c:5:13: warning: type defaults to 'int' in declaration of 'l' [-Wimplicit-int]
 i,j,k,m,n,t,l,r,best:longint;
             ^
/in/foo.c:5:15: warning: type defaults to 'int' in declaration of 'r' [-Wimplicit-int]
 i,j,k,m,n,t,l,r,best:longint;
               ^
/in/foo.c:5:21: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
 i,j,k,m,n,t,l,r,best:longint;
                     ^
/in/foo.c:7:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
 flag:Boolean;
     ^
/in/foo.c:9:1: warning: data definition has no type or storage class
 s,st:String;
 ^
/in/foo.c:9:1: warning: type defaults to 'int' in declaration of 's' [-Wimplicit-int]
/in/foo.c:9:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
 s,st:String;
     ^
/in/foo.c:11:1: error: unknown type name 'function'
 function bush(s:String):longint; //压缩成二进制处理
 ^~~~~~~~
/in/foo.c:11:16: error: expected ')' before ':' token
 function bush(s:String):longint; //压缩成二进制处理
                ^
/in/foo.c:13:1: error: unknown type name 'var'
 var i,j:longint;
 ^~~
/in/foo.c:13:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
 var i,j:longint;
        ^
/in/foo.c:15:1: error: unknown type name 'begin'
 begin
 ^~~~~
/in/foo.c:17:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
 bush:=0;
     ^
/in/foo.c:19:1: error: expected identifier or '(' before 'for'
 for i:=1 to length(s) do
 ^~~
/in/foo.c:23:1: warning: data definition has no type or storage class
 end;
 ^~~
/in/foo.c:23:1: warning: type defaults to 'int' in declaration of 'end' [-Wimplicit-int]
/in/foo.c:25:1: error: unknown type name 'procedure'
 procedure print(x,y:longint); //输出
 ^~~~~~~~~
/in/foo.c:25:20: error: expected ')' before ':' token
 procedure print(x,y:longint); //输出
                    ^
/in/foo.c:27:1: error: unknown type name 'var'
 var i,j:longint;
 ^~~
/in/foo.c:27:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
 var i,j:longint;
        ^
/in/foo.c:29:1: error: unknown type name 'begin'
 begin
 ^~~~~
/in/foo.c:31:7: warning: multi-character character constant [-Wmultichar]
 write('FD ');
       ^~~~~
/in/foo.c:31:7: error: expected declaration specifiers or '...' before '\x464420'
/in/foo.c:33:1: warning: data definition has no type or storage class
 write(x);
 ^~~~~
/in/foo.c:33:1: warning: type defaults to 'int' in declaration of 'write' [-Wimplicit-int]
/in/foo.c:33:1: warning: parameter names (without types) in function declaration
/in/foo.c:35:7: warning: character constant too long for its type
 write(' is redundant using FDs:');
       ^~~~~~~~~~~~~~~~~~~~~~~~~~
/in/foo.c:35:7: error: expected declaration specifiers or '...' before '\x4644733a'
/in/foo.c:37:1: error: expected identifier or '(' before 'for'
 for i:=1 to y do write(' ',ans[i]);
 ^~~
/in/foo.c:39:1: warning: data definition has no type or storage class
 writeln;
 ^~~~~~~
/in/foo.c:39:1: warning: type defaults to 'int' in declaration of 'writeln' [-Wimplicit-int]
/in/foo.c:41:1: warning: data definition has no type or storage class
 end;
 ^~~
/in/foo.c:41:1: warning: type defaults to 'int' in declaration of 'end' [-Wimplicit-int]
/in/foo.c:43:1: error: unknown type name 'function'
 function dfs(dep,now,goa:longint):Boolean; //DFS搜索,每次都从第一
 ^~~~~~~~
/in/foo.c:43:25: error: expected ')' before ':' token
 function dfs(dep,now,goa:longint):Boolean; //DFS搜索,每次都从第一
                         ^
/in/foo.c:45:1: error: unknown type name 'var'
 var i,j,k:longint; //个开始搜
 ^~~
/in/foo.c:45:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
 var i,j,k:longint; //个开始搜
          ^
/in/foo.c:49:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'if'
 if (now and goa = goa)and(best>dep) then begin
 ^~
/in/foo.c:53:4: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
 ans:=lin;
    ^
/in/foo.c:55:1: warning: data definition has no type or storage class
 exit;
 ^~~~
/in/foo.c:55:1: warning: type defaults to 'int' in declaration of 'exit' [-Wimplicit-int]
/in/foo.c:55:1: warning: built-in function 'exit' declared as non-function
/in/foo.c:57:1: warning: data definition has no type or storage class
 end;
 ^~~
/in/foo.c:57:1: warning: type defaults to 'int' in declaration of 'end' [-Wimplicit-int]
/in/foo.c:59:1: error: expected identifier or '(' before 'if'
 if dep >= best then exit;
 ^~
/in/foo.c:61:1: error: expected identifier or '(' before 'for'
 for i:=1 to n do
 ^~~
/in/foo.c:67:7: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
 vis[i]:=1;
       ^
/in/foo.c:69:8: error: expected ')' before '+' token
 dfs(dep+1,now or res[i],goa);
        ^
/in/foo.c:71:7: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
 vis[i]:=0;
       ^
/in/foo.c:73:1: warning: data definition has no type or storage class
 end;
 ^~~
/in/foo.c:73:1: warning: type defaults to 'int' in declaration of 'end' [-Wimplicit-int]
/in/foo.c:75:1: warning: data definition has no type or storage class
 end;
 ^~~
/in/foo.c:75:1: warning: type defaults to 'int' in declaration of 'end' [-Wimplicit-int]
/in/foo.c:77:1: error: unknown type name 'begin'
 begin
 ^~~~~
/in/foo.c:79:1: warning: parameter names (without types) in function declaration
 readln(n);
 ^~~~~~
/in/foo.c:81:1: error: expected identifier or '(' before 'for'
 for i:=1 to n do begin
 ^~~
/in/foo.c:85:3: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
 st:=copy(s,1,pos('-',s)-1);
   ^
/in/foo.c:87:10: error: expected ')' before numeric constant
 delete(s,1,pos('>',s));
          ^
/in/foo.c:89:7: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
 pre[i]:=bush(st);
       ^
/in/foo.c:91:7: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
 res[i]:=bush(s);
       ^
/in/foo.c:93:1: warning: data definition has no type or storage class
 end;
 ^~~
/in/foo.c:93:1: warning: type defaults to 'int' in declaration of 'end' [-Wimplicit-int]
/in/foo.c:95:1: error: expected identifier or '(' before 'for'
 for i:=1 to n do begin //这里整个FOR都在预判
 ^~~
/in/foo.c:99:7: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
 vis[i]:=1;
       ^
/in/foo.c:101:5: error: expected '=', ',', ';', 'asm' or '__attribut

信息

递交者
类型
递交
题目
P1138 冗余依赖
语言
C
递交时间
2021-12-18 11:22:38
评测时间
2021-12-18 11:22:38
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes