QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#876879 | #685. Y-Shaped Knife | Derekshakk | Compile Error | / | / | C++17 | 6.7kb | 2025-01-31 14:27:33 | 2025-01-31 14:27:34 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code:37:7: error: reference to ‘real’ is ambiguous 37 | const real TOLERANCE = 1e-8; | ^~~~ In file included from /usr/include/c++/14/ccomplex:39, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127, from answer.code:4: /usr/include/c++/14/complex:2461:5: note: candidates are: ‘template<class _Tp> constexpr typename __gnu_cxx::__promote<_Tp, std::__is_integer<_Tp>::__value>::__type std::real(_Tp)’ 2461 | real(_Tp __x) | ^~~~ /usr/include/c++/14/complex:577:5: note: ‘template<class _Tp> constexpr _Tp std::real(const complex<_Tp>&)’ 577 | real(const complex<_Tp>& __z) | ^~~~ answer.code:36:7: note: ‘using real = double’ 36 | using real = double; | ^~~~ answer.code:38:7: error: reference to ‘real’ is ambiguous 38 | const real PI_CONST = 3.14159265358979323846; | ^~~~ /usr/include/c++/14/complex:2461:5: note: candidates are: ‘template<class _Tp> constexpr typename __gnu_cxx::__promote<_Tp, std::__is_integer<_Tp>::__value>::__type std::real(_Tp)’ 2461 | real(_Tp __x) | ^~~~ /usr/include/c++/14/complex:577:5: note: ‘template<class _Tp> constexpr _Tp std::real(const complex<_Tp>&)’ 577 | real(const complex<_Tp>& __z) | ^~~~ answer.code:36:7: note: ‘using real = double’ 36 | using real = double; | ^~~~ answer.code:41:10: error: reference to ‘real’ is ambiguous 41 | int sign(real val) { | ^~~~ /usr/include/c++/14/complex:2461:5: note: candidates are: ‘template<class _Tp> constexpr typename __gnu_cxx::__promote<_Tp, std::__is_integer<_Tp>::__value>::__type std::real(_Tp)’ 2461 | real(_Tp __x) | ^~~~ /usr/include/c++/14/complex:577:5: note: ‘template<class _Tp> constexpr _Tp std::real(const complex<_Tp>&)’ 577 | real(const complex<_Tp>& __z) | ^~~~ answer.code:36:7: note: ‘using real = double’ 36 | using real = double; | ^~~~ answer.code:48:19: error: reference to ‘real’ is ambiguous 48 | int compareDouble(real a, real b) { | ^~~~ /usr/include/c++/14/complex:2461:5: note: candidates are: ‘template<class _Tp> constexpr typename __gnu_cxx::__promote<_Tp, std::__is_integer<_Tp>::__value>::__type std::real(_Tp)’ 2461 | real(_Tp __x) | ^~~~ /usr/include/c++/14/complex:577:5: note: ‘template<class _Tp> constexpr _Tp std::real(const complex<_Tp>&)’ 577 | real(const complex<_Tp>& __z) | ^~~~ answer.code:36:7: note: ‘using real = double’ 36 | using real = double; | ^~~~ answer.code:48:27: error: reference to ‘real’ is ambiguous 48 | int compareDouble(real a, real b) { | ^~~~ /usr/include/c++/14/complex:2461:5: note: candidates are: ‘template<class _Tp> constexpr typename __gnu_cxx::__promote<_Tp, std::__is_integer<_Tp>::__value>::__type std::real(_Tp)’ 2461 | real(_Tp __x) | ^~~~ /usr/include/c++/14/complex:577:5: note: ‘template<class _Tp> constexpr _Tp std::real(const complex<_Tp>&)’ 577 | real(const complex<_Tp>& __z) | ^~~~ answer.code:36:7: note: ‘using real = double’ 36 | using real = double; | ^~~~ answer.code:48:33: error: expression list treated as compound expression in initializer [-fpermissive] 48 | int compareDouble(real a, real b) { | ^ answer.code:54:5: error: reference to ‘real’ is ambiguous 54 | real x, y; | ^~~~ /usr/include/c++/14/complex:2461:5: note: candidates are: ‘template<class _Tp> constexpr typename __gnu_cxx::__promote<_Tp, std::__is_integer<_Tp>::__value>::__type std::real(_Tp)’ 2461 | real(_Tp __x) | ^~~~ /usr/include/c++/14/complex:577:5: note: ‘template<class _Tp> constexpr _Tp std::real(const complex<_Tp>&)’ 577 | real(const complex<_Tp>& __z) | ^~~~ answer.code:36:7: note: ‘using real = double’ 36 | using real = double; | ^~~~ answer.code:55:15: error: expected ‘)’ before ‘x_coord’ 55 | Point(real x_coord = 0.0, real y_coord = 0.0) : x(x_coord), y(y_coord) {} | ~ ^~~~~~~~ | ) answer.code:59:24: error: reference to ‘real’ is ambiguous 59 | Point& operator *=(real scalar) { x *= scalar; y *= scalar; return *this; } | ^~~~ /usr/include/c++/14/complex:2461:5: note: candidates are: ‘template<class _Tp> constexpr typename __gnu_cxx::__promote<_Tp, std::__is_integer<_Tp>::__value>::__type std::real(_Tp)’ 2461 | real(_Tp __x) | ^~~~ /usr/include/c++/14/complex:577:5: note: ‘template<class _Tp> constexpr _Tp std::real(const complex<_Tp>&)’ 577 | real(const complex<_Tp>& __z) | ^~~~ answer.code:36:7: note:...