记录详情

Compile Error

/in/foo.cc: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.cc: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.cc: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.cc: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.cc:22:14: error: too many decimal points in number
  var c:array[1..9,1..9] of longint;
              ^~~~
/in/foo.cc:22:19: error: too many decimal points in number
  var c:array[1..9,1..9] of longint;
                   ^~~~
/in/foo.cc:24:14: error: too many decimal points in number
      a:array[1..60] of rec;
              ^~~~~
/in/foo.cc:25:21: error: too many decimal points in number
      f1,f2,f3:array[1..9,1..9] of boolean;
                     ^~~~
/in/foo.cc:25:26: error: too many decimal points in number
      f1,f2,f3:array[1..9,1..9] of boolean;
                          ^~~~
/in/foo.cc:1:1: error: 'type' does not name a type
 type rec=record
 ^~~~
/in/foo.cc:3:1: error: 'end' does not name a type
 end;
 ^~~
/in/foo.cc:4:9: error: found ':' in nested-name-specifier, expected '::'
 const fs:array[1..9,1..9] of longint=((6,6,6,6,6,6,6,6,6),
         ^
/in/foo.cc:4:7: error: 'fs' does not name a type
 const fs:array[1..9,1..9] of longint=((6,6,6,6,6,6,6,6,6),
       ^~
/in/foo.cc:13:11: error: found ':' in nested-name-specifier, expected '::'
        num:array[1..9,1..9] of longint=((1,1,1,2,2,2,3,3,3),
           ^
/in/foo.cc:13:8: error: 'num' does not name a type
        num:array[1..9,1..9] of longint=((1,1,1,2,2,2,3,3,3),
        ^~~
/in/foo.cc:22:2: error: 'var' does not name a type
  var c:array[1..9,1..9] of longint;
  ^~~
/in/foo.cc:23:5: error: 'i' does not name a type
     i,j,ans,n,w,max:longint;
     ^
/in/foo.cc:24:7: error: found ':' in nested-name-specifier, expected '::'
      a:array[1..60] of rec;
       ^
/in/foo.cc:24:6: error: 'a' does not name a type
      a:array[1..60] of rec;
      ^
/in/foo.cc:25:6: error: 'f1' does not name a type
      f1,f2,f3:array[1..9,1..9] of boolean;
      ^~
/in/foo.cc:26:2: error: 'procedure' does not name a type
  procedure dfs(n:longint);
  ^~~~~~~~~
/in/foo.cc:27:2: error: 'var' does not name a type
  var i,j,k:longint;
  ^~~
/in/foo.cc:28:2: error: 'begin' does not name a type
  begin
  ^~~~~
/in/foo.cc:33:5: error: 'exit' does not name a type
     exit;
     ^~~~
/in/foo.cc:34:4: error: 'end' does not name a type
    end;
    ^~~
/in/foo.cc:35:3: error: 'i' does not name a type
   i:=a[n].x;
   ^
/in/foo.cc:36:3: error: 'j' does not name a type
   j:=a[n].y;
   ^
/in/foo.cc:37:3: error: expected unqualified-id before 'for'
   for k:=1 to 9 do
   ^~~
/in/foo.cc:41:9: error: 'f2' does not name a type
         f2[j,k]:=false;
         ^~
/in/foo.cc:42:9: error: 'f3' does not name a type
         f3[num[i,j],k]:=false;
         ^~
/in/foo.cc:43:9: error: 'c' does not name a type
         c[i,j]:=k;
         ^
/in/foo.cc:44:9: error: 'ans' does not name a type
         ans:=ans+k*fs[i,j];
         ^~~
/in/foo.cc:45:12: error: expected constructor, destructor, or type conversion before '(' token
         dfs(n-1);
            ^
/in/foo.cc:46:9: error: 'ans' does not name a type
         ans:=ans-k*fs[i,j];
         ^~~
/in/foo.cc:47:9: error: 'f1' does not name a type
         f1[i,k]:=true;
         ^~
/in/foo.cc:48:9: error: 'f2' does not name a type
         f2[j,k]:=true;
         ^~
/in/foo.cc:49:9: error: 'f3' does not name a type
         f3[num[i,j],k]:=true;
         ^~
/in/foo.cc:50:8: error: 'end' does not name a type
        end;
        ^~~
/in/foo.cc:51:2: error: 'end' does not name a type
  end;
  ^~~
/in/foo.cc:52:2: error: 'begin' does not name a type
  begin
  ^~~~~
/in/foo.cc:54:11: error: expected constructor, destructor, or type conversion before '(' token
   fillchar(f2,sizeof(f2),true);
           ^
/in/foo.cc:55:11: error: expected constructor, destructor, or type conversion before '(' token
   fillchar(f3,sizeof(f3),true);
           ^
/in/foo.cc:56:3: error: expected unqualified-id before 'for'
   for i:=1 to 9 do
   ^~~
/in/foo.cc:60:6: error: expected unqualified-id before 'if'
      if c[i,j]=0 then
      ^~
/in/foo.cc:63:8: error: 'a' does not name a type
        a[n].x:=i;
        ^
/in/foo.cc:64:8: error: 'a' does not name a type
        a[n].y:=j;
        ^
/in/foo.cc:65:7: error: 'end' does not name a type
       end
       ^~~
/in/foo.cc:69:8: error: 'f2' does not name a type
        f2[j,c[i,j]]:=false;
        ^~
/in/foo.cc:70:8: error: 'f3' does not name a type
        f3[num[i,j],c[i,j]]:=false;
        ^~
/in/foo.cc:71:8: error: 'ans' does not name a type
        ans:=ans+c[i,j]*fs[i,j];
        ^~~
/in/foo.cc:72:7: error: 'end' does not name a type
       end;
       ^~~
/in/foo.cc:73:5: error: 'end' does not name a type
     end;
     ^~~
/in/foo.cc:74:6: error: expected constructor, destructor, or type conversion before '(' token
   dfs(n);
      ^
/in/foo.cc:75:3: error: expected unqualified-id before 'for'
   for i:=1 to 9 do
   ^~~
/in/foo.cc:80:7: error: 'halt' does not name a type
       halt;
       ^~~~
/in/foo.cc:81:3: error: 'end' does not name a type
   end;
   ^~~
/in/foo.cc:82:8: error: expected constructor, destructor, or type conversion before '(' token
 writeln(max);
        ^
/in/foo.cc:83:1: error: 'end' does not name a type
 end.
 ^~~

信息

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