求助
  • 板块灌水区
  • 楼主efgh123
  • 当前回复7
  • 已保存回复7
  • 发布时间2020/10/31 10:17
  • 上次更新2023/11/5 09:26:27
查看原帖
求助
373979
efgh123楼主2020/10/31 10:17
var
S,ans:string;
flag,l,r,p:longint;
begin
flag:=0;
read(S);
p:=0;
r:=Length(S)-1;
ans:=' ';
for  l:=p to r do
        begin
        if flag=1 then
        begin
            ans:=S[l]+ans;
            p:=p+1;
            flag:=0;
        end;
        if flag=0 then
        begin
            ans:=S[r]+ans; 
            r:=r-1;
            flag:=1;
        end;
    write(ans);
end.

说结尾错

Free Pascal Compiler version 3.0.4+dfsg-22 [2019/01/24] for x86_64

Copyright (c) 1993-2017 by Florian Klaempfl and others

Target OS: Linux for x86-64

Compiling /tmp/compiler_aponbixf/src

src(25,4) Fatal: Syntax error, ";" expected but "." found

Fatal: Compilation aborted

Error: /usr/bin/ppcx64 returned an error exitcode

2020/10/31 10:17
加载中...