foo.c: In function 'main':
foo.c:8:12: warning: unknown conversion type character ' ' in format [-Wformat=]
scanf(" % d", &a[i]);
^
foo.c:8:9: warning: too many arguments for format [-Wformat-extra-args]
scanf(" % d", &a[i]);
^~~~~~
foo.c:12:12: warning: unknown conversion type character ' ' in format [-Wformat=]
scanf(" % d", &b[i]);
^
foo.c:12:9: warning: too many arguments for format [-Wformat-extra-args]
scanf(" % d", &b[i]);
^~~~~~
foo.c:14:2: warning: implicit declaration of function 'FindAscCount' [-Wimplicit-function-declaration]
FindAscCount(a,n1,num1);
^~~~~~~~~~~~
foo.c:16:7: warning: conflicting types for 'FindAscCount'
void FindAscCount(int a,int n,int num);
^~~~~~~~~~~~
foo.c:14:2: note: previous implicit declaration of 'FindAscCount' was here
FindAscCount(a,n1,num1);
^~~~~~~~~~~~
foo.c:5:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &n1,&n2);
^~~~~~~~~~~~~~~~~~~~~~~
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:14:2: warning: 'num1' is used uninitialized in this function [-Wuninitialized]
FindAscCount(a,n1,num1);
^~~~~~~~~~~~~~~~~~~~~~~
foo.c:15:2: warning: 'num2' is used uninitialized in this function [-Wuninitialized]
FindAscCount(b,n2,num2);
^~~~~~~~~~~~~~~~~~~~~~~
foo.c:19:3: warning: 'n' is used uninitialized in this function [-Wuninitialized]
for (i = 1; i <= n; i++)
^~~
/tmp/ccA5cqTp.o: In function `main':
foo.c:(.text.startup+0xc2): undefined reference to `FindAscCount'
foo.c:(.text.startup+0xd2): undefined reference to `FindAscCount'
collect2: error: ld returned 1 exit status
[Hydro](https://hydro.ac)提供评测服务