/ Vijos /

记录详情

Compile Error

foo.cc:6:14: error: too many decimal points in number
 toward:array[1..4,1..2] of integer=((0,1),(0,-1),(1,0),(-1,0));
              ^~~~
foo.cc:6:19: error: too many decimal points in number
 toward:array[1..4,1..2] of integer=((0,1),(0,-1),(1,0),(-1,0));
                   ^~~~
foo.cc:8:13: error: too many decimal points in number
 queue:array[1..10000] of tLoc;
             ^~~~~~~~
foo.cc:10:11: error: too many decimal points in number
 map:array[1..25,1..25] of char;
           ^~~~~
foo.cc:10:17: error: too many decimal points in number
 map:array[1..25,1..25] of char;
                 ^~~~~
foo.cc:11:12: error: too many decimal points in number
 time:array[1..25,1..25] of integer;
            ^~~~~
foo.cc:11:18: error: too many decimal points in number
 time:array[1..25,1..25] of integer;
                  ^~~~~
foo.cc:89:9: warning: character constant too long for its type
 writeln('55555');
         ^~~~~~~
foo.cc:95:9: warning: character constant too long for its type
 writeln('55555');
         ^~~~~~~
foo.cc:1:1: error: 'type' does not name a type
 type
 ^~~~
foo.cc:4:1: error: 'end' does not name a type; did you mean 'enum'?
 end;
 ^~~
 enum
foo.cc:6:7: error: found ':' in nested-name-specifier, expected '::'
 toward:array[1..4,1..2] of integer=((0,1),(0,-1),(1,0),(-1,0));
       ^
foo.cc:6:1: error: 'toward' does not name a type
 toward:array[1..4,1..2] of integer=((0,1),(0,-1),(1,0),(-1,0));
 ^~~~~~
foo.cc:7:1: error: 'var' does not name a type; did you mean 'char'?
 var
 ^~~
 char
foo.cc:9:1: error: 'top' does not name a type
 top,tail:integer;
 ^~~
foo.cc:10:4: error: found ':' in nested-name-specifier, expected '::'
 map:array[1..25,1..25] of char;
    ^
foo.cc:10:1: error: 'map' does not name a type
 map:array[1..25,1..25] of char;
 ^~~
foo.cc:11:5: error: found ':' in nested-name-specifier, expected '::'
 time:array[1..25,1..25] of integer;
     ^
foo.cc:11:1: error: 'time' does not name a type
 time:array[1..25,1..25] of integer;
 ^~~~
foo.cc:12:1: error: 'height' does not name a type
 height,length,melt:integer;
 ^~~~~~
foo.cc:13:1: error: 'i' does not name a type
 i,j:integer;
 ^
foo.cc:14:1: error: 'a' does not name a type
 a,b:integer;
 ^
foo.cc:15:1: error: 'begin' does not name a type
 begin
 ^~~~~
foo.cc:17:7: error: expected constructor, destructor, or type conversion before '(' token
 readln(length);
       ^
foo.cc:18:7: error: expected constructor, destructor, or type conversion before '(' token
 readln(height);
       ^
foo.cc:19:1: error: expected unqualified-id before 'for'
 for i:=1 to height do
 ^~~
foo.cc:24:1: error: expected unqualified-id before 'if'
 if map[i,j]='s' then
 ^~
foo.cc:27:1: error: 'a' does not name a type
 a:=i;
 ^
foo.cc:28:1: error: 'b' does not name a type
 b:=j;
 ^
foo.cc:29:1: error: 'end' does not name a type; did you mean 'enum'?
 end
 ^~~
 enum
foo.cc:33:1: error: 'end' does not name a type; did you mean 'enum'?
 end;
 ^~~
 enum
foo.cc:34:1: error: 'end' does not name a type; did you mean 'enum'?
 end;
 ^~~
 enum
foo.cc:35:1: error: 'readln' does not name a type
 readln;
 ^~~~~~
foo.cc:36:1: error: 'end' does not name a type; did you mean 'enum'?
 end;
 ^~~
 enum
foo.cc:37:1: error: 'top' does not name a type
 top:=2;
 ^~~
foo.cc:38:1: error: 'tail' does not name a type
 tail:=1;
 ^~~~
foo.cc:39:1: error: 'queue' does not name a type
 queue[1].x:=a;
 ^~~~~
foo.cc:40:1: error: 'queue' does not name a type
 queue[1].y:=b;
 ^~~~~
foo.cc:41:1: error: 'queue' does not name a type
 queue[1].flag:=0;
 ^~~~~
foo.cc:42:1: error: expected unqualified-id before 'while'
 while (top>tail) and (map[queue[tail].x,queue[tail].y]<>'m') do
 ^~~~~
foo.cc:49:1: error: 'queue' does not name a type
 queue[top].x:=x;
 ^~~~~
foo.cc:50:1: error: 'queue' does not name a type
 queue[top].y:=y;
 ^~~~~
foo.cc:51:4: error: expected constructor, destructor, or type conversion before '(' token
 inc(top);
    ^
foo.cc:52:4: error: expected constructor, destructor, or type conversion before '(' token
 inc(tail);
    ^
foo.cc:53:1: error: expected unqualified-id before 'continue'
 continue;
 ^~~~~~~~
foo.cc:54:1: error: 'end' does not name a type; did you mean 'enum'?
 end;
 ^~~
 enum
foo.cc:55:1: error: expected unqualified-id before 'for'
 for i:=1 to 4 do
 ^~~
foo.cc:62:1: error: 'queue' does not name a type
 queue[top].y:=y+toward[i,2];
 ^~~~~
foo.cc:63:1: error: expected unqualified-id before 'if'
 if map[x+toward[i,1],y+toward[i,2]]='#' then
 ^~
foo.cc:66:1: error: 'end' does not name a type; did you mean 'enum'?
 end
 ^~~
 enum
foo.cc:70:1: error: 'end' does not name a type; did you mean 'enum'?
 end;
 ^~~
 enum
foo.cc:71:1: error: expected unqualified-id before 'if'
 if map[x,y]='#' then
 ^~
foo.cc:75:1: error: 'end' does not name a type; did you mean 'enum'?
 end
 ^~~
 enum
foo.cc:79:1: error: 'end' does not name a type; did you mean 'enum'?
 end;
 ^~~
 enum
foo.cc:80:4: error: expected constructor, destructor, or type conversion before '(' token
 inc(top);
    ^
foo.cc:81:1: error: 'end' does not name a type; did you mean 'enum'?
 end;
 ^~~
 enum
foo.cc:82:1: error: 'end' does not name a type; did you mean 'enum'?
 end;
 ^~~
 enum
foo.cc:83:1: error: 'end' does not name a type; did you mean 'enum'?
 end;
 ^~~
 enum
foo.cc:84:1: error: 'end' does not name a type; did you mean 'enum'?
 end;
 ^~~
 enum
foo.cc:85:4: error: expected constructor, destructor, or type conversion before '(' token
 inc(tail);
    ^
foo.cc:86:1: error: 'end' does not name a type; did you mean 'enum'?
 end;
 ^~~
 enum
foo.cc:87:1: error: expected unqualified-id before 'if'
 if map[queue[tail].x,queue[tail].y]<>'m' then
 ^~
foo.cc:90:1: error: 'end' does not name a type; did you mean 'enum'?
 end
 ^~~
 enum
foo.cc:96:1: error: 'end' does not name a type; did you mean 'enum'?
 end
 ^~~
 enum
foo.cc:100:1: error: 'end' does not name a type; did you mean 'enum'?
 end;
 ^~~
 enum
foo.cc:101:1: error: 'end' does not name a type; did you mean 'enum'?
 end;
 ^~~
 enum
foo.cc:102:1: error: 'end' does not name a type; did you mean 'enum'?
 end.
 ^~~
 enum
自豪的采用HydroJudge(https://github.com/hydro-dev/Hydro)进行评测。

信息

递交者
类型
递交
题目
P1340 拯救ice-cream
语言
C++
递交时间
2021-03-26 22:39:26
评测时间
2021-03-26 22:39:26
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes