/ Vijos /

记录详情

Compile Error

foo.cc:2:13: error: too many decimal points in number
 var a:array[1..12,1..12] of longint;
             ^~~~~
foo.cc:2:19: error: too many decimal points in number
 var a:array[1..12,1..12] of longint;
                   ^~~~~
foo.cc:5:9: error: too many decimal points in number
 b:array[1..5,1..5,1..5] of boolean;
         ^~~~
foo.cc:5:14: error: too many decimal points in number
 b:array[1..5,1..5,1..5] of boolean;
              ^~~~
foo.cc:5:19: error: too many decimal points in number
 b:array[1..5,1..5,1..5] of boolean;
                   ^~~~
foo.cc:6:9: error: too many decimal points in number
 c:array[1..5,1..2] of longint;
         ^~~~
foo.cc:6:14: error: too many decimal points in number
 c:array[1..5,1..2] of longint;
              ^~~~
foo.cc:85:7: warning: character constant too long for its type
 write('No solution possible');
       ^~~~~~~~~~~~~~~~~~~~~~
foo.cc:1:1: error: 'program' does not name a type
 program p1337;
 ^~~~~~~
foo.cc:2:1: error: 'var' does not name a type; did you mean 'char'?
 var a:array[1..12,1..12] of longint;
 ^~~
 char
foo.cc:3:1: error: 'n' does not name a type
 n,sum,i,j,k:longint;
 ^
foo.cc:4:1: error: 'cc' does not name a type
 cc:char;
 ^~
foo.cc:5:2: error: found ':' in nested-name-specifier, expected '::'
 b:array[1..5,1..5,1..5] of boolean;
  ^
foo.cc:5:1: error: 'b' does not name a type
 b:array[1..5,1..5,1..5] of boolean;
 ^
foo.cc:6:2: error: found ':' in nested-name-specifier, expected '::'
 c:array[1..5,1..2] of longint;
  ^
foo.cc:6:1: error: 'c' does not name a type
 c:array[1..5,1..2] of longint;
 ^
foo.cc:8:1: error: 'procedure' does not name a type
 procedure print;
 ^~~~~~~~~
foo.cc:9:1: error: 'var' does not name a type; did you mean 'char'?
 var i,j:longint;
 ^~~
 char
foo.cc:10:1: error: 'begin' does not name a type
 begin
 ^~~~~
foo.cc:14:1: error: 'writeln' does not name a type
 writeln;
 ^~~~~~~
foo.cc:15:1: error: 'end' does not name a type; did you mean 'enum'?
 end;
 ^~~
 enum
foo.cc:16:6: error: expected constructor, destructor, or type conversion before '(' token
 close(output);
      ^
foo.cc:17:1: error: 'halt' does not name a type
 halt;
 ^~~~
foo.cc:18:1: error: 'end' does not name a type; did you mean 'enum'?
 end;
 ^~~
 enum
foo.cc:20:1: error: 'function' does not name a type; did you mean 'union'?
 function fl:boolean;
 ^~~~~~~~
 union
foo.cc:21:1: error: 'var' does not name a type; did you mean 'char'?
 var i,j:longint;
 ^~~
 char
foo.cc:22:1: error: 'begin' does not name a type
 begin
 ^~~~~
foo.cc:26:5: error: expected constructor, destructor, or type conversion before '(' token
 exit(true);
     ^
foo.cc:27:1: error: 'end' does not name a type; did you mean 'enum'?
 end;
 ^~~
 enum
foo.cc:29:1: error: 'function' does not name a type; did you mean 'union'?
 function can(p1,p2,k:longint):boolean;
 ^~~~~~~~
 union
foo.cc:30:1: error: 'var' does not name a type; did you mean 'char'?
 var i,j:longint;
 ^~~
 char
foo.cc:31:1: error: 'begin' does not name a type
 begin
 ^~~~~
foo.cc:35:5: error: expected constructor, destructor, or type conversion before '(' token
 exit(true);
     ^
foo.cc:36:1: error: 'end' does not name a type; did you mean 'enum'?
 end;
 ^~~
 enum
foo.cc:38:1: error: 'procedure' does not name a type
 procedure dfs(k:longint);
 ^~~~~~~~~
foo.cc:39:1: error: 'var' does not name a type; did you mean 'char'?
 var i,j,i1,i2:longint;
 ^~~
 char
foo.cc:40:1: error: 'begin' does not name a type
 begin
 ^~~~~
foo.cc:44:1: error: 'exit' does not name a type
 exit;
 ^~~~
foo.cc:45:1: error: 'end' does not name a type; did you mean 'enum'?
 end;
 ^~~
 enum
foo.cc:46:1: error: expected unqualified-id before 'for'
 for i:=1 to sum do
 ^~~
foo.cc:53:4: error: expected constructor, destructor, or type conversion before '(' token
 dfs(k+1);
    ^
foo.cc:54:1: error: expected unqualified-id before 'for'
 for i1:=1 to c[k,1] do
 ^~~
foo.cc:57:1: error: 'end' does not name a type; did you mean 'enum'?
 end;
 ^~~
 enum
foo.cc:58:1: error: 'end' does not name a type; did you mean 'enum'?
 end;
 ^~~
 enum
foo.cc:60:1: error: 'begin' does not name a type
 begin
 ^~~~~
foo.cc:62:1: error: expected unqualified-id before 'for'
 for i:=1 to n do
 ^~~
foo.cc:65:1: error: expected unqualified-id before 'for'
 for j:=1 to c[i,1] do
 ^~~
foo.cc:70:1: error: expected unqualified-id before 'if'
 if cc='1' then
 ^~
foo.cc:73:4: error: expected constructor, destructor, or type conversion before '(' token
 inc(sum);
    ^
foo.cc:74:1: error: 'end' does not name a type; did you mean 'enum'?
 end
 ^~~
 enum
foo.cc:76:1: error: 'end' does not name a type; did you mean 'enum'?
 end;
 ^~~
 enum
foo.cc:77:1: error: 'readln' does not name a type
 readln;
 ^~~~~~
foo.cc:78: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:1: error: 'sum' does not name a type; did you mean 'enum'?
 sum:=round(sqrt(sum));
 ^~~
 enum
foo.cc:81:1: error: expected unqualified-id before 'for'
 for i:=1 to 12 do
 ^~~
foo.cc:84:4: error: expected constructor, destructor, or type conversion before '(' token
 dfs(1);
    ^
foo.cc:85:6: error: expected constructor, destructor, or type conversion before '(' token
 write('No solution possible');
      ^
foo.cc:86:1: error: 'end' does not name a type; did you mean 'enum'?
 end.
 ^~~
 enum
正在同步测试数据,请稍后
自豪的采用HydroJudge(https://github.com/hydro-dev/Hydro)进行评测。

信息

递交者
类型
递交
题目
P1337 拼图
语言
C++
递交时间
2021-03-26 22:33:30
评测时间
2021-03-26 22:33:30
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes