/ Vijos /

记录详情

Compile Error

foo.cc:7:12: error: too many decimal points in number
 hash:array[1..100000] of boolean;
            ^~~~~~~~~
foo.cc:1:1: error: 'program' does not name a type
 program faf;
 ^~~~~~~
foo.cc:3:1: error: 'var' does not name a type; did you mean 'char'?
 var i,j,n,m,k,t,a:longint;
 ^~~
 char
foo.cc:5:4: error: found ':' in nested-name-specifier, expected '::'
 sum:int64;
    ^
foo.cc:5:1: error: 'sum' does not name a type; did you mean 'enum'?
 sum:int64;
 ^~~
 enum
foo.cc:7:5: error: found ':' in nested-name-specifier, expected '::'
 hash:array[1..100000] of boolean;
     ^
foo.cc:7:1: error: 'hash' does not name a type
 hash:array[1..100000] of boolean;
 ^~~~
foo.cc:9:1: error: 'begin' does not name a type
 begin
 ^~~~~
foo.cc:13:1: error: expected unqualified-id before 'for'
 for i:=1 to k do
 ^~~
foo.cc:19:1: error: expected unqualified-id before 'if'
 if not hash[a] then
 ^~
foo.cc:29:1: error: 'sum' does not name a type; did you mean 'enum'?
 sum:=sum+t-a;
 ^~~
 enum
foo.cc:31:1: error: 'end' does not name a type; did you mean 'enum'?
 end;
 ^~~
 enum
foo.cc:33:1: error: 'end' does not name a type; did you mean 'enum'?
 end;
 ^~~
 enum
foo.cc:35:8: error: expected constructor, destructor, or type conversion before '(' token
 writeln(sum);
        ^
foo.cc:37:1: error: 'end' does not name a type; did you mean 'enum'?
 end.
 ^~~
 enum
自豪的采用HydroJudge(https://github.com/hydro-dev/Hydro)进行评测。

信息

递交者
类型
递交
题目
P1245 座位的争执
语言
C++
递交时间
2021-03-25 21:40:38
评测时间
2021-03-25 21:40:38
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes