记录详情

Compile Error

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)提供评测服务

信息

递交者
类型
递交
题目
A9-6 数组中增序子序列的个数
比赛
2021(四) 作业第二场:见面赛
语言
C
递交时间
2021-10-31 13:05:29
评测时间
2021-10-31 13:05:29
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes