Merge pull request #64 from xexyl/1990

This commit is contained in:
Landon Curt Noll authored and GitHub committed 2023-03-16 10:41:54 -07:00
commit 425d110bf8
3 files changed
+9 -7

No files matched your search

+1 -1
View File
@@ -13,7 +13,7 @@
make all
NOTE: that's not a typo but one can also do:
NOTE: that's not a typo or mistake but one can also do:
./o
+5 -4
View File
@@ -17,10 +17,15 @@
make all
NOTE: modern compilers had a problem with this entry because the `exit(3)`
function returns void but [Cody Boone Ferguson](/winners#Cody_Boone_Ferguson)
got it to work with the use of a comma operator. Thank you Cody!
### To run
./tbr
## Judges' comments
@@ -46,10 +51,6 @@ of the program which we include below:
e(x){x<0?write(2,"?\n$ "-x/4,2),x+1||(exit(1),0):5;}
Modern compilers had a problem with this entry because the exit(3) function
returns void but we were able to get it to compile by using the comma
operator which we also did in the smaller version.
## Author's comments
+3 -2
View File
@@ -10,12 +10,13 @@
make all
NOTE: This entry might not compile when using modern compilers.
### To run
./westley 1
NOTE: [Cody Boone Ferguson](/winners.html#Cody_Boone_Ferguson) fixed this to
compile under modern systems. Thank you Cody for your assistance!
NOTE: this entry will segfault without an arg and will enter an infinite loop if
input is not a number (or is a negative number).