read works incorrectly with int64 type in an array
Original Reporter info from Mantis: FPCCore
-
Reporter name: FPC core team
Original Reporter info from Mantis: FPCCore
- Reporter name: FPC core team
Description:
The short program listed below does not work.
I had "1 2 4 7" on standard input, but in the table I had "1 2 3 4" (!).
I found a workaround:
var p : array[1..100005] of int64;
i : longint;
x : int64;
begin
for i:=1 to 4 do begin
read(x);
p[i]:=x;
end;
end;
Additional information:
Reporter: Tomasz Boguslawski
EMail: tob at globema dot com dot pl
Mantis conversion info:
- Mantis ID: 5697
- OS: Win32
- Version: 1.0.10