foo.c: In function 'main':
foo.c:21:30: warning: left-hand operand of comma expression has no effect [-Wunused-value]
21 | for (int i = 0; i < n, i++;) {
| ^
foo.c:22:18: warning: unknown conversion type character ' ' in format [-Wformat=]
22 | scanf(" % d", &a[i]);
| ^
foo.c:22:15: warning: too many arguments for format [-Wformat-extra-args]
22 | scanf(" % d", &a[i]);
| ^~~~~~
foo.c: In function 'FindiMax':
foo.c:12:1: warning: control reaches end of non-void function [-Wreturn-type]
12 | }
| ^
In function 'FindiMax',
inlined from 'main' at foo.c:24:24:
foo.c:3:9: warning: 'a' is used uninitialized [-Wuninitialized]
3 | int max = arr[0];
| ^~~
foo.c: In function 'main':
foo.c:19:13: note: 'a' declared here
19 | int a[10000];
| ^
[Hydro](https://hydro.ac)提供评测服务