记录详情

Compile Error

/in/foo.cc:4:13: error: too many decimal points in number
 c,p,q:array[0..100,0..100] of qword;
             ^~~~~~
/in/foo.cc:4:20: error: too many decimal points in number
 c,p,q:array[0..100,0..100] of qword;
                    ^~~~~~
/in/foo.cc:5:9: error: too many decimal points in number
 f:array[0..100,0..10000] of qword;
         ^~~~~~
/in/foo.cc:5:16: error: too many decimal points in number
 f:array[0..100,0..10000] of qword;
                ^~~~~~~~
/in/foo.cc:1:1: error: 'program' does not name a type
 program tabel;//奇怪的桌子,长乐20170103
 ^~~~~~~
/in/foo.cc:2:7: error: 'max' does not name a type
 const max=1000000007;
       ^~~
/in/foo.cc:3:1: error: 'var' does not name a type
 var
 ^~~
/in/foo.cc:5:2: error: found ':' in nested-name-specifier, expected '::'
 f:array[0..100,0..10000] of qword;
  ^
/in/foo.cc:5:1: error: 'f' does not name a type
 f:array[0..100,0..10000] of qword;
 ^
/in/foo.cc:6:1: error: 'n' does not name a type
 n,k,i,j,x:integer;
 ^
/in/foo.cc:7:2: error: found ':' in nested-name-specifier, expected '::'
 m:qword;
  ^
/in/foo.cc:7:1: error: 'm' does not name a type
 m:qword;
 ^
/in/foo.cc:9:1: error: 'function' does not name a type
 function power(a:qword;b:qword):qword;
 ^~~~~~~~
/in/foo.cc:9:25: error: found ':' in nested-name-specifier, expected '::'
 function power(a:qword;b:qword):qword;
                         ^
/in/foo.cc:9:24: error: 'b' does not name a type
 function power(a:qword;b:qword):qword;
                        ^
/in/foo.cc:11:1: error: 'var' does not name a type
 var sum:qword;
 ^~~
/in/foo.cc:12:1: error: 'begin' does not name a type
 begin
 ^~~~~
/in/foo.cc:14:1: error: expected unqualified-id before 'if'
 if b=0 then exit(1);
 ^~
/in/foo.cc:15:1: error: 'sum' does not name a type
 sum:=power(a,b div 2);
 ^~~
/in/foo.cc:16:1: error: 'sum' does not name a type
 sum:=(sum*sum) mod max;
 ^~~
/in/foo.cc:17:1: error: expected unqualified-id before 'if'
 if b mod 2<>0 then sum:=(sum*a) mod max;
 ^~
/in/foo.cc:18:5: error: expected constructor, destructor, or type conversion before '(' token
 exit(sum);
     ^
/in/foo.cc:19:1: error: 'end' does not name a type
 end;
 ^~~
/in/foo.cc:20:1: error: 'procedure' does not name a type
 procedure pre_deal; //排列组合预处理
 ^~~~~~~~~
/in/foo.cc:21:1: error: 'var' does not name a type
 var t:qword;
 ^~~
/in/foo.cc:22:1: error: 'begin' does not name a type
 begin
 ^~~~~
/in/foo.cc:24:1: error: 'c' does not name a type
 c[0,0]:=1;
 ^
/in/foo.cc:25:1: error: expected unqualified-id before 'for'
 for i:=1 to n do begin
 ^~~
/in/foo.cc:27:6: error: 'q' does not name a type
      q[i,0]:=1;
      ^
/in/foo.cc:28:6: error: 'p' does not name a type
      p[i,0]:=1;
      ^
/in/foo.cc:29:6: error: expected unqualified-id before 'for'
      for j:=1 to i do begin
      ^~~
/in/foo.cc:32:10: error: 'q' does not name a type
          q[i,j]:=power(c[i,j],t);p[i,j]:=q[i,j]*c[i,j] mod max;
          ^
/in/foo.cc:32:34: error: 'p' does not name a type
          q[i,j]:=power(c[i,j],t);p[i,j]:=q[i,j]*c[i,j] mod max;
                                  ^
/in/foo.cc:33:23: error: 'end' does not name a type
                       end;
                       ^~~
/in/foo.cc:35:18: error: 'end' does not name a type
                  end;
                  ^~~
/in/foo.cc:37:1: error: 'end' does not name a type
 end;
 ^~~
/in/foo.cc:39:1: error: 'begin' does not name a type
 begin //main
 ^~~~~
/in/foo.cc:41:1: error: 'pre_deal' does not name a type
 pre_deal;
 ^~~~~~~~
/in/foo.cc:42:1: error: 'f' does not name a type
 f[0,0]:=1;
 ^
/in/foo.cc:43:1: error: expected unqualified-id before 'for'
 for i:=0 to n-1 do begin
 ^~~
/in/foo.cc:51:19: error: 'end' does not name a type
                   end;
                   ^~~
/in/foo.cc:53:20: error: 'end' does not name a type
                    end;
                    ^~~
/in/foo.cc:54:6: error: 'end' does not name a type
      end;
      ^~~
/in/foo.cc:55:8: error: expected constructor, destructor, or type conversion before '(' token
 writeln(f[n,k]);
        ^
/in/foo.cc:56:1: error: 'end' does not name a type
 end.
 ^~~

信息

递交者
类型
递交
题目
奇怪的桌子
题目数据
下载
语言
C++
递交时间
2017-09-01 12:58:55
评测时间
2017-09-01 12:58:55
评测机
分数
0
总耗时
16ms
峰值内存
2.816 MiB