foo.c: In function 'main':
foo.c:5:6: error: expected identifier or '(' before string constant
int "2,5,3,d";
^~~~~~~~~
foo.c:6:10: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'int' [-Wformat=]
scanf("%d,%d,%d",2,5,3);
~^
foo.c:6:13: warning: format '%d' expects argument of type 'int *', but argument 3 has type 'int' [-Wformat=]
scanf("%d,%d,%d",2,5,3);
~^
foo.c:6:16: warning: format '%d' expects argument of type 'int *', but argument 4 has type 'int' [-Wformat=]
scanf("%d,%d,%d",2,5,3);
~^
foo.c:7:2: error: 'd' undeclared (first use in this function)
d=max (2,5,3);
^
foo.c:7:2: note: each undeclared identifier is reported only once for each function it appears in
foo.c:6:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d,%d,%d",2,5,3);
^~~~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务