QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#221251#6734. Click the Circleucup-team241#Compile Error//C++116.5kb2023-10-21 11:17:362023-10-21 11:17:37

詳細信息

answer.code: In function ‘ld norm(pnt)’:
answer.code:28:16: error: call of overloaded ‘sqrt(__float128&)’ is ambiguous
   28 |     return sqrt(w);
      |            ~~~~^~~
In file included from /usr/include/features.h:461,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/os_defines.h:39,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/c++config.h:586,
                 from /usr/include/c++/11/cassert:43,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:33,
                 from answer.code:1:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:143:1: note: candidate: ‘double sqrt(double)’
  143 | __MATHCALL (sqrt,, (_Mdouble_ __x));
      | ^~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:41,
                 from answer.code:1:
/usr/include/c++/11/cmath:467:3: note: candidate: ‘constexpr long double std::sqrt(long double)’
  467 |   sqrt(long double __x)
      |   ^~~~
/usr/include/c++/11/cmath:463:3: note: candidate: ‘constexpr float std::sqrt(float)’
  463 |   sqrt(float __x)
      |   ^~~~
answer.code: In function ‘std::vector<std::pair<__float128, __float128> > circir(pnt, pnt)’:
answer.code:42:38: error: call of overloaded ‘sqrt(ld&)’ is ambiguous
   42 |     ld f=r*r-d*d; if(f<0) f=0; f=sqrt(f);
      |                                  ~~~~^~~
In file included from /usr/include/features.h:461,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/os_defines.h:39,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/c++config.h:586,
                 from /usr/include/c++/11/cassert:43,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:33,
                 from answer.code:1:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:143:1: note: candidate: ‘double sqrt(double)’
  143 | __MATHCALL (sqrt,, (_Mdouble_ __x));
      | ^~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:41,
                 from answer.code:1:
/usr/include/c++/11/cmath:467:3: note: candidate: ‘constexpr long double std::sqrt(long double)’
  467 |   sqrt(long double __x)
      |   ^~~~
/usr/include/c++/11/cmath:463:3: note: candidate: ‘constexpr float std::sqrt(float)’
  463 |   sqrt(float __x)
      |   ^~~~
answer.code: In function ‘pnt seg(pnt, pnt, pnt, bool)’:
answer.code:57:11: error: call of overloaded ‘abs(ld)’ is ambiguous
   57 |     if(abs(R-L)<eps) return a;
      |        ~~~^~~~~
In file included from /usr/include/c++/11/bits/std_abs.h:38,
                 from /usr/include/c++/11/cmath:47,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:41,
                 from answer.code:1:
/usr/include/stdlib.h:840:12: note: candidate: ‘int abs(int)’
  840 | extern int abs (int __x) __THROW __attribute__ ((__const__)) __wur;
      |            ^~~
In file included from /usr/include/c++/11/cmath:47,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:41,
                 from answer.code:1:
/usr/include/c++/11/bits/std_abs.h:79:3: note: candidate: ‘constexpr long double std::abs(long double)’
   79 |   abs(long double __x)
      |   ^~~
/usr/include/c++/11/bits/std_abs.h:75:3: note: candidate: ‘constexpr float std::abs(float)’
   75 |   abs(float __x)
      |   ^~~
/usr/include/c++/11/bits/std_abs.h:71:3: note: candidate: ‘constexpr double std::abs(double)’
   71 |   abs(double __x)
      |   ^~~
/usr/include/c++/11/bits/std_abs.h:61:3: note: candidate: ‘long long int std::abs(long long int)’
   61 |   abs(long long __x) { return __builtin_llabs (__x); }
      |   ^~~
/usr/include/c++/11/bits/std_abs.h:56:3: note: candidate: ‘long int std::abs(long int)’
   56 |   abs(long __i) { return __builtin_labs(__i); }
      |   ^~~
answer.code: In function ‘std::vector<std::pair<__float128, __float128> > cirline(pnt, pnt, pnt, int)’:
answer.code:72:11: error: call of overloaded ‘sqrt(ld)’ is ambiguous
   72 |     d=sqrt(rr*rr-d*d);
      |       ~~~~^~~~~~~~~~~
In file included from /usr/include/features.h:461,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/os_defines.h:39,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/c++config.h:586,
                 from /usr/include/c++/11/cassert:43,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:33,
                 from answer.code:1:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:143:1: note: candidate: ‘double sqrt(double)’
  143 | __MATHCALL (sqrt,, (_Mdouble_ __x));
      | ^~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:41,
                 from answer.code:1:
/usr/include/c++/11/cmath:467:3: note: candidate: ‘constexpr long double std::sqrt(long double)’
  467 |   sqrt(long double __x)
      |   ^~~~
/usr/include/c++/11/cmath:463:3: note: candidate: ‘constexpr float std::sqrt(float)’
  463 |   sqrt(float __x)
      |   ^~~~
answer.code: In function ‘int main()’:
answer.code:181:16: error: no match ...