QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#883021#9734. Identify Chordtzl_Dedicatus545Compile Error//C++144.0kb2025-02-05 14:26:282025-02-05 14:26:30

詳細信息

answer.code:69:79: error: ‘void_t’ was not declared in this scope
   69 | template<typename T>                            constexpr bool canbe_output<T,void_t<decltype(*(ostream *)nullptr<<declval<T>())>> =true;
      |                                                                               ^~~~~~
answer.code:69:79: note: ‘std::void_t’ is only available from C++17 onwards
answer.code:69:129: error: template argument 2 is invalid
   69 | template<typename T>                            constexpr bool canbe_output<T,void_t<decltype(*(ostream *)nullptr<<declval<T>())>> =true;
      |                                                                                                                                 ^~