/in/foo.c: In function 'main':
/in/foo.c:26:23: error: subscripted value is neither array nor pointer nor vector
scanf("%d", &a[i]);
^
/in/foo.c:34:23: error: subscripted value is neither array nor pointer nor vector
scanf("%d", &b[i]);
^
/in/foo.c:38:30: warning: passing argument 1 of 'FindiMinPos' makes pointer from integer without a cast [-Wint-conversion]
int indexA = FindiMinPos(a, n1);
^
/in/foo.c:5:5: note: expected 'int *' but argument is of type 'int'
int FindiMinPos(int arr[], int size) {
^~~~~~~~~~~
/in/foo.c:46:30: warning: passing argument 1 of 'FindiMinPos' makes pointer from integer without a cast [-Wint-conversion]
int indexB = FindiMinPos(b, n2);
^
/in/foo.c:5:5: note: expected 'int *' but argument is of type 'int'
int FindiMinPos(int arr[], int size) {
^~~~~~~~~~~