QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#300559#6188. Elliptic Curve Problemucup-team874Compile Error//C++172.5kb2024-01-08 14:17:012024-01-08 14:17:01

Details

answer.code: In function ‘i128 s1(ll)’:
answer.code:85:26: error: call of overloaded ‘fdiv(ll&, ll&)’ is ambiguous
   85 |   if (x == 0) ret -= fdiv(c,p);
      |                      ~~~~^~~~~
In file included from /usr/include/c++/11/cmath:45,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:41,
                 from answer.code:9:
/usr/include/x86_64-linux-gnu/bits/mathcalls-narrow.h:27:20: note: candidate: ‘float fdiv(double, double)’
   27 | __MATHCALL_NARROW (__MATHCALL_NAME (div), __MATHCALL_REDIR_NAME (div), 2);
      |                    ^~~~~~~~~~~~~~~
answer.code:45:13: note: candidate: ‘i128 fdiv(i128, i128)’
   45 | inline i128 fdiv(i128 a, i128 b) {
      |             ^~~~
answer.code:88:41: error: call of overloaded ‘fdiv(ll, ll&)’ is ambiguous
   88 |   for (ll i = 1; i < x; i++) ret += fdiv(i*i+c,p);
      |                                     ~~~~^~~~~~~~~
In file included from /usr/include/c++/11/cmath:45,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:41,
                 from answer.code:9:
/usr/include/x86_64-linux-gnu/bits/mathcalls-narrow.h:27:20: note: candidate: ‘float fdiv(double, double)’
   27 | __MATHCALL_NARROW (__MATHCALL_NAME (div), __MATHCALL_REDIR_NAME (div), 2);
      |                    ^~~~~~~~~~~~~~~
answer.code:45:13: note: candidate: ‘i128 fdiv(i128, i128)’
   45 | inline i128 fdiv(i128 a, i128 b) {
      |             ^~~~