记录详情

Compile Error

/in/foo.c:1:1: error: unknown type name 'type'
 type rec=record
 ^~~~
/in/foo.c:1:10: error: 'record' undeclared here (not in a function)
 type rec=record
          ^~~~~~
/in/foo.c:2:1: error: expected ',' or ';' before 'x'
 x,y:longint;
 ^
/in/foo.c:3:1: warning: data definition has no type or storage class
 end;
 ^~~
/in/foo.c:3:1: warning: type defaults to 'int' in declaration of 'end' [-Wimplicit-int]
/in/foo.c:4:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
 const fs:array[1..9,1..9] of longint=((6,6,6,6,6,6,6,6,6),
         ^
/in/foo.c:4:16: error: too many decimal points in number
 const fs:array[1..9,1..9] of longint=((6,6,6,6,6,6,6,6,6),
                ^~~~
/in/foo.c:4:21: error: too many decimal points in number
 const fs:array[1..9,1..9] of longint=((6,6,6,6,6,6,6,6,6),
                     ^~~~
/in/foo.c:13:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
        num:array[1..9,1..9] of longint=((1,1,1,2,2,2,3,3,3),
           ^
/in/foo.c:13:18: error: too many decimal points in number
        num:array[1..9,1..9] of longint=((1,1,1,2,2,2,3,3,3),
                  ^~~~
/in/foo.c:13:23: error: too many decimal points in number
        num:array[1..9,1..9] of longint=((1,1,1,2,2,2,3,3,3),
                       ^~~~
/in/foo.c:22:2: error: unknown type name 'var'
  var c:array[1..9,1..9] of longint;
  ^~~
/in/foo.c:22:7: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
  var c:array[1..9,1..9] of longint;
       ^
/in/foo.c:22:14: error: too many decimal points in number
  var c:array[1..9,1..9] of longint;
              ^~~~
/in/foo.c:22:19: error: too many decimal points in number
  var c:array[1..9,1..9] of longint;
                   ^~~~
/in/foo.c:23:5: warning: data definition has no type or storage class
     i,j,ans,n,w,max:longint;
     ^
/in/foo.c:23:5: warning: type defaults to 'int' in declaration of 'i' [-Wimplicit-int]
/in/foo.c:23:7: warning: type defaults to 'int' in declaration of 'j' [-Wimplicit-int]
     i,j,ans,n,w,max:longint;
       ^
/in/foo.c:23:9: warning: type defaults to 'int' in declaration of 'ans' [-Wimplicit-int]
     i,j,ans,n,w,max:longint;
         ^~~
/in/foo.c:23:13: warning: type defaults to 'int' in declaration of 'n' [-Wimplicit-int]
     i,j,ans,n,w,max:longint;
             ^
/in/foo.c:23:15: warning: type defaults to 'int' in declaration of 'w' [-Wimplicit-int]
     i,j,ans,n,w,max:longint;
               ^
/in/foo.c:23:20: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
     i,j,ans,n,w,max:longint;
                    ^
/in/foo.c:24:7: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
      a:array[1..60] of rec;
       ^
/in/foo.c:24:14: error: too many decimal points in number
      a:array[1..60] of rec;
              ^~~~~
/in/foo.c:25:6: warning: data definition has no type or storage class
      f1,f2,f3:array[1..9,1..9] of boolean;
      ^~
/in/foo.c:25:6: warning: type defaults to 'int' in declaration of 'f1' [-Wimplicit-int]
/in/foo.c:25:9: warning: type defaults to 'int' in declaration of 'f2' [-Wimplicit-int]
      f1,f2,f3:array[1..9,1..9] of boolean;
         ^~
/in/foo.c:25:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
      f1,f2,f3:array[1..9,1..9] of boolean;
              ^
/in/foo.c:25:21: error: too many decimal points in number
      f1,f2,f3:array[1..9,1..9] of boolean;
                     ^~~~
/in/foo.c:25:26: error: too many decimal points in number
      f1,f2,f3:array[1..9,1..9] of boolean;
                          ^~~~
/in/foo.c:26:2: error: unknown type name 'procedure'
  procedure dfs(n:longint);
  ^~~~~~~~~
/in/foo.c:26:17: error: expected ')' before ':' token
  procedure dfs(n:longint);
                 ^
/in/foo.c:27:2: error: unknown type name 'var'
  var i,j,k:longint;
  ^~~
/in/foo.c:27:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
  var i,j,k:longint;
           ^
/in/foo.c:29:3: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'if'
   if n=0 then
   ^~
/in/foo.c:33:5: warning: data definition has no type or storage class
     exit;
     ^~~~
/in/foo.c:33:5: warning: type defaults to 'int' in declaration of 'exit' [-Wimplicit-int]
/in/foo.c:33:5: warning: built-in function 'exit' declared as non-function
/in/foo.c:34:4: warning: data definition has no type or storage class
    end;
    ^~~
/in/foo.c:34:4: warning: type defaults to 'int' in declaration of 'end' [-Wimplicit-int]
/in/foo.c:35:4: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
   i:=a[n].x;
    ^
/in/foo.c:36:4: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
   j:=a[n].y;
    ^
/in/foo.c:37:3: error: expected identifier or '(' before 'for'
   for k:=1 to 9 do
   ^~~
/in/foo.c:41:13: error: expected ']' before ',' token
         f2[j,k]:=false;
             ^
/in/foo.c:42:12: error: 'num' undeclared here (not in a function)
         f3[num[i,j],k]:=false;
            ^~~
/in/foo.c:42:17: warning: left-hand operand of comma expression has no effect [-Wunused-value]
         f3[num[i,j],k]:=false;
                 ^
/in/foo.c:42:20: error: expected ']' before ',' token
         f3[num[i,j],k]:=false;
                    ^
/in/foo.c:43:12: error: expected ']' before ',' token
         c[i,j]:=k;
            ^
/in/foo.c:44:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
         ans:=ans+k*fs[i,j];
            ^
/in/foo.c:45:14: error: expected ')' before '-' token
         dfs(n-1);
              ^
/in/foo.c:46:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
         ans:=ans-k*fs[i,j];
            ^
/in/foo.c:47:13: error: expected ']' before ',' token
         f1[i,k]:=true;
             ^
/in/foo.c:48:13: error: expected ']' before ',' token
         f2[j,k]:=true;
             ^
/in/foo.c:49:17: warning: left-hand operand of comma expression has no effect [-Wunused-value]
         f3[num[i,j],k]:=true;
                 ^
/in/foo.c:49:20: error: expected ']' before ',' token
         f3[num[i,j],k]:=true;
                    ^
/in/foo.c:50:8: warning: data definition has no type or storage class
        end;
        ^~~
/in/foo.c:50:8: warning: type defaults to 'int' in declaration of 'end' [-Wimplicit-int]
/in/foo.c:51:2: warning: data definition has no type or storage class
  end;
  ^~~
/in/foo.c:51:2: warning: type defaults to 'int' in declaration of 'end' [-Wimplicit-int]
/in/foo.c:52:2: error: unknown type name 'begin'
  begin
  ^~~~~
/in/foo.c:53:15: error: expected ')' before 'sizeof'
   fillchar(f1,sizeof(f1),true);
               ^~~~~~
/in/foo.c:54:15: error: expected ')' before 'sizeof'
   fillchar(f2,sizeof(f2),true);
               ^~~~~~
/in/foo.c:55:15: error: expected ')' before 'sizeof'
   fillchar(f3,sizeof(f3),true);
               ^~~~~~
/in/foo.c:56:3: error: expected identifier or '(' before 'for'
   for i:=1 to 9 do
   ^~~
/in/foo.c:60:6: error: expected identifier or '(' before 'if'
      if c[i,j]=0 then
      ^~
/in/foo.c:63:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
        a[n].x:=i;
            ^
/in/foo.c:64:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
        a[n].y:=j;
            ^
/in/foo.c:66:6: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'else'
      else
      ^~~~
/in/foo.c:69:12: error: expected ']' before ',' token
        f2[j,c[i,j]]:=false;
            ^
/in/foo.c:70:16: warning: left-hand operand of comma expression has no effect [-Wunused-value]
        f3[num[i,j],c[i,j]]:=false;
                ^
/in/foo.c:70:19: error: expected ']' before ',' token
        f3[num[i,j],c[i,j]]:=false;
                   ^
/in/foo.c:71:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
        ans:=ans+c[i,j]*fs[i,j];
           ^
/in/foo.c:72:7: warning: data definition has no type or storage class
       end;
       ^~~
/in/foo.c:72:7: warning: type defaults to 'int' in declaration of 'end' [-Wimplicit-int]
/in/foo.c:73:5: warning: dat

信息

递交者
类型
自测
题目
P1042 靶形数独
语言
C
递交时间
2019-04-21 11:35:00
评测时间
2019-04-21 11:35:00
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes