Re:Show HN: Maze Generation Visualization
by tromp on Saturday July 09, 2022 @07:20AM
(#32033951)
Or compile
with -fwritable-strings -Wno-implicit-function-declaration and watch a maze of the input height being generated on the fly.
[ Parent
| on HN ]
Re:Show HN: Maze Generation Visualization
by tetris11 on Thursday July 14, 2022 @01:50PM
(#32099295)
> gcc: error: unrecognized command-line option ‘-fwritable-strings’; did you mean ‘-Wwrite-strings’?
this doesn't work with gcc 4
> GCC no longer accepts the -fwritable-strings option. Use named character arrays when you need a writable string.
Clang still accepts -fwritable-strings.
For gcc, writable strings can be avoided by making the top line one character longer:
char M[3],A,Z,E=40,J[40],T[40];main(C){for(*J=A=scanf("%d",&C);