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