/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.
^~~