记录详情

Compile Error

foo.c: In function 'main':
foo.c:11:25: warning: implicit declaration of function 'output'; did you mean 'Output'? [-Wimplicit-function-declaration]
   11 |  if(n<10000){input(a,n);output(a,n);}}
      |                         ^~~~~~
      |                         Output
foo.c: In function 'input':
foo.c:4:18: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
    4 |  for(i=0;i<n;i++)scanf("%d ",&a[i]);}
      |                  ^~~~~~~~~~~~~~~~~~
foo.c: In function 'main':
foo.c:10:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
   10 |  scanf("%d",&n);
      |  ^~~~~~~~~~~~~~
/usr/bin/ld: /tmp/cc7a7NSs.o: in function `main':
foo.c:(.text.startup+0x98): undefined reference to `output'
collect2: error: ld returned 1 exit status
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
比赛
2022春 C语言课程设计 作业2
语言
C
递交时间
2022-03-23 11:44:56
评测时间
2022-03-23 11:44:56
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes