Updates to README.md files in 1990 entries

This commit is contained in:
Cody Boone Ferguson committed 2023-03-21 08:16:31 -07:00
1 parent bede24af38
commit 50e026a93f
10 files changed
+19 -16

No files matched your search

+3 -3
View File
@@ -16,19 +16,19 @@
make all make all
### To run ### To run:
echo 4 | ./baruch echo 4 | ./baruch
echo 7 | ./baruch echo 7 | ./baruch
## Judges' comments ## Judges' comments:
This program reads an integer between 4 and 99 from the stdin. This program reads an integer between 4 and 99 from the stdin.
NOTE: The original program did not have a newline at the end of the file. We NOTE: The original program did not have a newline at the end of the file. We
added a final newline to the file to make unpacking easy. added a final newline to the file to make unpacking easy.
## Authors' comments ## Authors' comments:
The goal of this work was to write a program that solves the The goal of this work was to write a program that solves the
classic n-queen problem, with a board size of up to 99x99, while classic n-queen problem, with a board size of up to 99x99, while
+1 -1
View File
@@ -99,7 +99,7 @@ CDEFINE=
# Include files that are needed to compile # Include files that are needed to compile
# #
CINCLUDE= CINCLUDE= -include stdio.h
#CINCLUDE= -include stdlib.h #CINCLUDE= -include stdlib.h
#CINCLUDE= -include stdio.h #CINCLUDE= -include stdio.h
#CINCLUDE= -include stdlib.h -include stdio.h #CINCLUDE= -include stdlib.h -include stdio.h
+2 -2
View File
@@ -32,13 +32,13 @@ Give the following lines as input:
NOTE: this is case sensitive. NOTE: this is case sensitive.
## Judges' comments ## Judges' comments:
Be sure not to run out of fuel! Be sure not to run out of fuel!
## Author's comments ## Author's comments:
This is the DDS-BASIC Interpreter (Version 1.00). This is the DDS-BASIC Interpreter (Version 1.00).
-1
View File
@@ -182,7 +182,6 @@ all: data ${TARGET}
supernova deep_magic magic charon pluto supernova deep_magic magic charon pluto
${PROG}: ${PROG}.c ${PROG}: ${PROG}.c
@echo "NOTE: This entry might not compile when using modern compilers."
${CC} ${CFLAGS} $< -o $@ ${LIBS} ${CC} ${CFLAGS} $< -o $@ ${LIBS}
# alternative executable # alternative executable
+4 -4
View File
@@ -11,15 +11,15 @@
make all make all
### To run: ## To run:
echo foo bar | ./dg echo foo bar | ./dg
### Try: ## Try:
echo "to C or not to C" | ./dg echo "to C or not to C" | ./dg
## Judges' comments ## Judges' comments:
Some C preprocessors got confused about single quotes in certain cases. Some C preprocessors got confused about single quotes in certain cases.
In particular, the following source line: In particular, the following source line:
@@ -34,7 +34,7 @@ if the C preprocessor botches single quotes in cpp expansions, which we have
done for the wider audience. done for the wider audience.
## Author's comments ## Author's comments:
If my preprocessor could hack it, I could write this as one single If my preprocessor could hack it, I could write this as one single
line rather than 4, but when I do that I get a complaint "defines line rather than 4, but when I do that I get a complaint "defines
+2 -2
View File
@@ -12,11 +12,11 @@
make all make all
### To run ## To run:
./pjr ./pjr
## Judges' comments ## Judges' comments:
This program prints out a string. Can you figure out how This program prints out a string. Can you figure out how
it is done? it is done?
-1
View File
@@ -182,7 +182,6 @@ all: data ${TARGET}
supernova deep_magic magic charon pluto supernova deep_magic magic charon pluto
${PROG}: ${PROG}.c ${PROG}: ${PROG}.c
@echo "NOTE: This entry might not compile when using modern compilers."
${CC} ${CFLAGS} $< -o $@ ${LIBS} ${CC} ${CFLAGS} $< -o $@ ${LIBS}
# alternative executable # alternative executable
+3 -1
View File
@@ -11,7 +11,7 @@
make all make all
Modern compilers might fail to compile this entry: Modern compilers failed to compile this entry:
scjones.c:1:7: error: expected ';' after top level declarator scjones.c:1:7: error: expected ';' after top level declarator
char*a??(??)=??< char*a??(??)=??<
@@ -23,6 +23,8 @@ but we were able to get it to compile with modern compilers by specifying the
`-ansi` flag with a tip from [Yusuke Endoh](/winners.html#Yusuke_Endoh). Thank `-ansi` flag with a tip from [Yusuke Endoh](/winners.html#Yusuke_Endoh). Thank
you Yusuke! you Yusuke!
We note that the compiler option `-trigraphs` would also have worked.
### To run: ### To run:
+3
View File
@@ -45,6 +45,9 @@ about the usage of `gets()`.
NOTE: globs do not work with this entry. Why? NOTE: globs do not work with this entry. Why?
NOTE: `exit` does not work and neither does `logout`. To exit try sending ctrl-d
or ctrl-c (or kill it from another terminal :-) ).
## Try: ## Try:
./tbr ./tbr
+1 -1
View File
@@ -12,7 +12,7 @@
make all make all
### To run ## To run:
./westley number ./westley number