/in/foo.c: In function 'main':
/in/foo.c:12:2: warning: implicit declaration of function 'dg' [-Wimplicit-function-declaration]
dg(max,sum,rest,limit,uptolimit,c,v,m);
^~
/in/foo.c: At top level:
/in/foo.c:16:6: warning: conflicting types for 'dg'
void dg(int max[],int sum,int rest,int limit[],int uptolimit[],int c[],int v[],int m)
^~
/in/foo.c:12:2: note: previous implicit declaration of 'dg' was here
dg(max,sum,rest,limit,uptolimit,c,v,m);
^~
/in/foo.c: In function 'dg':
/in/foo.c:28:9: warning: implicit declaration of function 'search' [-Wimplicit-function-declaration]
if( search(c,m,rest,limit,uptolimit) )
^~~~~~