Merge pull request #889 from xexyl/1995-makarios

This commit is contained in:
Landon Curt Noll authored and GitHub committed 2023-07-07 10:48:41 -07:00
commit 099429bd6d
2 files changed
+8 -1

No files matched your search

+2 -1
View File
@@ -1,2 +1,3 @@
main(int n, char **ia, char **aa, char **ma){int i=ia, a=aa, m=ma; while(i=++n) pain(int n, char **ia, char **aa, char **ma){int i=ia, a=aa, m=ma; while(i=++n)
for(a=0;a<i?a=a*8+i%8,i/=8,m=a==i|a/8==i,1:(n-++m||printf("%o\n",n))&&n%m;);} for(a=0;a<i?a=a*8+i%8,i/=8,m=a==i|a/8==i,1:(n-++m||printf("%o\n",n))&&n%m;);}
main(int n, char **ia, char **aa) { return pain(n, ia, aa, 0); }
+6
View File
@@ -652,6 +652,12 @@ missing `int` for the `f` variable. He felt it was important that it works
because the layout does indeed look to him like a rat is dropping core, because the layout does indeed look to him like a rat is dropping core,
something that the judges suggested. something that the judges suggested.
## [1995/makarios](1995/makarios/makarios.c) ([README.md](1995/makarios/README.md))
Cody fixed this so that it will compile with versions of clang that has a defect
which only allows `main()` to have 0, 2 or 3 args. This is done by a new
function (`pain()` as it's annoying that clang is this way :-) ) that main()
calls which has the four args.
## [1996/august](1996/august/august.c) ([README.md](1996/august/README.md])) ## [1996/august](1996/august/august.c) ([README.md](1996/august/README.md]))