/ Vijos /

记录详情

Compile Error

/in/foo.cc:5:14: error: too many decimal points in number
    5 | var f:array [0..1000,0..1000] of longint;
      |              ^~~~~~~
/in/foo.cc:5:22: error: too many decimal points in number
    5 | var f:array [0..1000,0..1000] of longint;
      |                      ^~~~~~~
/in/foo.cc:6:16: error: too many decimal points in number
    6 |     map:array [0..1000,0..1000] of longint;
      |                ^~~~~~~
/in/foo.cc:6:24: error: too many decimal points in number
    6 |     map:array [0..1000,0..1000] of longint;
      |                        ^~~~~~~
/in/foo.cc:7:23: error: too many decimal points in number
    7 |     line,sum,w:array [0..1000] of longint;
      |                       ^~~~~~~
/in/foo.cc:1:1: error: 'program' does not name a type
    1 | program vijos1642(Freewing);
      | ^~~~~~~
/in/foo.cc:3:1: error: 'uses' does not name a type
    3 | uses math;
      | ^~~~
/in/foo.cc:5:1: error: 'var' does not name a type
    5 | var f:array [0..1000,0..1000] of longint;
      | ^~~
/in/foo.cc:6:8: error: found ':' in nested-name-specifier, expected '::'
    6 |     map:array [0..1000,0..1000] of longint;
      |        ^
      |        ::
/in/foo.cc:6:5: error: 'map' does not name a type
    6 |     map:array [0..1000,0..1000] of longint;
      |     ^~~
/in/foo.cc:7:5: error: 'line' does not name a type
    7 |     line,sum,w:array [0..1000] of longint;
      |     ^~~~
/in/foo.cc:8:5: error: 'i' does not name a type
    8 |     i,j,k,n,m,x:longint;
      |     ^
/in/foo.cc:10:1: error: 'procedure' does not name a type
   10 | procedure tree_line(x:longint);
      | ^~~~~~~~~
/in/foo.cc:11:1: error: 'var' does not name a type
   11 | var i:longint;
      | ^~~
/in/foo.cc:12:1: error: 'begin' does not name a type
   12 | begin
      | ^~~~~
/in/foo.cc:14:6: error: 'line' does not name a type
   14 |      line[k]:=x;
      |      ^~~~
/in/foo.cc:15:6: error: 'sum' does not name a type
   15 |      sum[x]:=1;
      |      ^~~
/in/foo.cc:16:6: error: expected unqualified-id before 'for'
   16 |      for i:=1 to map[x,0] do begin
      |      ^~~
/in/foo.cc:18:12: error: expected constructor, destructor, or type conversion before '(' token
   18 |         inc(sum[x],sum[map[x,i]]);
      |            ^
/in/foo.cc:19:6: error: 'end' does not name a type
   19 |      end;
      |      ^~~
/in/foo.cc:20:1: error: 'end' does not name a type
   20 | end;
      | ^~~
/in/foo.cc:22:1: error: 'procedure' does not name a type
   22 | procedure DP;
      | ^~~~~~~~~
/in/foo.cc:23:1: error: 'var' does not name a type
   23 | var i,j:longint;
      | ^~~
/in/foo.cc:24:1: error: 'begin' does not name a type
   24 | begin
      | ^~~~~
/in/foo.cc:30:9: error: 'end' does not name a type
   30 |         end;
      |         ^~~
/in/foo.cc:31:1: error: 'end' does not name a type
   31 | end;
      | ^~~
/in/foo.cc:34:1: error: 'begin' does not name a type
   34 | begin
      | ^~~~~
/in/foo.cc:38:14: error: expected constructor, destructor, or type conversion before '(' token
   38 |      fillchar(line,sizeof(line),0);
      |              ^
/in/foo.cc:39:14: error: expected constructor, destructor, or type conversion before '(' token
   39 |      fillchar(sum,sizeof(sum),0);
      |              ^
/in/foo.cc:40:6: error: 'k' does not name a type
   40 |      k:=0;
      |      ^
/in/foo.cc:41:6: error: expected unqualified-id before 'for'
   41 |      for i:=1 to n do begin
      |      ^~~
/in/foo.cc:43:9: error: expected unqualified-id before 'if'
   43 |         if map[i,0]>0 then begin
      |         ^~
/in/foo.cc:45:11: error: expected unqualified-id before 'for'
   45 |           for j:=1 to map[i,0] do
      |           ^~~
/in/foo.cc:47:9: error: 'end' does not name a type
   47 |         end;
      |         ^~~
/in/foo.cc:48:6: error: 'readln' does not name a type
   48 |      readln;
      |      ^~~~~~
/in/foo.cc:49:6: error: 'end' does not name a type
   49 |      end;
      |      ^~~
/in/foo.cc:51:15: error: expected constructor, destructor, or type conversion before '(' token
   51 |      tree_line(1);
      |               ^
/in/foo.cc:53:14: error: expected constructor, destructor, or type conversion before '(' token
   53 |      fillchar(f,sizeof(f),0);
      |              ^
/in/foo.cc:54:6: error: 'DP' does not name a type
   54 |      DP;
      |      ^~
/in/foo.cc:56:13: error: expected constructor, destructor, or type conversion before '(' token
   56 |      writeln(f[1,m]);
      |             ^
/in/foo.cc:60:1: error: 'end' does not name a type
   60 | end.
      | ^~~

信息

递交者
类型
递交
题目
P1642 班长的任务
语言
C++
递交时间
1 个月前
评测时间
1 个月前
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes