Что делатьесли выбивает : встречено 'else', а ожидался оператор, uses robot; begin task('if2'); if wallfromright then; begin left; paint; down; right; paint; up; paint; up; paint; down; end; else paint; left; paint; down; right; paint; right; up; paint; left; end.
begin
task('if2');
if wallfromright then
begin
left;paint;down;right;paint;up;paint;up;paint;down;
end
else begin
paint;left;paint;down;right;paint;right;up;paint;left;
end;
end.
begin
task('if2');
up;
if wallfromup then paint;
right; down;
if wallfromright then paint;
down; left;
if wallfromdown then paint;
left; up;
if wallfromright then paint;
right; paint;
end.