Fix segfault in 1984/laman without an arg
This commit is contained in:
1 parent
0e2a09de93
commit
860cffbdad
3 files changed
+6
-7
No files matched your search
@@ -10,9 +10,13 @@ Mike Laman
|
||||
|
||||
./laman <positive number>
|
||||
|
||||
[Cody Boone Ferguson](/winners.html#Cody_Boone_Ferguson) fixed this entry to not
|
||||
segfault if no arg is specified. Instead it'll print nothing. Thank you Cody for
|
||||
your assistance!
|
||||
|
||||
## Try:
|
||||
|
||||
The program accepts ONE positive argument. Seeing is believing, so try things
|
||||
The program accepts ONE POSITIVE argument. Seeing is believing, so try things
|
||||
like:
|
||||
|
||||
./laman 4
|
||||
@@ -21,9 +25,6 @@ like:
|
||||
|
||||
This code should run you in circles.
|
||||
|
||||
NOTE: this program will likely segfault if you do not provide an argument and it
|
||||
will not print anything if the number is not positive or not a number.
|
||||
|
||||
## Judges' comments:
|
||||
|
||||
Some new compilers dislike lines 6 and 10 of the source, so we changed
|
||||
|
||||
Reference in new issue
Block a user