[OCLUG-devel] ICFP Contest 2004

Stephen Crane scrane at cornerkitchenpeddler.com
Wed Jun 9 14:02:27 PDT 2004


On Monday, June 07, 2004 10:14 am, Stephen Crane wrote:
> Hi all -
>
> A while back there was a message on the main oclug list about the ICFP
> contest (http://www.cis.upenn.edu/group/proj/plclub/contest/)
> Well I attempted to enter (ran out of time, though). Attached is my
> simulator. It reads in a world file and two ant finite-state-machine files,
> runs them, and dumps the board for each round to STDOUT (I would suggest
> using a > pipe).
>
> Wanted to know what you thought of my code. This is the first big project
> I've ever done in C++. I just started learning C++ exactly one week ago
> (last monday), so my code probably isn't the best.
>
> Thanks,
> Stephen

I'm trying to understand something in the g++ compiler. If I turn on the 
optimization (-O1) I get a SEGFAULT almost immediatly! Any clue why this 
would happen? (I'm using the code attached to my original post)

Thanks,
Stephen



More information about the OCLUG-devel mailing list