QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#302575#7862. Land Tradeucup-team2016Compile Error//C++1738.3kb2024-01-10 23:42:202024-01-10 23:42:21

Details

answer.code: In function ‘Line<long double> shift(const Line<__int128>&, const Point<long double>&)’:
answer.code:615:15: warning: narrowing conversion of ‘(__int128)l.Line<__int128>::A’ from ‘__int128’ to ‘long double’ [-Wnarrowing]
  615 |     return {l.A, l.B, l.C - l.A * p.x - l.B * p.y};
      |             ~~^
answer.code:615:20: warning: narrowing conversion of ‘(__int128)l.Line<__int128>::B’ from ‘__int128’ to ‘long double’ [-Wnarrowing]
  615 |     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 function ‘std::pair<int, bool> parse_formula(std::stringstream&)’:
answer.code:1262:22: error: request for member ‘res’ in ‘f’, which is of non-class type ‘Formula [10111]’
 1262 |             assert(f.res.op != '|');
      |                      ^~~