I am new to this - so can someone give accurate information what kind of Pascal compiler (and exact release/build) is used by online judges and whether can it be downloaded for personal use (for WinXP)...
I have completed some progams that run on FreePascal normally - but - I get compile error when I submit them... I have heard about 2: gpc and freepascal, one of them is not longer used... where to find this information?
thanks - actually I hoped to find some docs does ONLINE_JUDGE means something more than some definition for use in ifdef etc. I feel - that not.
OK - fpc (with previous options) allow 'somevar: array of String;' well but - online judge allow only static arrays of string - it is my observation. Now I am coping with wrong answers...
besides - it is said that resources is not actual -http://acm.uva.es/problemset/pascalgpc.html - however - it would be nice to know whether advices about reading input, end of line character etc are useful for the current online judge and try to make relevant corrections?
btw - what is common practice - maybe I shoul try to use C++ - and experience less problems?
kwedeer wrote:besides - it is said that resources is not actual -http://acm.uva.es/problemset/pascalgpc.html - however - it would be nice to know whether advices about reading input, end of line character etc are useful for the current online judge and try to make relevant corrections?
btw - what is common practice - maybe I shoul try to use C++ - and experience less problems?
In ACM contests, C/C++ is the universal language that's supported everywhere. Some regions allow the use of Java and some allow Pascal, but Pascal won't be used at the World Finals anymore.
...One thing that could be wrong is the way you treat line-breaks (combination of read(ch) and write(ch)). As you probably know, the judge translates our Pascal-code to C-code first, and then compiles it. C has a 'funny' way to handle line-breaks, especialy on a unix machine, so things could go wrong here.
I have not verified this, but I have a 'gut-feeling' about it. Try
Is is true at the present moment as well? And if it does - so - what type of converter is used - as I can guess - it can be some open source software also?
...One thing that could be wrong is the way you treat line-breaks (combination of read(ch) and write(ch)). As you probably know, the judge translates our Pascal-code to C-code first, and then compiles it. C has a 'funny' way to handle line-breaks, especialy on a unix machine, so things could go wrong here.
I have not verified this, but I have a 'gut-feeling' about it. Try
Is is true at the present moment as well? And if it does - so - what type of converter is used - as I can guess - it can be some open source software also?
This doesn't apply anymore, FreePascal is a standalone compiler. The issue you mention is years old and applied to gpc.
One of my friends is building a online judge himself. I asked if he could add Pascal to his accepted languages. He then ask me what compiler and version to use and what parameters settings should be added? I would prefer his judge to be as close to your judge as possible. So, if it is possible, can you provide me these details base on the experience you had with this judge? Thanks a lot!