foo.cc: In function 'int main()':
foo.cc:8:29: warning: format '%f' expects argument of type 'float*', but argument 2 has type 'double*' [-Wformat=]
  scanf("%1f,%1f,%c",&a,&b,&c);
                     ~~      ^
foo.cc:8:29: warning: format '%f' expects argument of type 'float*', but argument 3 has type 'double*' [-Wformat=]
foo.cc:8:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%1f,%1f,%c",&a,&b,&c);
  ~~~~~^~~~~~~~~~~~~~~~~~~~~~~
   
  
    [Hydro](https://hydro.ac)提供评测服务