/in/foo.c: In function 'main':
/in/foo.c:4:2: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
scanf("%d",&n);
^~~~~
/in/foo.c:4:2: warning: incompatible implicit declaration of built-in function 'scanf'
/in/foo.c:4:2: note: include '<stdio.h>' or provide a declaration of 'scanf'
/in/foo.c:22:2: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
printf("%d",sum);
^~~~~~
/in/foo.c:22:2: warning: incompatible implicit declaration of built-in function 'printf'
/in/foo.c:22:2: note: include '<stdio.h>' or provide a declaration of 'printf'
/in/foo.c:3:21: warning: variable 'max' set but not used [-Wunused-but-set-variable]
int n,a[10000],i,j,max,h,b,sum=0;
^~~
/in/foo.c:3:19: warning: unused variable 'j' [-Wunused-variable]
int n,a[10000],i,j,max,h,b,sum=0;
^
/in/foo.c:15:6: warning: 'h' may be used uninitialized in this function [-Wmaybe-uninitialized]
a[0]=h;
~~~~^~