QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#303226#7862. Land Tradeucup-team2016Compile Error//C++1740.4kb2024-01-11 21:59:352024-01-11 21:59:36

詳細信息

answer.code: In function ‘Line<long double> shift(const Line<__int128>&, const Point<long double>&)’:
answer.code:618:15: warning: narrowing conversion of ‘(__int128)l.Line<__int128>::A’ from ‘__int128’ to ‘long double’ [-Wnarrowing]
  618 |     return {l.A, l.B, l.C - l.A * p.x - l.B * p.y};
      |             ~~^
answer.code:618:20: warning: narrowing conversion of ‘(__int128)l.Line<__int128>::B’ from ‘__int128’ to ‘long double’ [-Wnarrowing]
  618 |     return {l.A, l.B, l.C - l.A * p.x - l.B * p.y};
      |                  ~~^
In file included from /usr/include/c++/11/cassert:44,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:33,
                 from answer.code:5:
answer.code: In instantiation of ‘bool ccw(const Point<T2>&, const Point<T2>&) [with T1 = long double; T2 = long double]’:
answer.code:451:15:   required from ‘bool ccw(const Point<T2>&, const Point<T2>&, const Point<T3>&) [with T1 = long double; T2 = long double; T3 = long double]’
answer.code:828:23:   required from ‘int get_polygon_direction(const std::vector<Point<T2> >&) [with T = long double]’
answer.code:1220:38:   required from ‘std::vector<std::pair<std::vector<Point<T2> >, std::vector<Point<long double> > > > get_faces(const std::vector<Point<T2> >&, std::vector<std::pair<int, int> >) [with T = Fraction<__int128>]’
answer.code:1246:21:   required from ‘std::vector<std::pair<std::vector<Point<T2> >, std::vector<Point<long double> > > > get_faces(const std::vector<Segment<T1> >&) [with T = Fraction<__int128>]’
answer.code:1399:27:   required from here
answer.code:432:20: error: request for member ‘a’ in ‘a.Point<long double>::x’, which is of non-class type ‘const long double’
  432 |     assert(abs(a.x.a) <= Inf12);
      |                ~~~~^
answer.code:433:20: error: request for member ‘b’ in ‘a.Point<long double>::x’, which is of non-class type ‘const long double’
  433 |     assert(abs(a.x.b) <= Inf12);
      |                ~~~~^
answer.code:434:20: error: request for member ‘a’ in ‘a.Point<long double>::y’, which is of non-class type ‘const long double’
  434 |     assert(abs(a.y.a) <= Inf12);
      |                ~~~~^
answer.code:435:20: error: request for member ‘b’ in ‘a.Point<long double>::y’, which is of non-class type ‘const long double’
  435 |     assert(abs(a.y.b) <= Inf12);
      |                ~~~~^
answer.code:436:20: error: request for member ‘a’ in ‘b.Point<long double>::x’, which is of non-class type ‘const long double’
  436 |     assert(abs(b.x.a) <= Inf12);
      |                ~~~~^
answer.code:437:20: error: request for member ‘b’ in ‘b.Point<long double>::x’, which is of non-class type ‘const long double’
  437 |     assert(abs(b.x.b) <= Inf12);
      |                ~~~~^
answer.code:438:20: error: request for member ‘a’ in ‘b.Point<long double>::y’, which is of non-class type ‘const long double’
  438 |     assert(abs(b.y.a) <= Inf12);
      |                ~~~~^
answer.code:439:20: error: request for member ‘b’ in ‘b.Point<long double>::y’, which is of non-class type ‘const long double’
  439 |     assert(abs(b.y.b) <= Inf12);
      |                ~~~~^