/in/foo.c: In function 'main':
/in/foo.c:12:2: warning: implicit declaration of function 'dg' [-Wimplicit-function-declaration]
dg(max,sum,rest,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 c[],int v[],int m)
^~
/in/foo.c:12:2: note: previous implicit declaration of 'dg' was here
dg(max,sum,rest,c,v,m);
^~
/in/foo.c: In function 'dg':
/in/foo.c:25:7: warning: implicit declaration of function 'search' [-Wimplicit-function-declaration]
if(search(c,m,rest))
^~~~~~