/ Vijos /

记录详情

Compile Error

/in/foo.cc:3:13: error: too many decimal points in number
   dx:array [1..12] of -2..2=(1,2,-1,-2,-1,-1,0,0,0,0,1,1);
             ^~~~~
/in/foo.cc:3:24: error: too many decimal points in number
   dx:array [1..12] of -2..2=(1,2,-1,-2,-1,-1,0,0,0,0,1,1);
                        ^~~~
/in/foo.cc:4:13: error: too many decimal points in number
   dy:array [1..12] of -2..2=(0,0,0,0,1,-1,1,2,-1,-2,-1,1);
             ^~~~~
/in/foo.cc:4:24: error: too many decimal points in number
   dy:array [1..12] of -2..2=(0,0,0,0,1,-1,1,2,-1,-2,-1,1);
                        ^~~~
/in/foo.cc:6:12: error: too many decimal points in number
   a:array [0..10001,0..3] of longint;
            ^~~~~~~~
/in/foo.cc:6:21: error: too many decimal points in number
   a:array [0..10001,0..3] of longint;
                     ^~~~
/in/foo.cc:7:12: error: too many decimal points in number
   b:array [0..1001,0..1001] of boolean;
            ^~~~~~~
/in/foo.cc:7:20: error: too many decimal points in number
   b:array [0..1001,0..1001] of boolean;
                    ^~~~~~~
/in/foo.cc:9:11: error: too many decimal points in number
   s:array[0..1001,0..1001]of char;
           ^~~~~~~
/in/foo.cc:9:19: error: too many decimal points in number
   s:array[0..1001,0..1001]of char;
                   ^~~~~~~
/in/foo.cc:1:1: error: 'program' does not name a type
 program juhyfds;
 ^~~~~~~
/in/foo.cc:3:5: error: found ':' in nested-name-specifier, expected '::'
   dx:array [1..12] of -2..2=(1,2,-1,-2,-1,-1,0,0,0,0,1,1);
     ^
/in/foo.cc:3:3: error: 'dx' does not name a type
   dx:array [1..12] of -2..2=(1,2,-1,-2,-1,-1,0,0,0,0,1,1);
   ^~
/in/foo.cc:4:5: error: found ':' in nested-name-specifier, expected '::'
   dy:array [1..12] of -2..2=(0,0,0,0,1,-1,1,2,-1,-2,-1,1);
     ^
/in/foo.cc:4:3: error: 'dy' does not name a type
   dy:array [1..12] of -2..2=(0,0,0,0,1,-1,1,2,-1,-2,-1,1);
   ^~
/in/foo.cc:5:1: error: 'var' does not name a type
 var
 ^~~
/in/foo.cc:7:4: error: found ':' in nested-name-specifier, expected '::'
   b:array [0..1001,0..1001] of boolean;
    ^
/in/foo.cc:7:3: error: 'b' does not name a type
   b:array [0..1001,0..1001] of boolean;
   ^
/in/foo.cc:8:3: error: 'i' does not name a type
   i,j,k,n,m:longint;
   ^
/in/foo.cc:9:4: error: found ':' in nested-name-specifier, expected '::'
   s:array[0..1001,0..1001]of char;
    ^
/in/foo.cc:9:3: error: 's' does not name a type
   s:array[0..1001,0..1001]of char;
   ^
/in/foo.cc:10:1: error: 'procedure' does not name a type
 procedure qq(p,q:longint);
 ^~~~~~~~~
/in/foo.cc:11:1: error: 'var' does not name a type
 var
 ^~~
/in/foo.cc:13:1: error: 'begin' does not name a type
 begin
 ^~~~~
/in/foo.cc:15:3: error: 'b' does not name a type
   b[p,q]:=false;
   ^
/in/foo.cc:16:3: error: 't' does not name a type
   t:=1;
   ^
/in/foo.cc:17:3: error: 'w' does not name a type
   w:=1;
   ^
/in/foo.cc:18:3: error: 'a' does not name a type
   a[1,1]:=p;
   ^
/in/foo.cc:19:3: error: 'a' does not name a type
   a[1,2]:=q;
   ^
/in/foo.cc:20:3: error: 'repeat' does not name a type
   repeat
   ^~~~~~
/in/foo.cc:24:3: error: 'y' does not name a type
   y:=a[t,2]+dy[i];
   ^
/in/foo.cc:25:9: error: expected unqualified-id before 'if'
         if (x>0) and (x<=m) and (y>0) and (y<=n) and b[x,y] then
         ^~
/in/foo.cc:28:7: error: 'a' does not name a type
       a[w,1]:=x;
       ^
/in/foo.cc:29:4: error: 'a' does not name a type
    a[w,2]:=y;
    ^
/in/foo.cc:30:7: error: 'b' does not name a type
       b[x,y]:=false;
       ^
/in/foo.cc:31:5: error: 'end' does not name a type
     end;
     ^~~
/in/foo.cc:32:3: error: 'end' does not name a type
   end;
   ^~~
/in/foo.cc:33:5: error: expected constructor, destructor, or type conversion before '(' token
  inc(t);
     ^
/in/foo.cc:34:3: error: 'until' does not name a type
   until t>w;
   ^~~~~
/in/foo.cc:35:1: error: 'end' does not name a type
 end;
 ^~~
/in/foo.cc:36:1: error: 'begin' does not name a type
 begin
 ^~~~~
/in/foo.cc:38:3: error: 'k' does not name a type
   k:=0;
   ^
/in/foo.cc:39:9: error: expected constructor, destructor, or type conversion before '(' token
   readln(m,n);
         ^
/in/foo.cc:40:3: error: expected unqualified-id before 'for'
   for i:=1 to m do
   ^~~
/in/foo.cc:45:6: error: expected unqualified-id before 'if'
      if s[i,j]='#' then
      ^~
/in/foo.cc:47:6: error: expected unqualified-id before 'if'
      if s[i,j]='-' then
      ^~
/in/foo.cc:49:4: error: 'end' does not name a type
    end;
    ^~~
/in/foo.cc:50:3: error: 'readln' does not name a type
   readln;
   ^~~~~~
/in/foo.cc:51:2: error: 'end' does not name a type
  end;
  ^~~
/in/foo.cc:52:3: error: expected unqualified-id before 'for'
   for i:=1 to m do
   ^~~
/in/foo.cc:56:10: error: expected constructor, destructor, or type conversion before '(' token
   writeln(k);
          ^
/in/foo.cc:57:1: error: 'end' does not name a type
 end.
 ^~~

信息

递交者
类型
递交
题目
P1051 送给圣诞夜的极光
语言
C++
递交时间
2017-07-09 17:12:36
评测时间
2017-07-09 17:12:36
评测机
分数
0
总耗时
14ms
峰值内存
2.816 MiB