From f2fe137618afd98aba44ca272b1ecceaaba01afc Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Fri, 7 Jul 2023 09:44:51 -0700 Subject: [PATCH] Fix 2001/coupard for clang with linux C99 does not support implicit int. There are three ways I can think of that would solve this problem but I chose to add the 'int' to the parameters to prevent any problems in the future. --- 2001/coupard/coupard.c | 2 +- thanks-for-fixes.md | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/2001/coupard/coupard.c b/2001/coupard/coupard.c index b5cf042b3..558e41be4 100644 --- a/2001/coupard/coupard.c +++ b/2001/coupard/coupard.c @@ -28,7 +28,7 @@ $",p[6789]; int o[]={145,1145,1745,2545,3045,4045,4345,5145,5745,6369},i=0,j=0,l=0; -void e(n,h){ +void e(int n,int h){ for(j=0;n>0;n-=!(p[j++]^9)); for(;!n&&j[p]^9;j++)write(1,p+p[j][o],o[p[j]+1]-p[j][o]); for(i=0;i