/ Vijos /

记录详情

Compile Error

foo.cc:3:16: error: too many decimal points in number
    3 | type arr=array[1..20,1..20]of integer;
      |                ^~~~~
foo.cc:3:22: error: too many decimal points in number
    3 | type arr=array[1..20,1..20]of integer;
      |                      ^~~~~
foo.cc:1:1: error: 'program' does not name a type
    1 | program rqnoj237;
      | ^~~~~~~
foo.cc:3:1: error: 'type' does not name a type
    3 | type arr=array[1..20,1..20]of integer;
      | ^~~~
foo.cc:5:1: error: 'var' does not name a type
    5 | var i,j,t,n,m:longint;
      | ^~~
foo.cc:7:2: error: found ':' in nested-name-specifier, expected '::'
    7 | a:arr;
      |  ^
      |  ::
foo.cc:7:1: error: 'a' does not name a type
    7 | a:arr;
      | ^
foo.cc:9:1: error: 'procedure' does not name a type
    9 | procedure ping(x,y:longint);forward;
      | ^~~~~~~~~
foo.cc:9:29: error: 'forward' does not name a type
    9 | procedure ping(x,y:longint);forward;
      |                             ^~~~~~~
foo.cc:11:1: error: 'procedure' does not name a type
   11 | procedure t1(x,y:longint);//拼第1块拼图
      | ^~~~~~~~~
foo.cc:13:1: error: 'begin' does not name a type
   13 | begin
      | ^~~~~
foo.cc:17:1: error: expected unqualified-id before 'if'
   17 | if x>n-2 then exit;
      | ^~
foo.cc:19:1: error: expected unqualified-id before 'if'
   19 | if a[x+1,y]>0 then exit;
      | ^~
foo.cc:21:1: error: expected unqualified-id before 'if'
   21 | if a[x+2,y]>0 then exit;
      | ^~
foo.cc:23:1: error: expected unqualified-id before 'if'
   23 | if a[x+2,y+1]>0 then exit;
      | ^~
foo.cc:25:1: error: 'a' does not name a type
   25 | a[x,y]:=1;
      | ^
foo.cc:27:1: error: 'a' does not name a type
   27 | a[x+1,y]:=1;
      | ^
foo.cc:29:1: error: 'a' does not name a type
   29 | a[x+2,y]:=1;
      | ^
foo.cc:31:1: error: 'a' does not name a type
   31 | a[x+2,y+1]:=1;
      | ^
foo.cc:33:1: error: expected unqualified-id before 'if'
   33 | if y=m then ping(x+1,1)else ping(x,y+1);
      | ^~
foo.cc:35:1: error: 'a' does not name a type
   35 | a[x,y]:=0;
      | ^
foo.cc:37:1: error: 'a' does not name a type
   37 | a[x+1,y]:=0;
      | ^
foo.cc:39:1: error: 'a' does not name a type
   39 | a[x+2,y]:=0;
      | ^
foo.cc:41:1: error: 'a' does not name a type
   41 | a[x+2,y+1]:=0;
      | ^
foo.cc:43:1: error: 'end' does not name a type
   43 | end;
      | ^~~
foo.cc:45:1: error: 'procedure' does not name a type
   45 | procedure t2(x,y:longint);//拼第2块拼图
      | ^~~~~~~~~
foo.cc:47:1: error: 'begin' does not name a type
   47 | begin
      | ^~~~~
foo.cc:51:1: error: expected unqualified-id before 'if'
   51 | if x>n-1 then exit;
      | ^~
foo.cc:53:1: error: expected unqualified-id before 'if'
   53 | if a[x+1,y]>0 then exit;
      | ^~
foo.cc:55:1: error: expected unqualified-id before 'if'
   55 | if a[x,y+1]>0 then exit;
      | ^~
foo.cc:57:1: error: expected unqualified-id before 'if'
   57 | if a[x,y+2]>0 then exit;
      | ^~
foo.cc:59:1: error: 'a' does not name a type
   59 | a[x,y]:=2;
      | ^
foo.cc:61:1: error: 'a' does not name a type
   61 | a[x,y+1]:=2;
      | ^
foo.cc:63:1: error: 'a' does not name a type
   63 | a[x+1,y]:=2;
      | ^
foo.cc:65:1: error: 'a' does not name a type
   65 | a[x,y+2]:=2;
      | ^
foo.cc:67:1: error: expected unqualified-id before 'if'
   67 | if y=m then ping(x+1,1)else ping(x,y+1);
      | ^~
foo.cc:69:1: error: 'a' does not name a type
   69 | a[x,y]:=0;
      | ^
foo.cc:71:1: error: 'a' does not name a type
   71 | a[x,y+1]:=0;
      | ^
foo.cc:73:1: error: 'a' does not name a type
   73 | a[x+1,y]:=0;
      | ^
foo.cc:75:1: error: 'a' does not name a type
   75 | a[x,y+2]:=0;
      | ^
foo.cc:77:1: error: 'end' does not name a type
   77 | end;
      | ^~~
foo.cc:79:1: error: 'procedure' does not name a type
   79 | procedure t3(x,y:longint);//拼第3块拼图
      | ^~~~~~~~~
foo.cc:81:1: error: 'begin' does not name a type
   81 | begin
      | ^~~~~
foo.cc:85:1: error: expected unqualified-id before 'if'
   85 | if x>n-2 then exit;
      | ^~
foo.cc:87:1: error: expected unqualified-id before 'if'
   87 | if a[x,y+1]>0 then exit;
      | ^~
foo.cc:89:1: error: expected unqualified-id before 'if'
   89 | if a[x+1,y+1]>0 then exit;
      | ^~
foo.cc:91:1: error: expected unqualified-id before 'if'
   91 | if a[x+2,y+1]>0 then exit;
      | ^~
foo.cc:93:1: error: 'a' does not name a type
   93 | a[x,y]:=3;
      | ^
foo.cc:95:1: error: 'a' does not name a type
   95 | a[x,y+1]:=3;
      | ^
foo.cc:97:1: error: 'a' does not name a type
   97 | a[x+1,y+1]:=3;
      | ^
foo.cc:99:1: error: 'a' does not name a type
   99 | a[x+2,y+1]:=3;
      | ^
foo.cc:101:1: error: expected unqualified-id before 'if'
  101 | if y=m then ping(x+1,1)else ping(x,y+1);
      | ^~
foo.cc:103:1: error: 'a' does not name a type
  103 | a[x,y]:=0;
      | ^
foo.cc:105:1: error: 'a' does not name a type
  105 | a[x,y+1]:=0;
      | ^
foo.cc:107:1: error: 'a' does not name a type
  107 | a[x+1,y+1]:=0;
      | ^
foo.cc:109:1: error: 'a' does not name a type
  109 | a[x+2,y+1]:=0;
      | ^
foo.cc:111:1: error: 'end' does not name a type
  111 | end;
      | ^~~
foo.cc:113:1: error: 'procedure' does not name a type
  113 | procedure t4(x,y:longint);//拼第4块拼图
      | ^~~~~~~~~
foo.cc:115:1: error: 'begin' does not name a type
  115 | begin
      | ^~~~~
foo.cc:119:1: error: expected unqualified-id before 'if'
  119 | if a[x+1,y]>0 then exit;
      | ^~
foo.cc:121:1: error: expected unqualified-id before 'if'
  121 | if a[x+1,y-1]>0 then exit;
      | ^~
foo.cc:123:1: error: expected unqualified-id before 'if'
  123 | if a[x+1,y-2]>0 then exit;
      | ^~
foo.cc:125:1: error: 'a' does not name a type
  125 | a[x,y]:=4;
      | ^
foo.cc:127:1: error: 'a' does not name a type
  127 | a[x+1,y]:=4;
      | ^
foo.cc:129:1: error: 'a' does not name a type
  129 | a[x+1,y-1]:=4;
      | ^
foo.cc:131:1: error: 'a' does not name a type
  131 | a[x+1,y-2]:=4;
      | ^
foo.cc:133:1: error: expected unqualified-id before 'if'
  133 | if y=m then ping(x+1,1)else ping(x,y+1);
      | ^~
foo.cc:135:1: error: 'a' does not name a type
  135 | a[x,y]:=0;
      | ^
foo.cc:137:1: error: 'a' does not name a type
  137 | a[x+1,y]:=0;
      | ^
foo.cc:139:1: error: 'a' does not name a type
  139 | a[x+1,y-1]:=0;
      | ^
foo.cc:141:1: error: 'a' does not name a type
  141 | a[x+1,y-2]:=0;
      | ^
foo.cc:143:1: error: 'end' does not name a type
  143 | end;
      | ^~~
foo.cc:145:1: error: 'function' does not name a type; did you mean 'union'?
  145 | function small(var a,b:arr):boolean;//判断哪种方式更小
      | ^~~~~~~~
      | union
foo.cc:147:1: error: 'var' does not name a type
  147 | var i,j:longint;
      | ^~~
foo.cc:149:1: error: 'begin' does not name a type
  149 | begin
      | ^~~~~
foo.cc:153:1: error: expected unqualified-id before 'for'
  153 | for i:=1 to n do
      | ^~~
foo.cc:161:1: error: 'end' does not name a type
  161 | end;
      | ^~~
foo.cc:163:1: error: 'end' does not name a type
  163 | end;
      | ^~~
foo.cc:165:1: error: 'procedure' does not name a type
  165 | procedure turn(var g:arr);//旋转90度
      | ^~~~~~~~~
foo.cc:167:1: error: 'var' does not name a type
  167 | var i,j:longint;
      | ^~~
foo.cc:169:2: error: found ':' in nested-name-specifier, expected '::'
  169 | h:arr;
      |  ^
      |  ::
foo.cc:169:1: error: 'h' does not name a type
  169 | h:arr;
      | ^
foo.cc:171:1: error: 'begin' does not name a type
  171 | begin
      | ^~~~~
foo.cc:175:1: error: expected unqualified-id before 'for'
  175 | for i:=1 to m do
      | ^~~
foo.cc:181:1: error: 'i' does not name a type
  181 | i:=n; n:=m; m:=i;
      | ^
foo.cc:181:7: error: 'n' does not name a type
  181 | i:=n; n:=m; m:=i;
      |       ^
foo.cc:181:13: error: 'm' does not name a type
  181 | i:=n; n:=m; m:=i;
      |             ^
foo.cc:183:1: error: 'end' does not name a type
  183 | end;
      | ^~~
foo.cc:185:1: error: 'procedure' does not name a type
  185 | procedure Check;//判重
      | ^~~~~~~~~
foo.cc:187:1: error: 'var' does not name a type
  187 | var i,j:longint;
      | ^~~
foo.cc:189:2: error: found ':' in nested-name-specifier, expected '::'
  189 | h:arr;
      |  ^
      |  ::
foo.cc:189:1: error: 'h' does not name a type
  189 | h:arr;
      | ^
foo.cc:191:1: error: 'begin' does not name a type
  191 | begin
      | ^~~~~
foo.cc:195:1: error: expected unqualified-id before 'if'
  195 | if n=m then
      | ^~
foo.cc:203:5: error: expected constructor, destructor, or type conversion before '(' token
  203 | turn(h);
      |     ^
foo.cc:205:1: error: 'end' does not name a type
  205 | end
      | ^~~
foo.cc:215:5: error: expected constructor, destructor, or type conversion before '(' token
  215 | turn(h); turn(h);
      |     ^
foo.cc:215:14: error: expected constructor, destructor, or type conversion before '(' token
  215 | turn(h); turn(h);
      |              ^
foo.cc:217:1: error: 'end' does not name a type
  217 | end;
      | ^~~
foo.cc:219:4: error: expected constructor, destructor, or type conversion before '(' token
  219 | inc(t);
      |    ^
foo.cc:221:1: error: 'end' does not name a type
  221 | end;
      | ^~~
foo.cc:223:1: error: 'procedure' does not name a type
  223 | procedure ping(x,y:longint);//拼图
      | ^~~~~~~~~
foo.cc:225:1: error: 'var' does not name a type
  225 | var i,j:longint;
      | ^~~
foo.cc:227:1: error: 'begin' does not name a type
  227 | begin
      | ^~~~~
foo.cc:243:1: error: 'end' does not name a type
  243 | end
      | ^~~
foo.cc:251:3: error: expected constructor, destructor, or type conversion before '(' token
  251 | t2(x,y);
      |   ^
foo.cc:253:3: error: expected constructor, destructor, or type conversion before '(' token
  253 | t3(x,y);
      |   ^
foo.cc:255:3: error: expected constructor, destructor, or type conversion before '(' token
  255 | t4(x,y);
      |   ^
foo.cc:257:1: error: 'end' does not name a type
  257 | end;
      | ^~~
foo.cc:259:1: error: 'end' does not name a type
  259 | end;
      | ^~~
foo.cc:261:1: error: 'end' does not name a type
  261 | end;
      | ^~~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1438 设计师之梦
语言
C++
递交时间
2021-12-12 18:55:16
评测时间
2021-12-12 18:55:16
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes