foo.cc: In function 'int main()':
foo.cc:7:18: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'double*' [-Wformat=]
scanf("%d",&f);
~~^
foo.cc:6:12: warning: unused variable 'n' [-Wunused-variable]
double n,f,c,s;
^
foo.cc:6:18: warning: unused variable 's' [-Wunused-variable]
double n,f,c,s;
^
foo.cc:7:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&f);
~~~~~^~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务