Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:6:2: error: 'folat' was not declared in this scope
  folat sum=0;
  ^~~~~
/in/foo.cc:12:3: error: 'sum' was not declared in this scope
   sum+=float(fenzi)/fenmu;
   ^~~
/in/foo.cc:17:16: error: 'sum' was not declared in this scope
  printf("%.2f",sum);
                ^~~

信息

递交者
类型
递交
题目
P1054 数列求和
语言
C++
递交时间
2022-01-26 10:03:41
评测时间
2022-01-26 10:03:41
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes