Compile Error

foo.cc: In function 'int main()':
foo.cc:9:2: error: expected ';' before 'float'
  float qian;
  ^~~~~
foo.cc:12:3: error: 'qian' was not declared in this scope
   qian=10;
   ^~~~
foo.cc:16:3: error: 'qian' was not declared in this scope
   qian=10+2.5*(a-3.0)+2.5*b; 
   ^~~~
foo.cc:20:3: error: 'qian' was not declared in this scope
   qian=(10+2.5*7)+3.75*(a-10.0)+3.75*b; 
   ^~~~
foo.cc:22:16: error: 'qian' was not declared in this scope
  printf("%.2f",qian);
                ^~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1027 出租车计价
语言
C++
递交时间
2021-11-24 18:38:06
评测时间
2021-11-24 18:38:06
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes