foo.cc:1:30: error: expected constructor, destructor, or type conversion before '(' token
int x,y,z; float price; scanf("%d,%d,%d",&x,&y,&z); price = 99*x+y*99*0.5+z*99*0.55; printf("%.2f ",price);
^
foo.cc:1:53: error: 'price' does not name a type
int x,y,z; float price; scanf("%d,%d,%d",&x,&y,&z); price = 99*x+y*99*0.5+z*99*0.55; printf("%.2f ",price);
^~~~~
foo.cc:1:92: error: expected constructor, destructor, or type conversion before '(' token
int x,y,z; float price; scanf("%d,%d,%d",&x,&y,&z); price = 99*x+y*99*0.5+z*99*0.55; printf("%.2f ",price);
^
[Hydro](https://hydro.ac)提供评测服务