/in/foo.c: In function 'dg':
/in/foo.c:19:33: error: 'cc' undeclared (first use in this function)
dg(count+1,n,m,k,sum,len+i,cc);
^~
/in/foo.c:19:33: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:19:6: error: too many arguments to function 'dg'
dg(count+1,n,m,k,sum,len+i,cc);
^~
/in/foo.c:3:6: note: declared here
void dg(int count,int n,int m,int k,int sum[],int len)
^~
/in/foo.c: In function 'main':
/in/foo.c:34:31: error: 'cc' undeclared (first use in this function)
dg(count,n,m,k,sum,len+i,cc);
^~
/in/foo.c:34:6: error: too many arguments to function 'dg'
dg(count,n,m,k,sum,len+i,cc);
^~
/in/foo.c:3:6: note: declared here
void dg(int count,int n,int m,int k,int sum[],int len)
^~