ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1070. Local Time

why Compilation Error again ?
Posted by liuzhizhi 14 Jul 2004 15:37
var
 as,be,bs,ae:real;

procedure init;
 begin
  readln(as,be);
  readln(bs,ae);
 end;

procedure ik;
 var
  I,J:integer;
  flytime1,flytime2:real;
 begin
  for I:=-5 to 5 do
   begin
    if be-i<as then be:=be+24;
    flytime1:=(be-i)-as;
    if ae<bs-i then ae:=ae+24;
    flytime2:=ae-(bs-i);
    if abs(flytime1-flytime2)<1/6 then
     begin
      write(abs(I));
      halt;
     end;
   end;
 end;

begin
 init;
 ik;
end.
"as" is reserved word.
Posted by Vlad Veselov [PMG17, Vinnitsa - KNU, Kiev] 14 Jul 2004 18:58
Re: "as" is reserved word.
Posted by liuzhizhi 15 Jul 2004 06:13
but how many reserved words?

main,as,try.......
Reserved words in Delphi (+)
Posted by Dmitry 'Diman_YES' Kovalioff 15 Jul 2004 13:46
and, array, as, asm, begin, case, class, const, constructor, destructor, dispinterface, div, do, downto, else, end, except, exports, file, finalization, finally, for, function, goto, if, implementation, in, inherited, initialization, inline, interface, is, label, library, mod, nil, not, object, of, or, out, packed, procedure, program, property, raise, record, repeat, resourcestring, set, shl, shr, string, then, threadvar, to, try, type, unit, until, uses, var, while, with, xor
Re: Reserved words in Delphi (+)
Posted by Akshin Salimov 29 Dec 2005 02:28
plz read FAQ before asking such questions...