#include <stdio.h>

int main(int argc, char *argv[]){
int d, M, i;

scanf("%d",&M);
for(i=1; scanf("%d", &d)==1;i++){
if( d>M ) M= d; if( d<m ) m= d;;
}
printf("%d\n", M);
printf("%.3f\n", s/i);
printf("%d\n", m);
return 0;
でp2-2.c: In function 'main':
p2-2.c:8:23: error: 'm' undeclared (first use in this function)
if( d>M ) M= d; if( d<m ) m= d;;
^
p2-2.c:8:23: note: each undeclared identifier is reported only once for each function it appears in
p2-2.c:11:18: error: 's' undeclared (first use in this function)
printf("%.3f\n", s/i);
^
p2-2.c:13:1: error: expected declaration or statement at end of input
return 0;
^とでました