/ Vijos /

记录详情

Compile Error

foo.cc:1:1: error: 'var' does not name a type; did you mean 'char'?
 var
 ^~~
 char
foo.cc:3:5: error: 'k' does not name a type
     k,tot:int64;
     ^
foo.cc:4:1: error: 'begin' does not name a type
 begin
 ^~~~~
foo.cc:6:5: error: 'tot' does not name a type
     tot:=k*(k+1) div 2;
     ^~~
foo.cc:7:5: error: expected unqualified-id before 'for'
     for i:=1 to k do begin
     ^~~
foo.cc:9:12: error: expected constructor, destructor, or type conversion before '(' token
         dec(tot,n);
            ^
foo.cc:10:5: error: 'end' does not name a type; did you mean 'enum'?
     end;
     ^~~
     enum
foo.cc:11:12: error: expected constructor, destructor, or type conversion before '(' token
     writeln(tot);
            ^
foo.cc:12: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:14
评测时间
2021-03-25 21:40:14
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes