fork download
  1. var i,t,k: integer;
  2. s,st: string;
  3. begin readln(s,k);
  4. st:=''; k:=k mod 26;
  5. for i:=1 to length(s) do
  6. if upcase(s[i]) in ['a'..'z'] then begin
  7. t:=ord(s[i]) + k;
  8. if ((t > 90) and (t < 97)) or (t > 122) then dec(t,26);
  9. st:=st + chr(t); end
  10. else st:=st + t;
  11. write(st);
  12. end.
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
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 prog.pas
prog.pas(10,29) Error: Operator is not overloaded: "ShortString" + "SmallInt"
prog.pas(12,4) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
Error: /usr/bin/ppcx64 returned an error exitcode
stdout
Standard output is empty