QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#378543#8566. Can We Still Qualify For Semifinals?ucup-team570#Compile Error//C++1419.9kb2024-04-06 13:30:272024-04-06 13:30:29

详细

answer.code:11:88: error: ‘is_signed_v’ is not a member of ‘std’; did you mean ‘is_signed’?
   11 |     template <class Int, class IntL = Int, class IntStep = Int, std::enable_if_t<(std::is_signed_v<Int> == std::is_signed_v<IntL>), std::nullptr_t> = nullptr> struct rep_impl {
      |                                                                                        ^~~~~~~~~~~
      |                                                                                        is_signed
answer.code:11:113: error: ‘is_signed_v’ is not a member of ‘std’; did you mean ‘is_signed’?
   11 |     template <class Int, class IntL = Int, class IntStep = Int, std::enable_if_t<(std::is_signed_v<Int> == std::is_signed_v<IntL>), std::nullptr_t> = nullptr> struct rep_impl {
      |                                                                                                                 ^~~~~~~~~~~
      |                                                                                                                 is_signed
answer.code:11:147: error: template argument 1 is invalid
   11 |     template <class Int, class IntL = Int, class IntStep = Int, std::enable_if_t<(std::is_signed_v<Int> == std::is_signed_v<IntL>), std::nullptr_t> = nullptr> struct rep_impl {
      |                                                                                                                                                   ^
answer.code:17:88: error: ‘is_signed_v’ is not a member of ‘std’; did you mean ‘is_signed’?
   17 |     template <class Int, class IntL = Int, class IntStep = Int, std::enable_if_t<(std::is_signed_v<Int> == std::is_signed_v<IntL>), std::nullptr_t> = nullptr> struct rrep_impl {
      |                                                                                        ^~~~~~~~~~~
      |                                                                                        is_signed
answer.code:17:113: error: ‘is_signed_v’ is not a member of ‘std’; did you mean ‘is_signed’?
   17 |     template <class Int, class IntL = Int, class IntStep = Int, std::enable_if_t<(std::is_signed_v<Int> == std::is_signed_v<IntL>), std::nullptr_t> = nullptr> struct rrep_impl {
      |                                                                                                                 ^~~~~~~~~~~
      |                                                                                                                 is_signed
answer.code:17:147: error: template argument 1 is invalid
   17 |     template <class Int, class IntL = Int, class IntStep = Int, std::enable_if_t<(std::is_signed_v<Int> == std::is_signed_v<IntL>), std::nullptr_t> = nullptr> struct rrep_impl {
      |                                                                                                                                                   ^
answer.code:38:84: error: ‘conjunction_v’ is not a member of ‘std’
   38 |     template <typename ...Constraints> using constraints_t = std::enable_if_t<std::conjunction_v<Constraints...>, std::nullptr_t>;
      |                                                                                    ^~~~~~~~~~~~~
answer.code:38:84: note: ‘std::conjunction_v’ is only available from C++17 onwards
answer.code:38:84: error: ‘conjunction_v’ is not a member of ‘std’
answer.code:38:84: note: ‘std::conjunction_v’ is only available from C++17 onwards
answer.code:38:109: error: expected parameter pack before ‘...’
   38 |     template <typename ...Constraints> using constraints_t = std::enable_if_t<std::conjunction_v<Constraints...>, std::nullptr_t>;
      |                                                                                                             ^~~
answer.code:38:112: error: template argument 1 is invalid
   38 |     template <typename ...Constraints> using constraints_t = std::enable_if_t<std::conjunction_v<Constraints...>, std::nullptr_t>;
      |                                                                                                                ^
answer.code:41:44: error: ‘constraints_t’ was not declared in this scope
   41 |     template <typename T> struct bitnum<T, constraints_t<std::is_integral<T>>> { static constexpr int value = std::numeric_limits<std::make_unsigned_t<T>>::digits; };
      |                                            ^~~~~~~~~~~~~
answer.code:41:76: error: template argument 2 is invalid
   41 |     template <typename T> struct bitnum<T, constraints_t<std::is_integral<T>>> { static constexpr int value = std::numeric_limits<std::make_unsigned_t<T>>::digits; };
      |                                                                            ^~
answer.code:41:78: error: expected unqualified-id before ‘>’ token
   41 |     template <typename T> struct bitnum<T, constraints_t<std::is_integral<T>>> { static constexpr int value = std::numeric_limits<std::make_unsigned_t<T>>::digits; };
      |                                                                            ...