QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#163407#7110. Kuririn MIRACLEucup-team1133Compile Error//C++202.2kb2023-09-04 03:24:162023-09-04 03:24:17

详细

answer.code: In function ‘ld integral(ld, ld, ld, ld)’:
answer.code:60:12: error: reference to ‘integral’ is ambiguous
   60 |     return integral(l, mid, eps / 2, sl) + integral(mid, r, eps / 2, sr);
      |            ^~~~~~~~
In file included from /usr/include/c++/11/compare:39,
                 from /usr/include/c++/11/bits/stl_pair.h:65,
                 from /usr/include/c++/11/bits/stl_algobase.h:64,
                 from /usr/include/c++/11/bits/specfun.h:45,
                 from /usr/include/c++/11/cmath:1935,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:41,
                 from answer.code:1:
/usr/include/c++/11/concepts:100:13: note: candidates are: ‘template<class _Tp> concept std::integral’
  100 |     concept integral = is_integral_v<_Tp>;
      |             ^~~~~~~~
answer.code:54:4: note:                 ‘ld integral(ld, ld, ld, ld)’
   54 | ld integral(ld l, ld r, ld eps, ld st) {
      |    ^~~~~~~~
answer.code:60:44: error: reference to ‘integral’ is ambiguous
   60 |     return integral(l, mid, eps / 2, sl) + integral(mid, r, eps / 2, sr);
      |                                            ^~~~~~~~
In file included from /usr/include/c++/11/compare:39,
                 from /usr/include/c++/11/bits/stl_pair.h:65,
                 from /usr/include/c++/11/bits/stl_algobase.h:64,
                 from /usr/include/c++/11/bits/specfun.h:45,
                 from /usr/include/c++/11/cmath:1935,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:41,
                 from answer.code:1:
/usr/include/c++/11/concepts:100:13: note: candidates are: ‘template<class _Tp> concept std::integral’
  100 |     concept integral = is_integral_v<_Tp>;
      |             ^~~~~~~~
answer.code:54:4: note:                 ‘ld integral(ld, ld, ld, ld)’
   54 | ld integral(ld l, ld r, ld eps, ld st) {
      |    ^~~~~~~~
answer.code: In function ‘void solve()’:
answer.code:66:21: error: reference to ‘integral’ is ambiguous
   66 |     ld t1 = 2 * r * integral(0, PI / 2, 1e-9, simpson(0, PI / 2)) / v;
      |                     ^~~~~~~~
In file included from /usr/include/c++/11/compare:39,
                 from /usr/include/c++/11/bits/stl_pair.h:65,
                 from /usr/include/c++/11/bits/stl_algobase.h:64,
                 from /usr/include/c++/11/bits/specfun.h:45,
                 from /usr/include/c++/11/cmath:1935,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:41,
                 from answer.code:1:
/usr/include/c++/11/concepts:100:13: note: candidates are: ‘template<class _Tp> concept std::integral’
  100 |     concept integral = is_integral_v<_Tp>;
      |             ^~~~~~~~
answer.code:54:4: note:                 ‘ld integral(ld, ld, ld, ld)’
   54 | ld integral(ld l, ld r, ld eps, ld st) {
      |    ^~~~~~~~
answer.code:81:32: error: reference to ‘integral’ is ambiguous
   81 |         ld another_t = 2 * r * integral(0, asinl(2 * r / dist), 1e-9, simpson(0, asinl(2 * r / dist))) / v + sqrtl(dist * dist - 4 * r * r) / (v * get_v(asinl(2 * r / dist)));
      |                                ^~~~~~~~
In file included from /usr/include/c++/11/compare:39,
                 from /usr/include/c++/11/bits/stl_pair.h:65,
                 from /usr/include/c++/11/bits/stl_algobase.h:64,
                 from /usr/include/c++/11/bits/specfun.h:45,
                 from /usr/include/c++/11/cmath:1935,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:41,
                 from answer.code:1:
/usr/include/c++/11/concepts:100:13: note: candidates are: ‘template<class _Tp> concept std::integral’
  100 |     concept integral = is_integral_v<_Tp>;
      |             ^~~~~~~~
answer.code:54:4: note:                 ‘ld integral(ld, ld, ld, ld)’
   54 | ld integral(ld l, ld r, ld eps, ld st) {
      |    ^~~~~~~~