Hello, pavelph. One more bug found :lol:
Your prog outputs '1e+ is legal.'
I suggest you following changes:
[pascal]
...
if (s[1]='-') or (s[1]='+') then delete(s, 1, 1);
if s='' then f:=false else
begin
f:=true;
for n:=1 to length(s) do if not ((s[n]>='0') and (s[n]<='9')) then f:=false;
end ...
Search found 5 matches
- Sat Dec 20, 2003 2:23 am
- Forum: Volume 3 (300-399)
- Topic: 325 - Identifying Legal Pascal Real Constants
- Replies: 63
- Views: 25465
- Fri Dec 19, 2003 6:04 pm
- Forum: Volume 3 (300-399)
- Topic: 325 - Identifying Legal Pascal Real Constants
- Replies: 63
- Views: 25465
- Fri Dec 19, 2003 12:54 am
- Forum: Volume 3 (300-399)
- Topic: 325 - Identifying Legal Pascal Real Constants
- Replies: 63
- Views: 25465
- Tue Dec 16, 2003 3:12 am
- Forum: Pascal
- Topic: Bugs in pascal compiler ? (problem 348)
- Replies: 1
- Views: 6899
Bugs in pascal compiler ? (problem 348)
Hello. I don't understand one thing.
I've posted Problem 348 in Pascal and C versions. For Pascal ver. reply is Wrong Answer and for C ver. is Accepted :o
Is this due to bugs in Free Pascal or have I made some mistakes?
[pascal]
var
t:integer;
q:longint;
n,i,j,k,l:byte;
p:array[0..10] of ...
I've posted Problem 348 in Pascal and C versions. For Pascal ver. reply is Wrong Answer and for C ver. is Accepted :o
Is this due to bugs in Free Pascal or have I made some mistakes?
[pascal]
var
t:integer;
q:longint;
n,i,j,k,l:byte;
p:array[0..10] of ...
- Sun Dec 14, 2003 11:41 pm
- Forum: Volume 3 (300-399)
- Topic: 301 - Transportation
- Replies: 13
- Views: 7848