Make 1990/baruch look slightly more like original
That is to say I removed the 'int' from the variables and added to the Makefile -Wno-implicit-int instead. The newline added by the judges is still there, however.
This commit is contained in:
1 parent
5448ed10de
commit
15524262a2
3 files changed
+8
-5
No files matched your search
@@ -39,7 +39,7 @@ include ../../var.mk
|
|||||||
# Common C compiler warnings to silence
|
# Common C compiler warnings to silence
|
||||||
#
|
#
|
||||||
CSILENCE= -Wno-error -Wno-implicit-function-declaration -Wno-logical-op-parentheses \
|
CSILENCE= -Wno-error -Wno-implicit-function-declaration -Wno-logical-op-parentheses \
|
||||||
-Wno-string-plus-int -Wno-strict-prototypes
|
-Wno-string-plus-int -Wno-strict-prototypes -Wno-implicit-int
|
||||||
|
|
||||||
# Common C compiler warning flags
|
# Common C compiler warning flags
|
||||||
#
|
#
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
int v,i,j,k,l,s,a[99];
|
v,i,j,k,l,s,a[99];
|
||||||
main()
|
main()
|
||||||
{
|
{
|
||||||
for(scanf("%d",&s);*a-s;v=a[j*=v]-a[i],k=i<s,j+=(v=j<s&&(!k&&!!printf(2+"\n\n%c"-(!l<<!j)," #Q"[l^v?(l^j)&1:2])&&++l||a[i]<s&&v&&v-i+j&&v+i-j))&&!(l%=s),v||(i==j?a[i+=k]=0:++a[i])>=s*k&&++a[--i])
|
for(scanf("%d",&s);*a-s;v=a[j*=v]-a[i],k=i<s,j+=(v=j<s&&(!k&&!!printf(2+"\n\n%c"-(!l<<!j)," #Q"[l^v?(l^j)&1:2])&&++l||a[i]<s&&v&&v-i+j&&v+i-j))&&!(l%=s),v||(i==j?a[i+=k]=0:++a[i])>=s*k&&++a[--i])
|
||||||
|
|||||||
+6
-3
@@ -11,8 +11,9 @@ contributed thousands, that we wish to thank.
|
|||||||
|
|
||||||
We call out the extensive contributions of [Cody Boone
|
We call out the extensive contributions of [Cody Boone
|
||||||
Ferguson](https://www.ioccc.org/winners.html#Cody_Boone_Ferguson) who is
|
Ferguson](https://www.ioccc.org/winners.html#Cody_Boone_Ferguson) who is
|
||||||
responsible for most of the improvements including many **very complicated bug
|
responsible for most of the improvements and fixes including many **very
|
||||||
fixes** like [1988/phillipps](/thanks-for-fixes.md#1988phillipps-readmemd),
|
complicated bug fixes** like
|
||||||
|
[1988/phillipps](/thanks-for-fixes.md#1988phillipps-readmemd),
|
||||||
[2001/anonymous](/thanks-for-fixes.md#2001anonymous-readmemd) and
|
[2001/anonymous](/thanks-for-fixes.md#2001anonymous-readmemd) and
|
||||||
[2004/burley](/thanks-for-fixes.md#2004burley-readmemd), making entries like
|
[2004/burley](/thanks-for-fixes.md#2004burley-readmemd), making entries like
|
||||||
[1986/wall](/thanks-for-fixes.md#1986wall-readmemd) not need `-traditional-cpp`
|
[1986/wall](/thanks-for-fixes.md#1986wall-readmemd) not need `-traditional-cpp`
|
||||||
@@ -666,7 +667,9 @@ Although this is appreciated we agree with him that <strike>no one</strike>
|
|||||||
[users](https://en.wikipedia.org/wiki/Microsoft_Windows)
|
[users](https://en.wikipedia.org/wiki/Microsoft_Windows)
|
||||||
[here](https://www.ioccc.org) will need it! :-)
|
[here](https://www.ioccc.org) will need it! :-)
|
||||||
|
|
||||||
|
Cody also made the code look more like the original, removing the `int` from
|
||||||
|
the variables, adding instead `-Wno-implicit-int`. The newline added by the
|
||||||
|
judges was retained.
|
||||||
|
|
||||||
## [1990/cmills](1990/cmills/cmills.c) ([README.md](1990/cmills/README.md]))
|
## [1990/cmills](1990/cmills/cmills.c) ([README.md](1990/cmills/README.md]))
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user