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 1398. Bishop and Pawn

Free Pascal sucks again (+)
Posted by Dmitry 'Diman_YES' Kovalioff 1 Jan 2007 17:40
Such code gets CE:

bx:=ord(LowerCase(ch)[1])-96;

You should use explicit typecast like that:

bx:=ord(LowerCase(string(ch))[1])-96;

Edited by author 01.01.2007 17:41
Re: Free Pascal sucks again (+)
Download FreePascal 2.0.4 and have no problem... I did so!!!