0_0_14739248_12226.cpp:1:1: error: 'var' does not name a type
var
^
0_0_14739248_12226.cpp:4:1: error: 'function' does not name a type
function gcd(a,b:longint):longint;
^
0_0_14739248_12226.cpp:5:1: error: 'begin' does not name a type
begin
^
0_0_14739248_12226.cpp:8:1: error: 'end' does not name a type
end;
^
0_0_14739248_12226.cpp:13:1: error: 'begin' does not name a type
begin
^
0_0_14739248_12226.cpp:15:1: error: expected unqualified-id before 'for'
for y:=1 to t do
^
0_0_14739248_12226.cpp:18:1: error: expected unqualified-id before 'if'
if n=1 then write(1);
^
0_0_14739248_12226.cpp:19:1: error: expected unqualified-id before 'if'
if n>1 then begin
^
0_0_14739248_12226.cpp:21:1: error: expected unqualified-id before 'for'
for i:=2 to (n+1)div 2 do
^
0_0_14739248_12226.cpp:23:8: error: expected constructor, destructor, or type conversion before '(' token
writeln(ans*2);
^
0_0_14739248_12226.cpp:24:1: error: 'end' does not name a type
end;
^
0_0_14739248_12226.cpp:25:1: error: 'end' does not name a type
end;
^
0_0_14739248_12226.cpp:26:1: error: 'end' does not name a type
end.
^
|