/ Vijos /

记录详情

Compile Error

foo.cc:1:12: error: stray '\357' in program
 var max,sum,tot:longint;
            ^
foo.cc:1:13: error: stray '\274' in program
 var max,sum,tot:longint;
             ^
foo.cc:1:14: error: stray '\214' in program
 var max,sum,tot:longint;
              ^
foo.cc:3:10: error: too many decimal points in number
 a:array [0..51,0..51] of boolean;
          ^~~~~
foo.cc:3:16: error: too many decimal points in number
 a:array [0..51,0..51] of boolean;
                ^~~~~
foo.cc:4:10: error: too many decimal points in number
 b:array [1..4,1..2] of integer;
          ^~~~
foo.cc:4:15: error: too many decimal points in number
 b:array [1..4,1..2] of integer;
               ^~~~
foo.cc:5:12: error: too many decimal points in number
 p,q:array [1..50] of integer;
            ^~~~~
foo.cc:6:10: error: too many decimal points in number
 f:array [0..50] of longint;
          ^~~~~
foo.cc:10:14: warning: character constant too long for its type
 assign(input,'matrix.in');
              ^~~~~~~~~~~
foo.cc:11:15: warning: character constant too long for its type
 assign(output,'matrix.out');
               ^~~~~~~~~~~~
foo.cc:1:1: error: 'var' does not name a type; did you mean 'char'?
 var max,sum,tot:longint;
 ^~~
 char
foo.cc:2:1: error: 'g' does not name a type
 g,j,n,m,k1,k2,i:integer;
 ^
foo.cc:3:2: error: found ':' in nested-name-specifier, expected '::'
 a:array [0..51,0..51] of boolean;
  ^
foo.cc:3:1: error: 'a' does not name a type
 a:array [0..51,0..51] of boolean;
 ^
foo.cc:4:2: error: found ':' in nested-name-specifier, expected '::'
 b:array [1..4,1..2] of integer;
  ^
foo.cc:4:1: error: 'b' does not name a type
 b:array [1..4,1..2] of integer;
 ^
foo.cc:5:1: error: 'p' does not name a type
 p,q:array [1..50] of integer;
 ^
foo.cc:6:2: error: found ':' in nested-name-specifier, expected '::'
 f:array [0..50] of longint;
  ^
foo.cc:6:1: error: 'f' does not name a type
 f:array [0..50] of longint;
 ^
foo.cc:8:1: error: 'procedure' does not name a type
 procedure data1;
 ^~~~~~~~~
foo.cc:9:1: error: 'begin' does not name a type
 begin
 ^~~~~
foo.cc:11:7: error: expected constructor, destructor, or type conversion before '(' token
 assign(output,'matrix.out');
       ^
foo.cc:12:6: error: expected constructor, destructor, or type conversion before '(' token
 reset(input);
      ^
foo.cc:13:8: error: expected constructor, destructor, or type conversion before '(' token
 rewrite(output);
        ^
foo.cc:14:1: error: 'end' does not name a type; did you mean 'enum'?
 end;
 ^~~
 enum
foo.cc:16:1: error: 'procedure' does not name a type
 procedure data2;
 ^~~~~~~~~
foo.cc:17:1: error: 'begin' does not name a type
 begin
 ^~~~~
foo.cc:19:6: error: expected constructor, destructor, or type conversion before '(' token
 close(output);
      ^
foo.cc:20:1: error: 'end' does not name a type; did you mean 'enum'?
 end;
 ^~~
 enum
foo.cc:22:1: error: 'procedure' does not name a type
 procedure data(x,y:integer);
 ^~~~~~~~~
foo.cc:23:1: error: 'var' does not name a type; did you mean 'char'?
 var d,z:integer;
 ^~~
 char
foo.cc:24:1: error: 'begin' does not name a type
 begin
 ^~~~~
foo.cc:27:1: error: expected unqualified-id before 'if'
 if tot>=1000000 then begin writeln(sum);halt;end;
 ^~
foo.cc:27:41: error: 'halt' does not name a type
 if tot>=1000000 then begin writeln(sum);halt;end;
                                         ^~~~
foo.cc:27:46: error: 'end' does not name a type; did you mean 'enum'?
 if tot>=1000000 then begin writeln(sum);halt;end;
                                              ^~~
                                              enum
foo.cc:28:4: error: expected constructor, destructor, or type conversion before '(' token
 inc(i);
    ^
foo.cc:29:1: error: 'a' does not name a type
 a[x,y]:=false;
 ^
foo.cc:30:1: error: 'p' does not name a type
 p[i]:=x;
 ^
foo.cc:31:1: error: 'q' does not name a type
 q[i]:=y;
 ^
foo.cc:32:1: error: expected unqualified-id before 'if'
 if i>g then f[i]:=k1*abs(p[i-g]-x)+k2*abs(q[i-g]-y);
 ^~
foo.cc:33:1: error: expected unqualified-id before 'if'
 if i=2*g then begin
 ^~
foo.cc:35:1: error: expected unqualified-id before 'for'
 for z:=g+1 to 2*g do if f[z]>max then max:=f[z];
 ^~~
foo.cc:36:1: error: 'sum' does not name a type; did you mean 'enum'?
 sum:=max;
 ^~~
 enum
foo.cc:37:4: error: expected constructor, destructor, or type conversion before '(' token
 dec(i);
    ^
foo.cc:38:1: error: 'a' does not name a type
 a[x,y]:=true;
 ^
foo.cc:39:1: error: 'exit' does not name a type
 exit;
 ^~~~
foo.cc:40:1: error: 'end' does not name a type; did you mean 'enum'?
 end;
 ^~~
 enum
foo.cc:41:1: error: expected unqualified-id before 'for'
 for d:=1 to 4 do begin data(x+b[d,1],y+b[d,2]);end;
 ^~~
foo.cc:41:48: error: 'end' does not name a type; did you mean 'enum'?
 for d:=1 to 4 do begin data(x+b[d,1],y+b[d,2]);end;
                                                ^~~
                                                enum
foo.cc:42:1: error: 'a' does not name a type
 a[x,y]:=true;
 ^
foo.cc:43:4: error: expected constructor, destructor, or type conversion before '(' token
 dec(i);
    ^
foo.cc:44:1: error: 'end' does not name a type; did you mean 'enum'?
 end;
 ^~~
 enum
foo.cc:45:1: error: 'end' does not name a type; did you mean 'enum'?
 end;
 ^~~
 enum
foo.cc:47:1: error: 'procedure' does not name a type
 procedure datain;
 ^~~~~~~~~
foo.cc:48:1: error: 'begin' does not name a type
 begin
 ^~~~~
foo.cc:51:9: error: expected constructor, destructor, or type conversion before '(' token
 fillchar(a,sizeof(a),false);
         ^
foo.cc:52:1: error: 'b' does not name a type
 b[1,1]:=1;
 ^
foo.cc:53:1: error: 'b' does not name a type
 b[2,1]:=-1;
 ^
foo.cc:54:1: error: 'b' does not name a type
 b[3,2]:=-1;
 ^
foo.cc:55:1: error: 'b' does not name a type
 b[4,2]:=1;
 ^
foo.cc:56:1: error: expected unqualified-id before 'for'
 for i:=1 to n do
 ^~~
foo.cc:59:1: error: 'i' does not name a type
 i:=0;
 ^
foo.cc:60:1: error: 'sum' does not name a type; did you mean 'enum'?
 sum:=maxlongint;
 ^~~
 enum
foo.cc:61:1: error: 'g' does not name a type
 g:=n*m div 2;
 ^
foo.cc:62:5: error: expected constructor, destructor, or type conversion before '(' token
 data(1,1);
     ^
foo.cc:63:8: error: expected constructor, destructor, or type conversion before '(' token
 writeln(sum);
        ^
foo.cc:65:1: error: 'end' does not name a type; did you mean 'enum'?
 end;
 ^~~
 enum
foo.cc:67:1: error: 'begin' does not name a type
 begin
 ^~~~~
foo.cc:71:1: error: 'end' does not name a type; did you mean 'enum'?
 end.
 ^~~
 enum
正在同步测试数据,请稍后
自豪的采用HydroJudge(https://github.com/hydro-dev/Hydro)进行评测。

信息

递交者
类型
递交
题目
P1284 佳佳的魔法阵
语言
C++
递交时间
2021-03-26 21:18:08
评测时间
2021-03-26 21:18:08
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes