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