Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:36:19: warning: format '%lf' expects argument of type 'double*', but argument 2 has type 'double' [-Wformat=]
   scanf("%lf",x[i]);
                   ^
/in/foo.cc:38:13: error: 'le' was not declared in this scope
  double eps=le-5,l=-le6,r=le6,mid;
             ^~
/in/foo.cc:39:8: error: 'r' was not declared in this scope
  while(r-l>eps)
        ^
/in/foo.cc:39:10: error: 'l' was not declared in this scope
  while(r-l>eps)
          ^
/in/foo.cc:41:3: error: 'mid' was not declared in this scope
   mid=(l+r)/2;
   ^~~
/in/foo.cc:46:15: error: 'le10' was not declared in this scope
   double ans=-le10,minn=le10;
               ^~~~
/in/foo.cc:49:4: error: 'minn' was not declared in this scope
    minn=min(minn,sum[i-l]);
    ^~~~
/in/foo.cc:57:14: error: 'r' was not declared in this scope
  printf("%d",r*1000);
              ^

信息

递交者
类型
递交
题目
「一本通 1.2 例 2」Best Cow Fences
语言
C++
递交时间
2020-09-06 16:08:12
评测时间
2020-09-06 16:08:12
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes