/ Vijos /

记录详情

Compile Error

foo.cc:5:20: error: too many decimal points in number
    5 | l,r,w,f,opt:array [1..200000] of longint;
      |                    ^~~~~~~~~
foo.cc:1:1: error: 'var' does not name a type
    1 | var
      | ^~~
foo.cc:5:1: error: 'l' does not name a type
    5 | l,r,w,f,opt:array [1..200000] of longint;
      | ^
foo.cc:7:1: error: 'function' does not name a type; did you mean 'union'?
    7 | function ccl(a,b,opt:longint):longint;
      | ^~~~~~~~
      | union
foo.cc:9:1: error: 'begin' does not name a type
    9 | begin
      | ^~~~~
foo.cc:15:1: error: expected unqualified-id before numeric constant
   15 | 2: exit(a or b);
      | ^
foo.cc:17:1: error: expected unqualified-id before numeric constant
   17 | 3: exit(a xor b);
      | ^
foo.cc:19:1: error: 'end' does not name a type
   19 | end;
      | ^~~
foo.cc:21:1: error: 'end' does not name a type
   21 | end;
      | ^~~
foo.cc:23:1: error: 'procedure' does not name a type
   23 | procedure dfs(v:longint);
      | ^~~~~~~~~
foo.cc:25:1: error: 'var' does not name a type
   25 | var j1,j2,f1,f2,min:longint;
      | ^~~
foo.cc:27:1: error: 'begin' does not name a type
   27 | begin
      | ^~~~~
foo.cc:31:4: error: expected constructor, destructor, or type conversion before '(' token
   31 | dfs(l[v]);
      |    ^
foo.cc:33:4: error: expected constructor, destructor, or type conversion before '(' token
   33 | dfs(r[v]);
      |    ^
foo.cc:35:1: error: 'w' does not name a type
   35 | w[v]:=ccl(w[l[v]],w[r[v]],opt[v]);
      | ^
foo.cc:37:1: error: 'min' does not name a type
   37 | min:=maxlongint;
      | ^~~
foo.cc:39:1: error: expected unqualified-id before 'for'
   39 | for j1:=0 to 1 do
      | ^~~
foo.cc:49:1: error: expected unqualified-id before 'if'
   49 | if j2=w[r[v]] then f2:=0 else f2:=f[r[v]];
      | ^~
foo.cc:51:1: error: expected unqualified-id before 'if'
   51 | if f1+f2
      | ^~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1395 HYH的逻辑电路
语言
C++
递交时间
2021-12-12 16:38:08
评测时间
2021-12-12 16:38:08
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes