ID 5786975
Пользователь Thanks to the CWC partners from the GreenTeaNeko
Время 16.11.2021 20:30 (27 д. 18:30) 21:55>>
Обработка 20:30 ... 20:30 (3,06 сек.)
Файл 5786975.cpp (CLang++ 5.0.0 + Address Sanitizer)
Турнир 2 курс. Программирование на C++. Турнир 2, осень 2021
Задача F: Code format visitor
Набор тестов
Ограничения Время: 1с Память: 4000Мб
Состояние  [?]
CE Ошибка компиляции
код | результаты
In file included from main.cpp:121:0:
format_visitor.h:62:11: error: 'std::__cxx11::string {aka std::__cxx11::basic_string<char>}' is not a template
     const string<string>& GetFormattedCode() const {
           ^~~~~~
format_visitor.h:67:5: error: 'std::__cxx11::string {aka std::__cxx11::basic_string<char>}' is not a template
     string<string> v;
     ^~~~~~
format_visitor.h:79:19: error: 'std::__cxx11::string {aka std::__cxx11::basic_string<char>}' is not a template
     void visiting(string<BaseNode*> z) {
                   ^~~~~~
format_visitor.h: In member function 'virtual void FormatVisitor::Visit(const ClassDeclarationNode*)':
format_visitor.h:18:65: error: no matching function for call to 'std::__cxx11::basic_string<char>::push_back(std::__cxx11::basic_string<char>)'
         v.push_back(tubs() + "class " + node->ClassName() + " {");
                                                                 ^
In file included from /usr/include/c++/7/string:52:0,
                 from /usr/include/c++/7/bits/locale_classes.h:40,
                 from /usr/include/c++/7/bits/ios_base.h:41,
                 from /usr/include/c++/7/ios:42,
                 from /usr/include/c++/7/ostream:38,
                 from /usr/include/c++/7/iostream:39,
                 from main.cpp:1:
/usr/include/c++/7/bits/basic_string.h:1339:7: note: candidate: void std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::push_back(_CharT) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]
       push_back(_CharT __c)
       ^~~~~~~~~
/usr/include/c++/7/bits/basic_string.h:1339:7: note:   no known conversion for argument 1 from 'std::__cxx11::basic_string<char>' to 'char'
In file included from main.cpp:121:0:
format_visitor.h:21:45: error: no matching function for call to 'std::__cxx11::basic_string<char>::push_back(std::__cxx11::basic_string<char>)'
             v.push_back(tubs() + "  public:");
                                             ^
In file included from /usr/include/c++/7/string:52:0,
                 from /usr/include/c++/7/bits/locale_classes.h:40,
                 from /usr/include/c++/7/bits/ios_base.h:41,
                 from /usr/include/c++/7/ios:42,
                 from /usr/include/c++/7/ostream:38,
                 from /usr/include/c++/7/iostream:39,
                 from main.cpp:1:
/usr/include/c++/7/bits/basic_string.h:1339:7: note: candidate: void std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::push_back(_CharT) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]
       push_back(_CharT __c)
       ^~~~~~~~~
/usr/include/c++/7/bits/basic_string.h:1339:7: note:   no known conversion for argument 1 from 'std::__cxx11::basic_string<char>' to 'char'
In file included from main.cpp:121:0:
format_visitor.h:22:42: error: no matching function for call to 'FormatVisitor::visiting(const std::vector<BaseNode*>&)'
             visiting(node->PublicFields());
                                          ^
format_visitor.h:79:10: note: candidate: void FormatVisitor::visiting(std::__cxx11::string)
     void visiting(string<BaseNode*> z) {
          ^~~~~~~~
format_visitor.h:79:10: note:   no known conversion for argument 1 from 'const std::vector<BaseNode*>' to 'std::__cxx11::string {aka std::__cxx11::basic_string<char>}'
format_visitor.h:24:31: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
                 v.push_back("");
                               ^
In file included from /usr/include/c++/7/string:52:0,
                 from /usr/include/c++/7/bits/locale_classes.h:40,
                 from /usr/include/c++/7/bits/ios_base.h:41,
                 from /usr/include/c++/7/ios:42,
                 from /usr/include/c++/7/ostream:38,
                 from /usr/include/c++/7/iostream:39,
                 from main.cpp:1:
/usr/include/c++/7/bits/basic_string.h:1339:7: note:   initializing argument 1 of 'void std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::push_back(_CharT) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
       push_back(_CharT __c)
       ^~~~~~~~~
In file included from main.cpp:121:0:
format_visitor.h:28:48: error: no matching function for call to 'std::__cxx11::basic_string<char>::push_back(std::__cxx11::basic_string<char>)'
             v.push_back(tubs() + "  protected:");
                                                ^
In file included from /usr/include/c++/7/string:52:0,
                 from /usr/include/c++/7/bits/locale_classes.h:40,
                 from /usr/include/c++/7/bits/ios_base.h:41,
                 from /usr/include/c++/7/ios:42,
                 from /usr/include/c++/7/ostream:38,
                 from /usr/include/c++/7/iostream:39,
                 from main.cpp:1:
/usr/include/c++/7/bits/basic_string.h:1339:7: note: candidate: void std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::push_back(_CharT) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]
       push_back(_CharT __c)
       ^~~~~~~~~
/usr/include/c++/7/bits/basic_string.h:1339:7: note:   no known conversion for argument 1 from 'std::__cxx11::basic_string<char>' to 'char'
In file included from main.cpp:121:0:
format_visitor.h:29:45: error: no matching function for call to 'FormatVisitor::visiting(const std::vector<BaseNode*>&)'
             visiting(node->ProtectedFields());
                                             ^
format_visitor.h:79:10: note: candidate: void FormatVisitor::visiting(std::__cxx11::string)
     void visiting(string<BaseNode*> z) {
          ^~~~~~~~
format_visitor.h:79:10: note:   no known conversion for argument 1 from 'const std::vector<BaseNode*>' to 'std::__cxx11::string {aka std::__cxx11::basic_string<char>}'
format_visitor.h:31:31: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
                 v.push_back("");
                               ^
In file included from /usr/include/c++/7/string:52:0,
                 from /usr/include/c++/7/bits/locale_classes.h:40,
                 from /usr/include/c++/7/bits/ios_base.h:41,
                 from /usr/include/c++/7/ios:42,
                 from /usr/include/c++/7/ostream:38,
                 from /usr/include/c++/7/iostream:39,
                 from main.cpp:1:
/usr/include/c++/7/bits/basic_string.h:1339:7: note:   initializing argument 1 of 'void std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::push_back(_CharT) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
       push_back(_CharT __c)
       ^~~~~~~~~
In file included from main.cpp:121:0:
format_visitor.h:35:46: error: no matching function for call to 'std::__cxx11::basic_string<char>::push_back(std::__cxx11::basic_string<char>)'
             v.push_back(tubs() + "  private:");
                                              ^
In file included from /usr/include/c++/7/string:52:0,
                 from /usr/include/c++/7/bits/locale_classes.h:40,
                 from /usr/include/c++/7/bits/ios_base.h:41,
                 from /usr/include/c++/7/ios:42,
                 from /usr/include/c++/7/ostream:38,
                 from /usr/include/c++/7/iostream:39,
                 from main.cpp:1:
/usr/include/c++/7/bits/basic_string.h:1339:7: note: candidate: void std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::push_back(_CharT) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]
       push_back(_CharT __c)
       ^~~~~~~~~
/usr/include/c++/7/bits/basic_string.h:1339:7: note:   no known conversion for argument 1 from 'std::__cxx11::basic_string<char>' to 'char'
In file included from main.cpp:121:0:
format_visitor.h:36:43: error: no matching function for call to 'FormatVisitor::visiting(const std::vector<BaseNode*>&)'
             visiting(node->PrivateFields());
                                           ^
format_visitor.h:79:10: note: candidate: void FormatVisitor::visiting(std::__cxx11::string)
     void visiting(string<BaseNode*> z) {
          ^~~~~~~~
format_visitor.h:79:10: note:   no known conversion for argument 1 from 'const std::vector<BaseNode*>' to 'std::__cxx11::string {aka std::__cxx11::basic_string<char>}'
format_visitor.h:39:34: error: no matching function for call to 'std::__cxx11::basic_string<char>::push_back(std::__cxx11::basic_string<char>)'
         v.push_back(tubs() + "};");
                                  ^
In file included from /usr/include/c++/7/string:52:0,
                 from /usr/include/c++/7/bits/locale_classes.h:40,
                 from /usr/include/c++/7/bits/ios_base.h:41,
                 from /usr/include/c++/7/ios:42,
                 from /usr/include/c++/7/ostream:38,
                 from /usr/include/c++/7/iostream:39,
                 from main.cpp:1:
/usr/include/c++/7/bits/basic_string.h:1339:7: note: candidate: void std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::push_back(_CharT) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]
       push_back(_CharT __c)
       ^~~~~~~~~
/usr/include/c++/7/bits/basic_string.h:1339:7: note:   no known conversion for argument 1 from 'std::__cxx11::basic_string<char>' to 'char'
In file included from main.cpp:121:0:
format_visitor.h: In member function 'virtual void FormatVisitor::Visit(const VarDeclarationNode*)':
format_visitor.h:45:22: error: no match for 'operator+=' (operand types are '__gnu_cxx::__alloc_traits<std::allocator<char> >::value_type {aka char}' and 'std::__cxx11::string {aka std::__cxx11::basic_string<char>}')
             v.back() += arg;
             ~~~~~~~~~^~~~~~
format_visitor.h:47:26: error: invalid conversion from 'char*' to '__gnu_cxx::__alloc_traits<std::allocator<char> >::value_type {aka char}' [-fpermissive]
                 v.back() += ", ";
                 ~~~~~~~~~^~~~~~~
format_visitor.h:49:43: error: no matching function for call to 'std::__cxx11::basic_string<char>::push_back(std::__cxx11::basic_string<char>)'
             v.push_back(tubs() + arg + ";");
                                           ^
In file included from /usr/include/c++/7/string:52:0,
                 from /usr/include/c++/7/bits/locale_classes.h:40,
                 from /usr/include/c++/7/bits/ios_base.h:41,
                 from /usr/include/c++/7/ios:42,
                 from /usr/include/c++/7/ostream:38,
                 from /usr/include/c++/7/iostream:39,
                 from main.cpp:1:
/usr/include/c++/7/bits/basic_string.h:1339:7: note: candidate: void std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::push_back(_CharT) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]
       push_back(_CharT __c)
       ^~~~~~~~~
/usr/include/c++/7/bits/basic_string.h:1339:7: note:   no known conversion for argument 1 from 'std::__cxx11::basic_string<char>' to 'char'
In file included from main.cpp:121:0:
format_visitor.h: In member function 'virtual void FormatVisitor::Visit(const MethodDeclarationNode*)':
format_visitor.h:55:39: error: no matching function for call to 'std::__cxx11::basic_string<char>::push_back(std::__cxx11::basic_string<char>)'
             + node->MethodName() + "(");
                                       ^
In file included from /usr/include/c++/7/string:52:0,
                 from /usr/include/c++/7/bits/locale_classes.h:40,
                 from /usr/include/c++/7/bits/ios_base.h:41,
                 from /usr/include/c++/7/ios:42,
                 from /usr/include/c++/7/ostream:38,
                 from /usr/include/c++/7/iostream:39,
                 from main.cpp:1:
/usr/include/c++/7/bits/basic_string.h:1339:7: note: candidate: void std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::push_back(_CharT) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]
       push_back(_CharT __c)
       ^~~~~~~~~
/usr/include/c++/7/bits/basic_string.h:1339:7: note:   no known conversion for argument 1 from 'std::__cxx11::basic_string<char>' to 'char'
In file included from main.cpp:121:0:
format_visitor.h:57:35: error: no matching function for call to 'FormatVisitor::visiting(const std::vector<BaseNode*>&)'
         visiting(node->Arguments());
                                   ^
format_visitor.h:79:10: note: candidate: void FormatVisitor::visiting(std::__cxx11::string)
     void visiting(string<BaseNode*> z) {
          ^~~~~~~~
format_visitor.h:79:10: note:   no known conversion for argument 1 from 'const std::vector<BaseNode*>' to 'std::__cxx11::string {aka std::__cxx11::basic_string<char>}'
format_visitor.h:58:18: error: invalid conversion from 'char*' to '__gnu_cxx::__alloc_traits<std::allocator<char> >::value_type {aka char}' [-fpermissive]
         v.back() += ");";
         ~~~~~~~~~^~~~~~~
format_visitor.h: In member function 'void FormatVisitor::visiting(std::__cxx11::string)':
format_visitor.h:84:17: error: base operand of '->' is not a pointer
             z[i]->Visit(this);
                 ^~
In file included from /usr/include/c++/7/cassert:44:0,
                 from main.cpp:2:
main.cpp: In function 'int main()':
main.cpp:178:26: error: no match for 'operator==' (operand types are 'std::vector<std::__cxx11::basic_string<char> >' and 'std::__cxx11::basic_string<char>')
     assert(expected_code == formatted);
            ~~~~~~~~~~~~~~^~~~
In file included from /usr/include/c++/7/vector:64:0,
                 from main.cpp:5:
/usr/include/c++/7/bits/stl_vector.h:1601:5: note: candidate: template<class _Tp, class _Alloc> bool std::operator==(const std::vector<_Tp, _Alloc>&, const std::vector<_Tp, _Alloc>&)
     operator==(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y)
     ^~~~~~~~
/usr/include/c++/7/bits/stl_vector.h:1601:5: note:   template argument deduction/substitution failed:
In file included from /usr/include/c++/7/cassert:44:0,
                 from main.cpp:2:
main.cpp:178:29: note:   'std::__cxx11::basic_string<char>' is not derived from 'const std::vector<_Tp, _Alloc>'
     assert(expected_code == formatted);
                             ^
In file included from /usr/include/c++/7/memory:81:0,
                 from main.cpp:4:
/usr/include/c++/7/bits/shared_ptr.h:378:5: note: candidate: template<class _Tp> bool std::operator==(std::nullptr_t, const std::shared_ptr<_Tp>&)
     operator==(nullptr_t, const shared_ptr<_Tp>& __a) noexcept
     ^~~~~~~~
/usr/include/c++/7/bits/shared_ptr.h:378:5: note:   template argument deduction/substitution failed:
In file included from /usr/include/c++/7/cassert:44:0,
                 from main.cpp:2:
main.cpp:178:29: note:   'std::__cxx11::basic_string<char>' is not derived from 'const std::shared_ptr<_Tp>'
     assert(expected_code == formatted);
                             ^
In file included from /usr/include/c++/7/memory:81:0,
                 from main.cpp:4:
/usr/include/c++/7/bits/shared_ptr.h:373:5: note: candidate: template<class _Tp> bool std::operator==(const std::shared_ptr<_Tp>&, std::nullptr_t)
     operator==(const shared_ptr<_Tp>& __a, nullptr_t) noexcept
     ^~~~~~~~
/usr/include/c++/7/bits/shared_ptr.h:373:5: note:   template argument deduction/substitution failed:
In file included from /usr/include/c++/7/cassert:44:0,
                 from main.cpp:2:
main.cpp:178:29: note:   'std::vector<std::__cxx11::basic_string<char> >' is not derived from 'const std::shared_ptr<_Tp>'
     assert(expected_code == formatted);
                             ^
In file included from /usr/include/c++/7/memory:81:0,
                 from main.cpp:4:
/usr/include/c++/7/bits/shared_ptr.h:368:5: note: candidate: template<class _Tp, class _Up> bool std::operator==(const std::shared_ptr<_Tp>&, const std::shared_ptr<_Up>&)
     operator==(const shared_ptr<_Tp>& __a, const shared_ptr<_Up>& __b) noexcept
     ^~~~~~~~
/usr/include/c++/7/bits/shared_ptr.h:368:5: note:   template argument deduction/substitution failed:
In file included from /usr/include/c++/7/cassert:44:0,
                 from main.cpp:2:
main.cpp:178:29: note:   'std::vector<std::__cxx11::basic_string<char> >' is not derived from 'const std::shared_ptr<_Tp>'
     assert(expected_code == formatted);
                             ^
In file included from /usr/include/c++/7/bits/shared_ptr.h:52:0,
                 from /usr/include/c++/7/memory:81,
                 from main.cpp:4:
/usr/include/c++/7/bits/shared_ptr_base.h:1420:5: note: candidate: template<class _Tp, __gnu_cxx::_Lock_policy _Lp> bool std::operator==(std::nullptr_t, const std::__shared_ptr<_Tp, _Lp>&)
     operator==(nullptr_t, const __shared_ptr<_Tp, _Lp>& __a) noexcept
     ^~~~~~~~
/usr/include/c++/7/bits/shared_ptr_base.h:1420:5: note:   template argument deduction/substitution failed:
In file included from /usr/include/c++/7/cassert:44:0,
                 from main.cpp:2:
main.cpp:178:29: note:   'std::__cxx11::basic_string<char>' is not derived from 'const std::__shared_ptr<_Tp, _Lp>'
     assert(expected_code == formatted);
                             ^
In file included from /usr/include/c++/7/bits/shared_ptr.h:52:0,
                 from /usr/include/c++/7/memory:81,
                 from main.cpp:4:
/usr/include/c++/7/bits/shared_ptr_base.h:1415:5: note: candidate: template<class _Tp, __gnu_cxx::_Lock_policy _Lp> bool std::operator==(const std::__shared_ptr<_Tp, _Lp>&, std::nullptr_t)
     operator==(const __shared_ptr<_Tp, _Lp>& __a, nullptr_t) noexcept
     ^~~~~~~~
/usr/include/c++/7/bits/shared_ptr_base.h:1415:5: note:   template argument deduction/substitution failed:
In file included from /usr/include/c++/7/cassert:44:0,
                 from main.cpp:2:
main.cpp:178:29: note:   'std::vector<std::__cxx11::basic_string<char> >' is not derived from 'const std::__shared_ptr<_Tp, _Lp>'
     assert(expected_code == formatted);
                             ^
In file included from /usr/include/c++/7/bits/shared_ptr.h:52:0,
                 from /usr/include/c++/7/memory:81,
                 from main.cpp:4:
/usr/include/c++/7/bits/shared_ptr_base.h:1409:5: note: candidate: template<class _Tp1, class _Tp2, __gnu_cxx::_Lock_policy _Lp> bool std::operator==(const std::__shared_ptr<_Tp1, _Lp>&, const std::__shared_ptr<_Tp2, _Lp>&)
     operator==(const __shared_ptr<_Tp1, _Lp>& __a,
     ^~~~~~~~
/usr/include/c++/7/bits/shared_ptr_base.h:1409:5: note:   template argument deduction/substitution failed:
In file included from /usr/include/c++/7/cassert:44:0,
                 from main.cpp:2:
main.cpp:178:29: note:   'std::vector<std::__cxx11::basic_string<char> >' is not derived from 'const std::__shared_ptr<_Tp1, _Lp>'
     assert(expected_code == formatted);
                             ^
In file included from /usr/include/c++/7/memory:80:0,
                 from main.cpp:4:
/usr/include/c++/7/bits/unique_ptr.h:690:5: note: candidate: template<class _Tp, class _Dp> bool std::operator==(std::nullptr_t, const std::unique_ptr<_Tp, _Dp>&)
     operator==(nullptr_t, const unique_ptr<_Tp, _Dp>& __x) noexcept
     ^~~~~~~~
/usr/include/c++/7/bits/unique_ptr.h:690:5: note:   template argument deduction/substitution failed:
In file included from /usr/include/c++/7/cassert:44:0,
                 from main.cpp:2:
main.cpp:178:29: note:   'std::__cxx11::basic_string<char>' is not derived from 'const std::unique_ptr<_Tp, _Dp>'
     assert(expected_code == formatted);
                             ^
In file included from /usr/include/c++/7/memory:80:0,
                 from main.cpp:4:
/usr/include/c++/7/bits/unique_ptr.h:685:5: note: candidate: template<class _Tp, class _Dp> bool std::operator==(const std::unique_ptr<_Tp, _Dp>&, std::nullptr_t)
     operator==(const unique_ptr<_Tp, _Dp>& __x, nullptr_t) noexcept
     ^~~~~~~~
/usr/include/c++/7/bits/unique_ptr.h:685:5: note:   template argument deduction/substitution failed:
In file included from /usr/include/c++/7/cassert:44:0,
                 from main.cpp:2:
main.cpp:178:29: note:   'std::vector<std::__cxx11::basic_string<char> >' is not derived from 'const std::unique_ptr<_Tp, _Dp>'
     assert(expected_code == formatted);
                             ^
In file included from /usr/include/c++/7/memory:80:0,
                 from main.cpp:4:
/usr/include/c++/7/bits/unique_ptr.h:679:5: note: candidate: template<class _Tp, class _Dp, class _Up, class _Ep> bool std::operator==(const std::unique_ptr<_Tp, _Dp>&, const std::unique_ptr<_Up, _Ep>&)
     operator==(const unique_ptr<_Tp, _Dp>& __x,
     ^~~~~~~~
/usr/include/c++/7/bits/unique_ptr.h:679:5: note:   template argument deduction/substitution failed:
In file included from /usr/include/c++/7/cassert:44:0,
                 from main.cpp:2:
main.cpp:178:29: note:   'std::vector<std::__cxx11::basic_string<char> >' is not derived from 'const std::unique_ptr<_Tp, _Dp>'
     assert(expected_code == formatted);
                             ^
In file included from /usr/include/c++/7/bits/unique_ptr.h:37:0,
                 from /usr/include/c++/7/memory:80,
                 from main.cpp:4:
/usr/include/c++/7/tuple:1397:5: note: candidate: template<class ... _TElements, class ... _UElements> constexpr bool std::operator==(const std::tuple<_Tps ...>&, const std::tuple<_Elements ...>&)
     operator==(const tuple<_TElements...>& __t,
     ^~~~~~~~
/usr/include/c++/7/tuple:1397:5: note:   template argument deduction/substitution failed:
In file included from /usr/include/c++/7/cassert:44:0,
                 from main.cpp:2:
main.cpp:178:29: note:   'std::vector<std::__cxx11::basic_string<char> >' is not derived from 'const std::tuple<_Tps ...>'
     assert(expected_code == formatted);
                             ^
In file included from /usr/include/c++/7/tuple:39:0,
                 from /usr/include/c++/7/bits/unique_ptr.h:37,
                 from /usr/include/c++/7/memory:80,
                 from main.cpp:4:
/usr/include/c++/7/array:252:5: note: candidate: template<class _Tp, long unsigned int _Nm> bool std::operator==(const std::array<_Tp, _Nm>&, const std::array<_Tp, _Nm>&)
     operator==(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two)
     ^~~~~~~~
/usr/include/c++/7/array:252:5: note:   template argument deduction/substitution failed:
In file included from /usr/include/c++/7/cassert:44:0,
                 from main.cpp:2:
main.cpp:178:29: note:   'std::vector<std::__cxx11::basic_string<char> >' is not derived from 'const std::array<_Tp, _Nm>'
     assert(expected_code == formatted);
                             ^
In file included from /usr/include/c++/7/bits/locale_facets.h:48:0,
                 from /usr/include/c++/7/bits/basic_ios.h:37,
                 from /usr/include/c++/7/ios:44,
                 from /usr/include/c++/7/ostream:38,
                 from /usr/include/c++/7/iostream:39,
                 from main.cpp:1:
/usr/include/c++/7/bits/streambuf_iterator.h:204:5: note: candidate: template<class _CharT, class _Traits> bool std::operator==(const std::istreambuf_iterator<_CharT, _Traits>&, const std::istreambuf_iterator<_CharT, _Traits>&)
     operator==(const istreambuf_iterator<_CharT, _Traits>& __a,
     ^~~~~~~~
/usr/include/c++/7/bits/streambuf_iterator.h:204:5: note:   template argument deduction/substitution failed:
In file included from /usr/include/c++/7/cassert:44:0,
                 from main.cpp:2:
main.cpp:178:29: note:   'std::vector<std::__cxx11::basic_string<char> >' is not derived from 'const std::istreambuf_iterator<_CharT, _Traits>'
     assert(expected_code == formatted);
                             ^
In file included from /usr/include/c++/7/bits/ios_base.h:46:0,
                 from /usr/include/c++/7/ios:42,
                 from /usr/include/c++/7/ostream:38,
                 from /usr/include/c++/7/iostream:39,
                 from main.cpp:1:
/usr/include/c++/7/system_error:311:3: note: candidate: bool std::operator==(const std::error_condition&, const std::error_condition&)
   operator==(const error_condition& __lhs,
   ^~~~~~~~
/usr/include/c++/7/system_error:311:3: note:   no known conversion for argument 1 from 'std::vector<std::__cxx11::basic_string<char> >' to 'const std::error_condition&'
/usr/include/c++/7/system_error:304:3: note: candidate: bool std::operator==(const std::error_condition&, const std::error_code&)
   operator==(const error_condition& __lhs, const error_code& __rhs) noexcept
   ^~~~~~~~
/usr/include/c++/7/system_error:304:3: note:   no known conversion for argument 1 from 'std::vector<std::__cxx11::basic_string<char> >' to 'const std::error_condition&'
/usr/include/c++/7/system_error:297:3: note: candidate: bool std::operator==(const std::error_code&, const std::error_condition&)
   operator==(const error_code& __lhs, const error_condition& __rhs) noexcept
   ^~~~~~~~
/usr/include/c++/7/system_error:297:3: note:   no known conversion for argument 1 from 'std::vector<std::__cxx11::basic_string<char> >' to 'const std::error_code&'
/usr/include/c++/7/system_error:292:3: note: candidate: bool std::operator==(const std::error_code&, const std::error_code&)
   operator==(const error_code& __lhs, const error_code& __rhs) noexcept
   ^~~~~~~~
/usr/include/c++/7/system_error:292:3: note:   no known conversion for argument 1 from 'std::vector<std::__cxx11::basic_string<char> >' to 'const std::error_code&'
In file included from /usr/include/c++/7/string:52:0,
                 from /usr/include/c++/7/bits/locale_classes.h:40,
                 from /usr/include/c++/7/bits/ios_base.h:41,
                 from /usr/include/c++/7/ios:42,
                 from /usr/include/c++/7/ostream:38,
                 from /usr/include/c++/7/iostream:39,
                 from main.cpp:1:
/usr/include/c++/7/bits/basic_string.h:6043:5: note: candidate: template<class _CharT, class _Traits, class _Alloc> bool std::operator==(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&, const _CharT*)
     operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
     ^~~~~~~~
/usr/include/c++/7/bits/basic_string.h:6043:5: note:   template argument deduction/substitution failed:
In file included from /usr/include/c++/7/cassert:44:0,
                 from main.cpp:2:
main.cpp:178:29: note:   'std::vector<std::__cxx11::basic_string<char> >' is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>'
     assert(expected_code == formatted);
                             ^
In file included from /usr/include/c++/7/string:52:0,
                 from /usr/include/c++/7/bits/locale_classes.h:40,
                 from /usr/include/c++/7/bits/ios_base.h:41,
                 from /usr/include/c++/7/ios:42,
                 from /usr/include/c++/7/ostream:38,
                 from /usr/include/c++/7/iostream:39,
                 from main.cpp:1:
/usr/include/c++/7/bits/basic_string.h:6031:5: note: candidate: template<class _CharT, class _Traits, class _Alloc> bool std::operator==(const _CharT*, const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&)
     operator==(const _CharT* __lhs,
     ^~~~~~~~
/usr/include/c++/7/bits/basic_string.h:6031:5: note:   template argument deduction/substitution failed:
In file included from /usr/include/c++/7/cassert:44:0,
                 from main.cpp:2:
main.cpp:178:29: note:   mismatched types 'const _CharT*' and 'std::vector<std::__cxx11::basic_string<char> >'
     assert(expected_code == formatted);
                             ^
In file included from /usr/include/c++/7/string:52:0,
                 from /usr/include/c++/7/bits/locale_classes.h:40,
                 from /usr/include/c++/7/bits/ios_base.h:41,
                 from /usr/include/c++/7/ios:42,
                 from /usr/include/c++/7/ostream:38,
                 from /usr/include/c++/7/iostream:39,
                 from main.cpp:1:
/usr/include/c++/7/bits/basic_string.h:6017:5: note: candidate: template<class _CharT> typename __gnu_cxx::__enable_if<std::__is_char<_Tp>::__value, bool>::__type std::operator==(const std::__cxx11::basic_string<_CharT>&, const std::__cxx11::basic_string<_CharT>&)
     operator==(const basic_string<_CharT>& __lhs,
     ^~~~~~~~
/usr/include/c++/7/bits/basic_string.h:6017:5: note:   template argument deduction/substitution failed:
In file included from /usr/include/c++/7/cassert:44:0,
                 from main.cpp:2:
main.cpp:178:29: note:   'std::vector<std::__cxx11::basic_string<char> >' is not derived from 'const std::__cxx11::basic_string<_CharT>'
     assert(expected_code == formatted);
                             ^
In file included from /usr/include/c++/7/string:52:0,
                 from /usr/include/c++/7/bits/locale_classes.h:40,
                 from /usr/include/c++/7/bits/ios_base.h:41,
                 from /usr/include/c++/7/ios:42,
                 from /usr/include/c++/7/ostream:38,
                 from /usr/include/c++/7/iostream:39,
                 from main.cpp:1:
/usr/include/c++/7/bits/basic_string.h:6009:5: note: candidate: template<class _CharT, class _Traits, class _Alloc> bool std::operator==(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&, const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&)
     operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
     ^~~~~~~~
/usr/include/c++/7/bits/basic_string.h:6009:5: note:   template argument deduction/substitution failed:
In file included from /usr/include/c++/7/cassert:44:0,
                 from main.cpp:2:
main.cpp:178:29: note:   'std::vector<std::__cxx11::basic_string<char> >' is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>'
     assert(expected_code == formatted);
                             ^
In file included from /usr/include/c++/7/string:41:0,
                 from /usr/include/c++/7/bits/locale_classes.h:40,
                 from /usr/include/c++/7/bits/ios_base.h:41,
                 from /usr/include/c++/7/ios:42,
                 from /usr/include/c++/7/ostream:38,
                 from /usr/include/c++/7/iostream:39,
                 from main.cpp:1:
/usr/include/c++/7/bits/allocator.h:152:5: note: candidate: template<class _Tp> bool std::operator==(const std::allocator<_CharT>&, const std::allocator<_CharT>&)
     operator==(const allocator<_Tp>&, const allocator<_Tp>&)
     ^~~~~~~~
/usr/include/c++/7/bits/allocator.h:152:5: note:   template argument deduction/substitution failed:
In file included from /usr/include/c++/7/cassert:44:0,
                 from main.cpp:2:
main.cpp:178:29: note:   'std::vector<std::__cxx11::basic_string<char> >' is not derived from 'const std::allocator<_CharT>'
     assert(expected_code == formatted);
                             ^
In file included from /usr/include/c++/7/string:41:0,
                 from /usr/include/c++/7/bits/locale_classes.h:40,
                 from /usr/include/c++/7/bits/ios_base.h:41,
                 from /usr/include/c++/7/ios:42,
                 from /usr/include/c++/7/ostream:38,
                 from /usr/include/c++/7/iostream:39,
                 from main.cpp:1:
/usr/include/c++/7/bits/allocator.h:146:5: note: candidate: template<class _T1, class _T2> bool std::operator==(const std::allocator<_CharT>&, const std::allocator<_T2>&)
     operator==(const allocator<_T1>&, const allocator<_T2>&)
     ^~~~~~~~
/usr/include/c++/7/bits/allocator.h:146:5: note:   template argument deduction/substitution failed:
In file included from /usr/include/c++/7/cassert:44:0,
                 from main.cpp:2:
main.cpp:178:29: note:   'std::vector<std::__cxx11::basic_string<char> >' is not derived from 'const std::allocator<_CharT>'
     assert(expected_code == formatted);
                             ^
In file included from /usr/include/c++/7/bits/stl_algobase.h:67:0,
                 from /usr/include/c++/7/bits/char_traits.h:39,
                 from /usr/include/c++/7/ios:40,
                 from /usr/include/c++/7/ostream:38,
                 from /usr/include/c++/7/iostream:39,
                 from main.cpp:1:
/usr/include/c++/7/bits/stl_iterator.h:1127:5: note: candidate: template<class _Iterator> bool std::operator==(const std::move_iterator<_IteratorL>&, const std::move_iterator<_IteratorL>&)
     operator==(const move_iterator<_Iterator>& __x,
     ^~~~~~~~
/usr/include/c++/7/bits/stl_iterator.h:1127:5: note:   template argument deduction/substitution failed:
In file included from /usr/include/c++/7/cassert:44:0,
                 from main.cpp:2:
main.cpp:178:29: note:   'std::vector<std::__cxx11::basic_string<char> >' is not derived from 'const std::move_iterator<_IteratorL>'
     assert(expected_code == formatted);
                             ^
In file included from /usr/include/c++/7/bits/stl_algobase.h:67:0,
                 from /usr/include/c++/7/bits/char_traits.h:39,
                 from /usr/include/c++/7/ios:40,
                 from /usr/include/c++/7/ostream:38,
                 from /usr/include/c++/7/iostream:39,
                 from main.cpp:1:
/usr/include/c++/7/bits/stl_iterator.h:1121:5: note: candidate: template<class _IteratorL, class _IteratorR> bool std::operator==(const std::move_iterator<_IteratorL>&, const std::move_iterator<_IteratorR>&)
     operator==(const move_iterator<_IteratorL>& __x,
     ^~~~~~~~
/usr/include/c++/7/bits/stl_iterator.h:1121:5: note:   template argument deduction/substitution failed:
In file included from /usr/include/c++/7/cassert:44:0,
                 from main.cpp:2:
main.cpp:178:29: note:   'std::vector<std::__cxx11::basic_string<char> >' is not derived from 'const std::move_iterator<_IteratorL>'
     assert(expected_code == formatted);
                             ^
In file included from /usr/include/c++/7/bits/stl_algobase.h:67:0,
                 from /usr/include/c++/7/bits/char_traits.h:39,
                 from /usr/include/c++/7/ios:40,
                 from /usr/include/c++/7/ostream:38,
                 from /usr/include/c++/7/iostream:39,
                 from main.cpp:1:
/usr/include/c++/7/bits/stl_iterator.h:340:5: note: candidate: template<class _IteratorL, class _IteratorR> bool std::operator==(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_IteratorR>&)
     operator==(const reverse_iterator<_IteratorL>& __x,
     ^~~~~~~~
/usr/include/c++/7/bits/stl_iterator.h:340:5: note:   template argument deduction/substitution failed:
In file included from /usr/include/c++/7/cassert:44:0,
                 from main.cpp:2:
main.cpp:178:29: note:   'std::vector<std::__cxx11::basic_string<char> >' is not derived from 'const std::reverse_iterator<_Iterator>'
     assert(expected_code == formatted);
                             ^
In file included from /usr/include/c++/7/bits/stl_algobase.h:67:0,
                 from /usr/include/c++/7/bits/char_traits.h:39,
                 from /usr/include/c++/7/ios:40,
                 from /usr/include/c++/7/ostream:38,
                 from /usr/include/c++/7/iostream:39,
                 from main.cpp:1:
/usr/include/c++/7/bits/stl_iterator.h:302:5: note: candidate: template<class _Iterator> bool std::operator==(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_Iterator>&)
     operator==(const reverse_iterator<_Iterator>& __x,
     ^~~~~~~~
/usr/include/c++/7/bits/stl_iterator.h:302:5: note:   template argument deduction/substitution failed:
In file included from /usr/include/c++/7/cassert:44:0,
                 from main.cpp:2:
main.cpp:178:29: note:   'std::vector<std::__cxx11::basic_string<char> >' is not derived from 'const std::reverse_iterator<_Iterator>'
     assert(expected_code == formatted);
                             ^
In file included from /usr/include/c++/7/bits/stl_algobase.h:64:0,
                 from /usr/include/c++/7/bits/char_traits.h:39,
                 from /usr/include/c++/7/ios:40,
                 from /usr/include/c++/7/ostream:38,
                 from /usr/include/c++/7/iostream:39,
                 from main.cpp:1:
/usr/include/c++/7/bits/stl_pair.h:448:5: note: candidate: template<class _T1, class _T2> constexpr bool std::operator==(const std::pair<_T1, _T2>&, const std::pair<_T1, _T2>&)
     operator==(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
     ^~~~~~~~
/usr/include/c++/7/bits/stl_pair.h:448:5: note:   template argument deduction/substitution failed:
In file included from /usr/include/c++/7/cassert:44:0,
                 from main.cpp:2:
main.cpp:178:29: note:   'std::vector<std::__cxx11::basic_string<char> >' is not derived from 'const std::pair<_T1, _T2>'
     assert(expected_code == formatted);
                             ^
In file included from /usr/include/c++/7/iosfwd:40:0,
                 from /usr/include/c++/7/ios:38,
                 from /usr/include/c++/7/ostream:38,
                 from /usr/include/c++/7/iostream:39,
                 from main.cpp:1:
/usr/include/c++/7/bits/postypes.h:216:5: note: candidate: template<class _StateT> bool std::operator==(const std::fpos<_StateT>&, const std::fpos<_StateT>&)
     operator==(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs)
     ^~~~~~~~
/usr/include/c++/7/bits/postypes.h:216:5: note:   template argument deduction/substitution failed:
In file included from /usr/include/c++/7/cassert:44:0,
                 from main.cpp:2:
main.cpp:178:29: note:   'std::vector<std::__cxx11::basic_string<char> >' is not derived from 'const std::fpos<_StateT>'
     assert(expected_code == formatted);
                             ^
In file included from /usr/include/x86_64-linux-gnu/c++/7/bits/c++allocator.h:33:0,
                 from /usr/include/c++/7/bits/allocator.h:46,
                 from /usr/include/c++/7/string:41,
                 from /usr/include/c++/7/bits/locale_classes.h:40,
                 from /usr/include/c++/7/bits/ios_base.h:41,
                 from /usr/include/c++/7/ios:42,
                 from /usr/include/c++/7/ostream:38,
                 from /usr/include/c++/7/iostream:39,
                 from main.cpp:1:
/usr/include/c++/7/ext/new_allocator.h:155:5: note: candidate: template<class _Tp> bool __gnu_cxx::operator==(const __gnu_cxx::new_allocator<_Tp>&, const __gnu_cxx::new_allocator<_Tp>&)
     operator==(const new_allocator<_Tp>&, const new_allocator<_Tp>&)
     ^~~~~~~~
/usr/include/c++/7/ext/new_allocator.h:155:5: note:   template argument deduction/substitution failed:
In file included from /usr/include/c++/7/cassert:44:0,
                 from main.cpp:2:
main.cpp:178:29: note:   'std::vector<std::__cxx11::basic_string<char> >' is not derived from 'const __gnu_cxx::new_allocator<_Tp>'
     assert(expected_code == formatted);
                             ^
In file included from /usr/include/c++/7/bits/stl_algobase.h:67:0,
                 from /usr/include/c++/7/bits/char_traits.h:39,
                 from /usr/include/c++/7/ios:40,
                 from /usr/include/c++/7/ostream:38,
                 from /usr/include/c++/7/iostream:39,
                 from main.cpp:1:
/usr/include/c++/7/bits/stl_iterator.h:869:5: note: candidate: template<class _Iterator, class _Container> bool __gnu_cxx::operator==(const __gnu_cxx::__normal_iterator<_Iterator, _Container>&, const __gnu_cxx::__normal_iterator<_Iterator, _Container>&)
     operator==(const __normal_iterator<_Iterator, _Container>& __lhs,
     ^~~~~~~~
/usr/include/c++/7/bits/stl_iterator.h:869:5: note:   template argument deduction/substitution failed:
In file included from /usr/include/c++/7/cassert:44:0,
                 from main.cpp:2:
main.cpp:178:29: note:   'std::vector<std::__cxx11::basic_string<char> >' is not derived from 'const __gnu_cxx::__normal_iterator<_Iterator, _Container>'
     assert(expected_code == formatted);
                             ^
In file included from /usr/include/c++/7/bits/stl_algobase.h:67:0,
                 from /usr/include/c++/7/bits/char_traits.h:39,
                 from /usr/include/c++/7/ios:40,
                 from /usr/include/c++/7/ostream:38,
                 from /usr/include/c++/7/iostream:39,
                 from main.cpp:1:
/usr/include/c++/7/bits/stl_iterator.h:862:5: note: candidate: template<class _IteratorL, class _IteratorR, class _Container> bool __gnu_cxx::operator==(const __gnu_cxx::__normal_iterator<_IteratorL, _Container>&, const __gnu_cxx::__normal_iterator<_IteratorR, _Container>&)
     operator==(const __normal_iterator<_IteratorL, _Container>& __lhs,
     ^~~~~~~~
/usr/include/c++/7/bits/stl_iterator.h:862:5: note:   template argument deduction/substitution failed:
In file included from /usr/include/c++/7/cassert:44:0,
                 from main.cpp:2:
main.cpp:178:29: note:   'std::vector<std::__cxx11::basic_string<char> >' is not derived from 'const __gnu_cxx::__normal_iterator<_IteratorL, _Container>'
     assert(expected_code == formatted);
                             ^
[печатать | |
]
(2 270 b)
0.050s 0.010s 10