/ TYWZ /

记录详情

Compile Error

/in/foo.cc: In function 'int erfen(double, double)':
/in/foo.cc:10:41: error: invalid operands of types 'int*' and 'double' to binary 'operator-'
  int s=std::lower_bound(xxx+1,xxx+n+1,l)-x;
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
/in/foo.cc:11:44: error: invalid operands of types 'int*' and 'double' to binary 'operator-'
     int t=std::upper_bound(xxx+1,xxx+n+1,r)-x;
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
/in/foo.cc: In function 'int refen(double, double)':
/in/foo.cc:15:41: error: invalid operands of types 'int*' and 'double' to binary 'operator-'
  int s=std::lower_bound(yyy+1,yyy+n+1,l)-y;
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
/in/foo.cc:16:44: error: invalid operands of types 'int*' and 'double' to binary 'operator-'
     int t=std::upper_bound(yyy+1,yyy+n+1,r)-y;
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
/in/foo.cc: In function 'int main()':
/in/foo.cc:23:39: warning: format '%lf' expects argument of type 'double*', but argument 2 has type 'int*' [-Wformat=]
         scanf("%lf%lf",&xxx[i],&yyy[i]);
                                       ^
/in/foo.cc:23:39: warning: format '%lf' expects argument of type 'double*', but argument 3 has type 'int*' [-Wformat=]

信息

递交者
类型
递交
题目
Query on Points
语言
C++
递交时间
2019-01-27 20:05:43
评测时间
2019-01-27 20:05:43
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes