From 9c568df22ff09a0645b89d4d8622c4ac8ae99faa Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Sat, 11 Nov 2023 04:52:18 -0800 Subject: [PATCH] Fix minor bug in 1994/dodsond2 alt code The variable 'j' (the score) should start out at 0. --- 1994/dodsond2/dodsond2.alt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1994/dodsond2/dodsond2.alt.c b/1994/dodsond2/dodsond2.alt.c index 530617c6c..68ec43cd0 100644 --- a/1994/dodsond2/dodsond2.alt.c +++ b/1994/dodsond2/dodsond2.alt.c @@ -15,7 +15,7 @@ #define M isdigit #define N 30 #define P getchar() -G a[N][3],b[N],c[N],d[N],e[N],f[N],g[N],i=W>0?W:0,j=(W>0?W:0)*20,k,l=0; +G a[N][3],b[N],c[N],d[N],e[N],f[N],g[N],i=W>0?W:0,j=0,k,l=0; main(){m();n();A;}m(){G o;srandom(getpid());do{I(o=0; o