0_0_13757735_22295.cpp:1:1: error: 'var' does not name a type
var
^
0_0_13757735_22295.cpp:3:1: error: 'begin' does not name a type
begin
^
0_0_13757735_22295.cpp:7:7: error: 'sum' does not name a type
sum:=0;
^
0_0_13757735_22295.cpp:8:7: error: expected unqualified-id before 'for'
for i:=1 to n do
^
0_0_13757735_22295.cpp:12:13: error: expected unqualified-id before 'if'
if x=1 then inc(sum);
^
0_0_13757735_22295.cpp:13:11: error: 'end' does not name a type
end;
^
0_0_13757735_22295.cpp:14:9: error: 'readln' does not name a type
readln;
^
0_0_13757735_22295.cpp:15:14: error: expected constructor, destructor, or type conversion before '(' token
writeln(sum+2*n);
^
0_0_13757735_22295.cpp:16:5: error: 'end' does not name a type
end;
^
0_0_13757735_22295.cpp:17:1: error: 'end' does not name a type
end.
^
|