fork download
  1. program q1;
  2. var k,x,y,i,n:integer;
  3. s:longint;
  4. begin
  5.  
  6. readln(n);
  7. readln(a);
  8.  
  9. x:=a;
  10. y:=0;
  11.  
  12. for i:=2 to n do begin
  13. readln(k);
  14.  
  15. begin
  16. if (k>y) and (k<x) then
  17. y:=k;
  18. end;
  19.  
  20. begin
  21. if (k>x) then
  22. x:=k;
  23. end;
  24.  
  25. begin
  26. x*y mod 26 <> 0 tnen
  27. s:=x*y;
  28. end;
  29.  
  30. end;
  31.  
  32.  
  33.  
  34. writeln(s);
  35.  
  36.  
  37. end.
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Free Pascal Compiler version 2.6.4+dfsg-6 [2015/05/31] for i386
Copyright (c) 1993-2014 by Florian Klaempfl and others
Target OS: Linux for i386
Compiling prog.pas
prog.pas(7,12) Error: Identifier not found "a"
prog.pas(9,11) Error: Identifier not found "a"
prog.pas(26,26) Error: Illegal expression
prog.pas(26,26) Fatal: Syntax error, ";" expected but "identifier TNEN" found
Fatal: Compilation aborted
Error: /usr/bin/ppc386 returned an error exitcode (normal if you did not specify a source file to be compiled)
stdout
Standard output is empty