/in/foo.c: In function 'main':
/in/foo.c:74:5: warning: 'return' with no value, in function returning non-void
return;
^~~~~~
/in/foo.c:8:5: note: declared here
int main()
^~~~
/in/foo.c:101:4: warning: 'return' with no value, in function returning non-void
return;
^~~~~~
/in/foo.c:8:5: note: declared here
int main()
^~~~
/in/foo.c:11:37: warning: unused variable 'flag1' [-Wunused-variable]
int max,i,j,h[1001]={0},pos,flag=0,flag1=0,t,m;
^~~~~
/in/foo.c:11:26: warning: variable 'pos' set but not used [-Wunused-but-set-variable]
int max,i,j,h[1001]={0},pos,flag=0,flag1=0,t,m;
^~~