/in/foo.c: In function 'main':
/in/foo.c:29:6: error: 'max' undeclared (first use in this function)
if(max < sumBUD)
^~~
/in/foo.c:29:6: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:32:25: warning: passing argument 2 of 'strcpy' makes pointer from integer without a cast [-Wint-conversion]
strcpy(Name,i);
^
In file included from /in/foo.c:3:0:
/usr/include/string.h:125:14: note: expected 'const char * restrict' but argument is of type 'int'
extern char *strcpy (char *__restrict __dest, const char *__restrict __src)
^~~~~~
/in/foo.c:39:21: error: 'i' undeclared (first use in this function)
printf("%c\n",Name[i]);
^
/in/foo.c:13:6: warning: variable 'sum' set but not used [-Wunused-but-set-variable]
int sum[N];
^~~
/in/foo.c:8:6: warning: unused variable 'n' [-Wunused-variable]
int n=0;
^
/in/foo.c:7:6: warning: unused variable 'sumBUD' [-Wunused-variable]
int sumBUD,sumAll=0;
^~~~~~