/in/foo.cc: In function 'int main()':
/in/foo.cc:5:25: warning: format '%f' expects argument of type 'float*', but argument 2 has type 'double*' [-Wformat=]
scanf("%f%f%f",&n,&m,&r);
^
/in/foo.cc:5:25: warning: format '%f' expects argument of type 'float*', but argument 3 has type 'double*' [-Wformat=]
/in/foo.cc:5:25: warning: format '%f' expects argument of type 'float*', but argument 4 has type 'double*' [-Wformat=]
/in/foo.cc:6:5: error: expected '(' before 'm'
if m>n printf("%.3f",sqrt((m-n)*(m-n)+r*r));
^
/in/foo.cc:7:2: error: 'else' without a previous 'if'
else printf("%.3f",r);
^~~~