Re: [Lazarus] Valladolid Programming Contest simple test fails at compile?

2009-03-29 Thread Thierry Coq
Hello, I've passed successfully passed both tests 3N+1 and 101 Blocks. 3N+1 is similar to VIncent's solution. 101 Blocks solution is attached here. Mode ObjFPC is accepted which means we can use our modern pascal dialects. I was afraid it wouldn't be possible. Thanks. Thierry Vincent Snij

Re: [Lazarus] Valladolid Programming Contest simple test fails at compile?

2009-03-28 Thread Vincent Snijders
Thierry Coq schreef: Thank you guys, Has somebody here delivered a successful pascal program to the UVa online judge: http://icpcres.ecs.baylor.edu/onlinejudge/index.php ? Test problem 100: http://icpcres.ecs.baylor.edu/onlinejudge/index.php?option=com_onlinejudge&Itemid=8&category=3&page=sho

Re: [Lazarus] Valladolid Programming Contest simple test fails at compile?

2009-03-28 Thread Thierry Coq
Thank you guys, The code works perfectly with the keyboard (it won't stop which is normal) or when I feed it an input file (it stops fine after a few milliseconds of work). Eof or Eoln doesn't seem to be the issue. I've tried another problem where the input finishes by the "quit" word, and I

Re: [Lazarus] Valladolid Programming Contest simple test fails at compile?

2009-03-27 Thread Mehmet Erol Sanliturk
On Friday 27 March 2009 08:08:20 pm JoshyFun wrote: > Hello Thierry, > TC>Is there another way recommended for > TC> these contests? > > I have none experience on the contest scene, but eof in the stdin > looks nonsense for me when you input data using the keyboard, 'cos > after the first line (rea

Re: [Lazarus] Valladolid Programming Contest simple test fails at compile?

2009-03-27 Thread JoshyFun
Hello Thierry, Friday, March 27, 2009, 6:23:42 PM, you wrote: TC> Adding {$MODE OBJFPC}on Joshyfun's suggestion solved the compiler error. TC> Now I have an time exceeded issue, which doesn't seem too likely as I TC> implemented a rather standard solution. I wonder if the "repeat until TC> eof"

Re: [Lazarus] Valladolid Programming Contest simple test fails at compile?

2009-03-27 Thread Thierry Coq
yes, it does read from standard input and output file. So there's no need to create textfiles. (It is possible to mention the input and output files in the program declaration such as : program test1(input, output). Adding {$MODE OBJFPC}on Joshyfun's suggestion solved the compiler error. Now I

Re: [Lazarus] Valladolid Programming Contest simple test fails at compile?

2009-03-27 Thread Vincent Snijders
waldo kitty schreef: > Mehmet Erol Sanliturk wrote: >> On Thursday 26 March 2009 05:16:32 pm Thierry Coq wrote: >>> >> TEST PROGRAM >>> >>> program Test1; > [CHOMP] >>> until eof; >>> end. >>> >>> << END OF TEST PROGRAM >>> ___ >>> >> >> At until eof ,

Re: [Lazarus] Valladolid Programming Contest simple test fails at compile?

2009-03-27 Thread waldo kitty
Mehmet Erol Sanliturk wrote: > On Thursday 26 March 2009 05:16:32 pm Thierry Coq wrote: >> >> >> TEST PROGRAM >> >> program Test1; [CHOMP] >> until eof; >> end. >> >> << END OF TEST PROGRAM >> ___ >> > > > At until eof , there should be a file variab

Re: [Lazarus] Valladolid Programming Contest simple test fails at compile?

2009-03-26 Thread Mehmet Erol Sanliturk
On Thursday 26 March 2009 06:47:45 pm Mehmet Erol Sanliturk wrote: > On Thursday 26 March 2009 05:16:32 pm Thierry Coq wrote: > > >> TEST PROGRAM > > > > program Test1; > > > > var > > i, j : integer; //input data > > k, l : integer; //interval > > m: integer; //index > > maxCycles : i

Re: [Lazarus] Valladolid Programming Contest simple test fails at compile?

2009-03-26 Thread Mehmet Erol Sanliturk
On Thursday 26 March 2009 05:16:32 pm Thierry Coq wrote: > > > >> TEST PROGRAM > > program Test1; > > var > i, j : integer; //input data > k, l : integer; //interval > m: integer; //index > maxCycles : integer; //max number of cycles for the interval > Cycles: integer; > > // This f

Re: [Lazarus] Valladolid Programming Contest simple test fails at compile?

2009-03-26 Thread JoshyFun
Hello Thierry, Thursday, March 26, 2009, 10:16:32 PM, you wrote: >>> TEST PROGRAM TC> program Test1; {$MODE OBJFPC} -- Best regards, JoshyFun ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listin

[Lazarus] Valladolid Programming Contest simple test fails at compile?

2009-03-26 Thread Thierry Coq
Hello, I've tried entering the valladolid programming contest, just to see if pascal programs were still accepted. See here: http://icpcres.ecs.baylor.edu/onlinejudge/index.php And I find my simple program doesn't compile. Has anyone tried this before and knows how to deliver a workable piece o