Files
ioccc/1988/phillipps/README.md
T
Cody Boone Ferguson d235b565df Fix consistency of award titles
This was done quite easily with a bit of thought. I generated a script
that could be modified in vim if necessary (as it turned out to be
though some of it could have been generated too but I did not think of
everything at once and it is a hack).

This is how I generated it:

    echo '#!/bin/bash' > bin/check_awards.sh ; ( while read -r g ; do echo grep "$g"; done < <(sed -e 's,_,/,g' -e 's/"/\\"/g' tmp/year-auth-prize.csv | awk -F, '{print grep "\x22" $2 "\x22" " " $1 "/" "README.md"}' ); ) >> bin/check_awards.sh

Then I I modified the file (again this was a hack to make it easier and
quicker and better for being tired too) in vim to make the grep use -Hc
so I could pipe it to 'grep :0'. This found the files without the right
award. So the final command was:

    sh bin/check_awards.sh |grep :0

though I did have to edit some files several times.

For reference the script has been added to the repo too but with +x
permissions.

This change also required updating the CSV file in tmp/.
2023-05-13 07:02:07 -07:00

1.4 KiB

Least likely to compile successfully

Ian Phillipps
Cambridge Consultants Ltd
Science Park
Milton Road
Cambridge CB4 4DW
England

To build:

make all

Cody Boone Ferguson fixed this for modern systems. It did not compile with clang because it requires the second and third args to main() to be char ** but even before that with gcc it printed random characters. After fixing it for clang by changing main() to call the new function pain() (chosen because it's a paint that clang requires these args to be char ** :-) ) with the correct args it now works. Thank you Cody for your assistance!

Judges' remarks:

Compile and run without parameters.

The program is smaller than even the 'compressed' form of its output, and thus represents a new departure in text compression standards.

The judges thought that this program looked like what you would get by pounding on the keys of an old typewriter at random.

Author's remarks:

No remarks were provided by the author.

This file is Copyright (c) 2023 by Landon Curt Noll. All Rights Reserved. You are free to share and adapt this file under the terms of this license:

Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)

For more information, see: https://creativecommons.org/licenses/by-sa/4.0/