Merge pull request #1241 from xexyl/2006-hamre-arg-check

This commit is contained in:
Landon Curt Noll authored and GitHub committed 2023-10-31 12:42:42 -07:00
commit 78d3198de8
3 files changed
+1 -39

No files matched your search

-21
View File
@@ -10,17 +10,6 @@ make
```
### Bugs and (Mis)features
The current status of this entry is:
```
STATUS: known bug - please help us fix
```
For more detailed information see [2006 hamre in bugs.md](/bugs.md#2006-hamre).
## To use:
```sh
@@ -33,16 +22,6 @@ For more detailed information see [2006 hamre in bugs.md](/bugs.md#2006-hamre).
./hamre '-1+4/3*(2+1/(3/2*(7/2-7/3+1/6)))/2'
```
### INABIAF - it's not a bug it's a feature! :-)
This program will very likely crash or do something completely irrational :-) if you
don't supply it with an argument.
As well supplying more arguments will possibly limit the number of nested
operators supported.
Don't try dividing by 0 (zero).
## Judges' remarks:
An irrationally coded source presents rational things!
+1 -1
View File
@@ -8,7 +8,7 @@
<m?(c++ ,d=1,3 q=0,5 q=m,main\
(a+3,b) ,o=o*s q,O=O* w q):0:
static d,v[99 ];main (int a,
char**b ){d=7; if(*c?! (p(+,3
char**b ){if(a<2)exit(1);d=7;if(*c?! (p(+,3
,4 q+O* 3,4)p( -,(o?3
:(O=1,6 )),4 q -O*3,4)
p(*,4,3 ,4)p(/ ,5,4,3)
-17
View File
@@ -1516,23 +1516,6 @@ to including the [IOCCC website](https://www.ioccc.org) itself.
# 2006
## 2006 hamre
### STATUS: known bug - please help us fix
### Source code: [2006/hamre/hamre.c](2006/hamre/hamre.c)
### Information: [2006/hamre/README.md](2006/hamre/README.md)
This program will very likely crash or do something completely irrational :-) if
you don't supply it with an argument.
As well supplying more arguments will possibly limit the number of nested
operators supported.
Don't try dividing by 0 (zero).
If you want to try and fix this (mis)feature, you are welcome to try.
## 2006 monge
### STATUS: known bug - please help us fix