/ Vijos /

记录详情

Compile Error

/in/foo.cc:1:1: error: 'var' does not name a type
 var
 ^~~
/in/foo.cc:5:1: error: 'function' does not name a type
 function Get_Num(n:int64):int64;
 ^~~~~~~~
/in/foo.cc:7:1: error: 'begin' does not name a type
 begin
 ^~~~~
/in/foo.cc:11:1: error: 'end' does not name a type
 end;
 ^~~
/in/foo.cc:13:1: error: 'function' does not name a type
 function Cal(n:int64):int64;
 ^~~~~~~~
/in/foo.cc:15:1: error: 'var' does not name a type
 var
 ^~~
/in/foo.cc:19:1: error: 'begin' does not name a type
 begin
 ^~~~~
/in/foo.cc:23:1: error: 'last' does not name a type
 last:=0;
 ^~~~
/in/foo.cc:25:1: error: 'sum' does not name a type
 sum:=0;
 ^~~
/in/foo.cc:27:1: error: expected unqualified-id before 'while'
 while 2*now+12 then inc(sum,2*Cal(left-1));
 ^~~~~
/in/foo.cc:29:5: error: expected constructor, destructor, or type conversion before '(' token
 exit(sum);
     ^
/in/foo.cc:31:1: error: 'end' does not name a type
 end;
 ^~~
/in/foo.cc:33:1: error: 'begin' does not name a type
 begin
 ^~~~~
/in/foo.cc:37:8: error: expected constructor, destructor, or type conversion before '(' token
 writeln(Cal(n));
        ^
/in/foo.cc:39:1: error: 'end' does not name a type
 end
 ^~~

信息

递交者
类型
递交
题目
P1494 杨辉三角形中的偶数个数
语言
C++
递交时间
2018-02-11 22:04:54
评测时间
2018-02-11 22:04:54
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes