/in/foo.cc: In function 'int main()':
/in/foo.cc:31:32: warning: format '%lf' expects argument of type 'double*', but argument 2 has type 'long double*' [-Wformat=]
scanf("%lf%lf%lf",x+i,y+i,s+i);
^
/in/foo.cc:31:32: warning: format '%lf' expects argument of type 'double*', but argument 3 has type 'long double*' [-Wformat=]
/in/foo.cc:31:32: warning: format '%lf' expects argument of type 'double*', but argument 4 has type 'long double*' [-Wformat=]
/in/foo.cc:40:21: warning: format '%Lf' expects argument of type 'long double', but argument 2 has type 'double' [-Wformat=]
printf("%.2Lf\n", r);
^