VI SOLVES MAZE (and lies about it)
Dean "Flash" Fashbaugh
flash at pyrtech.pyramid.com
Thu Jan 17 02:24:53 AEST 1991
In article <44914 at mips.mips.COM> jc at mips.COM (J.C. Webber III) writes:
>
>Wouldn't compile for me either. Complained about srand and drand I think.
Here's what I get:
=================================================================
% cat maze.c
char*M,A,Z,E=40,J[40],T[40];main(C){for(*J=A=scanf(M="%d",&C);
-- E; J[ E] =T
[E ]= E) printf("._"); for(;(A-=Z=!Z) || (printf("\n|"
) , A = 39 ,C --
) ; Z || printf (M )) M[Z]=Z[A-(E =A[J-Z]) &&!C
& A == T[ A]
|6<<27<rand()||!C&!Z?J[T[E]=T[A]]=E,J[T[A]=A-Z]=A,"_.":" |"];}
% cc maze.c -o maze
"maze.c", line 5: non-integral subscript in array reference
"maze.c", line 7: non-integral subscript in array reference
=================================================================
I am only a novice C programmer and can't figure a way around this. (I tried
a multitude of "things", after finding the "A-Z" in the subscript to be the
culprit, but nothing worked....)
They Call Me,
/~~~~~~~/__ /\ _____ __ __ X Dean "Flash" Fashbaugh
/ /~~~~~ / / / \ \ __\ \ \__\ \ X Pyramid Technology Corp.
/ ~~~/ / / / /\ \ \___ \ \ ___ \ X 1295 Charleston Road
/ /~~~~ / /___ / ____ \ __\ \ \ \ \ \ X Mt. View, CA 94043
/_/ /_____//_/ \_\ \____\ \_\ \_\ X (415) 335-8201
More information about the Alt.sources
mailing list