记录详情

Compile Error

foo.c: In function 'FindMaxNeg':
foo.c:27:4: error: 'fsa' undeclared (first use in this function); did you mean 'csa'?
   27 |    fsa=a[i];
      |    ^~~
      |    csa
foo.c:27:4: note: each undeclared identifier is reported only once for each function it appears in
foo.c: In function 'main':
foo.c:37:8: warning: too many arguments for format [-Wformat-extra-args]
   37 |  scanf("%d",&n1,n2);
      |        ^~~~
foo.c:45:10: error: expected ';' before '}' token
   45 |  return 0
      |          ^
      |          ;
   46 | 
   47 | }
      | ~         
foo.c: In function 'FindMaxNeg':
foo.c:32:1: warning: control reaches end of non-void function [-Wreturn-type]
   32 | }
      | ^
foo.c: In function 'main':
foo.c:37:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
   37 |  scanf("%d",&n1,n2);
      |  ^~~~~~~~~~~~~~~~~~
foo.c:41:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
   41 |   scanf("%d",&a[i]);
      |   ^~~~~~~~~~~~~~~~~
foo.c:43:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
   43 |   scanf("%d",&b[i]);
      |   ^~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
A9-3 数组中最大的负数
比赛
2022春 C语言课程设计 作业2
语言
C
递交时间
2022-03-21 21:05:20
评测时间
2022-03-21 21:05:20
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes