Merge pull request #64 from xexyl/1990
This commit is contained in:
3 files changed
+9
-7
No files matched your search
+1
-1
@@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
make all
|
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
|
./o
|
||||||
|
|
||||||
|
|||||||
+5
-4
@@ -17,10 +17,15 @@
|
|||||||
|
|
||||||
make all
|
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
|
### To run
|
||||||
|
|
||||||
./tbr
|
./tbr
|
||||||
|
|
||||||
|
|
||||||
## Judges' comments
|
## 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;}
|
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
|
## Author's comments
|
||||||
|
|
||||||
|
|||||||
@@ -10,12 +10,13 @@
|
|||||||
|
|
||||||
make all
|
make all
|
||||||
|
|
||||||
NOTE: This entry might not compile when using modern compilers.
|
|
||||||
|
|
||||||
### To run
|
### To run
|
||||||
|
|
||||||
./westley 1
|
./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
|
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).
|
input is not a number (or is a negative number).
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user