foo.c: In function 'main':
foo.c:5:10: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'int (*)[10001]' [-Wformat=]
scanf("%d %d", &a, &b);
~^ ~~
foo.c:5:13: warning: format '%d' expects argument of type 'int *', but argument 3 has type 'int (*)[10001]' [-Wformat=]
scanf("%d %d", &a, &b);
~^ ~~
foo.c:14:2: warning: implicit declaration of function 'FindMinPos' [-Wimplicit-function-declaration]
FindMinPos(a,b);
^~~~~~~~~~
foo.c:15:7: warning: conflicting types for 'FindMinPos'
void FindMinPos(int a[],int b[]);
^~~~~~~~~~
foo.c:14:2: note: previous implicit declaration of 'FindMinPos' was here
FindMinPos(a,b);
^~~~~~~~~~
foo.c:4:33: warning: unused variable 'j' [-Wunused-variable]
int a[10001], b[10001],n1,n2,i,j,max,maxx1 = 1,maxx2 = 1;
^
foo.c:5:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &a, &b);
^~~~~~~~~~~~~~~~~~~~~~
foo.c:8:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &a[i]);
^~~~~~~~~~~~~~~~~~
foo.c:12:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &b[i]);
^~~~~~~~~~~~~~~~~~
foo.c:6:2: warning: 'n1' is used uninitialized in this function [-Wuninitialized]
for (i = 1;i<=n1;i++)
^~~
foo.c:10:2: warning: 'n2' is used uninitialized in this function [-Wuninitialized]
for (i = 1; i <= n2; i++)
^~~
/tmp/ccaKjm4w.o: In function `main':
foo.c:(.text.startup+0x42): undefined reference to `FindMinPos'
collect2: error: ld returned 1 exit status
[Hydro](https://hydro.ac)提供评测服务