Author |
Message |
MysticVegeta
|
Posted: Thu Nov 24, 2005 5:57 pm Post subject: DWITE Turing Discoveries. |
|
|
I have made the following discoveries:
1) You cannot use flexible arrays in Turing because judge is v2.6
2) Cannot use functions with no arguments (has to be with arguments)
3) Cannot have arrays as an argument
There are lots of more still to come, I will keep on editing this.
By the ways people, if we cannot use flexible arrays, in problem 2 (game of life) How are we supposed to keep the birth and survival ratios? (DWITE nov 2005) This is stupid, I am dropping DWITE because judge's and my distance takes up compilation time, and everytime it counts 1 problem as 2 submissions for some reason. Can someone suggest to Mr Will to upgrade their Judge's version? Thanks.
Edit: Also should I state that no one using Turing was able to successfully execute Problem 2. |
|
|
|
|
|
Sponsor Sponsor
|
|
|
Hikaru79
|
Posted: Thu Nov 24, 2005 6:35 pm Post subject: (No subject) |
|
|
There's many, many problems with DWITE, and language incompatibilities is one of them The DWITE is fun, though, especially given the 'team spirit' ... I just wouldn't base my whole ego on it. Not to the point where I'd boycott it just because it didn't run one of my problems |
|
|
|
|
|
Tony
|
Posted: Thu Nov 24, 2005 7:08 pm Post subject: Re: DWITE Turing Discoveries. |
|
|
MysticVegeta wrote: if we cannot use flexible arrays
you declear a huge honking static array and use an integer counter to keep track of its vertual size
You could always pass meaningless arguments to functions, and not use them.
You could declear a global array, and pass an identification to that array to a function. I'd tell you to use pointers, but I have no clue if v2.6 has those. |
Tony's programming blog. DWITE - a programming contest. |
|
|
|
|
MysticVegeta
|
Posted: Thu Nov 24, 2005 8:30 pm Post subject: (No subject) |
|
|
The use of flexible array s in that problem is something like this, Imagine this
code: | var arr : array 1..100 of int
arr(1) := 10
arr(2) := 20 |
Now if I want it to read only the first 2, i would have to go something like this
code: | for x : 1..upper(arr) | But that would make the loop go to 100 and would give an error at 3. Also there is no catchArraysOutOfBoundsException; |
|
|
|
|
|
Tony
|
|
|
|
|
Martin
|
Posted: Thu Nov 24, 2005 8:40 pm Post subject: (No subject) |
|
|
Look at the DWITE as being fun. Don't worry too much about how you do. Enjoy yourself |
|
|
|
|
|
JackTruong
|
Posted: Thu Nov 24, 2005 9:01 pm Post subject: (No subject) |
|
|
Think of this as a way of saying; "learn another programming language". |
|
|
|
|
|
MysticVegeta
|
Posted: Fri Nov 25, 2005 10:14 am Post subject: (No subject) |
|
|
Yep. I think I am gonna do it, I am going to Java, since I already know IO and vars/arrays/loops in it. Lets see how much I can accomplish in 24 days
I am really starting to hate redeclaring predefined functions
Thanks for suppoert guys |
|
|
|
|
|
Sponsor Sponsor
|
|
|
Cervantes
|
Posted: Fri Nov 25, 2005 1:51 pm Post subject: (No subject) |
|
|
That's a shame. I wonder why this problem only surfaced on this competition. Why not previous competitions? No one used flexible arrays or functions with no arguments in previous competitions?
I suppose I should do this in a different language then. Must drag my team though learning Pascal or Java. *sigh*
Too bad they don't support Ruby. That will run from DOS. |
|
|
|
|
|
MysticVegeta
|
Posted: Fri Nov 25, 2005 6:56 pm Post subject: (No subject) |
|
|
Yeah, Cervantes, what will you do, Java or C++? |
|
|
|
|
|
Cervantes
|
Posted: Fri Nov 25, 2005 8:30 pm Post subject: (No subject) |
|
|
MysticVegeta wrote: Yeah, Cervantes, what will you do, Java or C++?
Well...
Cervantes wrote: Pascal or Java
I hope that clears that up. |
|
|
|
|
|
MihaiG
|
Posted: Fri Nov 25, 2005 9:11 pm Post subject: (No subject) |
|
|
if ur going for pascal why not upgrade and go for visual pascal (delphi)... |
|
|
|
|
|
MysticVegeta
|
Posted: Sat Nov 26, 2005 2:03 am Post subject: (No subject) |
|
|
Does that have similar syntax to pascal? |
|
|
|
|
|
bugzpodder
|
Posted: Mon Dec 05, 2005 1:06 am Post subject: (No subject) |
|
|
Hikaru79 wrote: There's many, many problems with DWITE, and language incompatibilities is one of them The DWITE is fun, though, especially given the 'team spirit' ... I just wouldn't base my whole ego on it. Not to the point where I'd boycott it just because it didn't run one of my problems
just give the guy (will sentjens) a howl, he'll listen to ya for the most part. |
|
|
|
|
|
md
|
Posted: Mon Dec 05, 2005 2:01 am Post subject: (No subject) |
|
|
El Comandante wrote: if ur going for pascal why not upgrade and go for visual pascal (delphi)...
Delphi is not "visual pascal" it's an entirely different beast. If your going to learn pascal do it right and learn real pascal. |
|
|
|
|
|
|