Advertisement
chzchz

Untitled

Apr 4th, 2019
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 15.43 KB | None | 0 0
  1. ====================[ Build | graduation | Debug ]==============================
  2. /Applications/CLion.app/Contents/bin/cmake/mac/bin/cmake --build "/Users/chzchz/Documents/CLion Projects/Yellow/week 6/graduation/cmake-build-debug" --target graduation -- -j 2
  3. Scanning dependencies of target graduation
  4. [ 20%] Building CXX object CMakeFiles/graduation.dir/main.cpp.o
  5. In file included from /Users/chzchz/Documents/CLion Projects/Yellow/week 6/graduation/main.cpp:5:
  6. /Users/chzchz/Documents/CLion Projects/Yellow/week 6/graduation/test_runner.h:43:32: error: invalid operands to binary expression ('basic_ostream<char, std::__1::char_traits<char> >' and 'const std::__1::vector<std::__1::basic_string<char>, std::__1::allocator<std::__1::basic_string<char> > >')
  7.     os << "Assertion failed: " << t << " != " << u
  8.     ~~~~~~~~~~~~~~~~~~~~~~~~~~ ^  ~
  9. /Users/chzchz/Documents/CLion Projects/Yellow/week 6/graduation/main.cpp:90:5: note: in instantiation of function template specialization 'AssertEqual<std::__1::vector<std::__1::basic_string<char>, std::__1::allocator<std::__1::basic_string<char> > >, std::__1::vector<std::__1::basic_string<char>, std::__1::allocator<std::__1::basic_string<char> > > >' requested here
  10.     AssertEqual(events,
  11.     ^
  12. /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/ostream:218:20: note: candidate function not viable: no known conversion from 'const std::__1::vector<std::__1::basic_string<char>, std::__1::allocator<std::__1::basic_string<char> > >' to 'const void *' for 1st argument; take the address of the argument with &
  13.     basic_ostream& operator<<(const void* __p);
  14.                    ^
  15. /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/type_traits:4830:3: note: candidate function template not viable: no known conversion from 'basic_ostream<char, std::__1::char_traits<char> >' to 'std::byte' for 1st argument
  16.   operator<< (byte  __lhs, _Integer __shift) noexcept
  17.   ^
  18. /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/ostream:194:20: note: candidate function not viable: no known conversion from 'const std::__1::vector<std::__1::basic_string<char>, std::__1::allocator<std::__1::basic_string<char> > >' to 'std::__1::basic_ostream<char> &(*)(std::__1::basic_ostream<char> &)' for 1st argument
  19.     basic_ostream& operator<<(basic_ostream& (*__pf)(basic_ostream&))
  20.                    ^
  21. /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/ostream:198:20: note: candidate function not viable: no known conversion from 'const std::__1::vector<std::__1::basic_string<char>, std::__1::allocator<std::__1::basic_string<char> > >' to 'basic_ios<std::__1::basic_ostream<char, std::__1::char_traits<char> >::char_type, std::__1::basic_ostream<char, std::__1::char_traits<char> >::traits_type> &(*)(basic_ios<std::__1::basic_ostream<char, std::__1::char_traits<char> >::char_type, std::__1::basic_ostream<char, std::__1::char_traits<char> >::traits_type> &)' (aka 'basic_ios<char, std::__1::char_traits<char> > &(*)(basic_ios<char, std::__1::char_traits<char> > &)') for 1st argument
  22.     basic_ostream& operator<<(basic_ios<char_type, traits_type>&
  23.                    ^
  24. /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/ostream:203:20: note: candidate function not viable: no known conversion from 'const std::__1::vector<std::__1::basic_string<char>, std::__1::allocator<std::__1::basic_string<char> > >' to 'std::__1::ios_base &(*)(std::__1::ios_base &)' for 1st argument
  25.     basic_ostream& operator<<(ios_base& (*__pf)(ios_base&))
  26.                    ^
  27. /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/ostream:206:20: note: candidate function not viable: no known conversion from 'const std::__1::vector<std::__1::basic_string<char>, std::__1::allocator<std::__1::basic_string<char> > >' to 'bool' for 1st argument
  28.     basic_ostream& operator<<(bool __n);
  29.                    ^
  30. /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/ostream:207:20: note: candidate function not viable: no known conversion from 'const std::__1::vector<std::__1::basic_string<char>, std::__1::allocator<std::__1::basic_string<char> > >' to 'short' for 1st argument
  31.     basic_ostream& operator<<(short __n);
  32.                    ^
  33. /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/ostream:208:20: note: candidate function not viable: no known conversion from 'const std::__1::vector<std::__1::basic_string<char>, std::__1::allocator<std::__1::basic_string<char> > >' to 'unsigned short' for 1st argument
  34.     basic_ostream& operator<<(unsigned short __n);
  35.                    ^
  36. /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/ostream:209:20: note: candidate function not viable: no known conversion from 'const std::__1::vector<std::__1::basic_string<char>, std::__1::allocator<std::__1::basic_string<char> > >' to 'int' for 1st argument
  37.     basic_ostream& operator<<(int __n);
  38.                    ^
  39. /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/ostream:210:20: note: candidate function not viable: no known conversion from 'const std::__1::vector<std::__1::basic_string<char>, std::__1::allocator<std::__1::basic_string<char> > >' to 'unsigned int' for 1st argument
  40.     basic_ostream& operator<<(unsigned int __n);
  41.                    ^
  42. /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/ostream:211:20: note: candidate function not viable: no known conversion from 'const std::__1::vector<std::__1::basic_string<char>, std::__1::allocator<std::__1::basic_string<char> > >' to 'long' for 1st argument
  43.     basic_ostream& operator<<(long __n);
  44.                    ^
  45. /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/ostream:212:20: note: candidate function not viable: no known conversion from 'const std::__1::vector<std::__1::basic_string<char>, std::__1::allocator<std::__1::basic_string<char> > >' to 'unsigned long' for 1st argument
  46.     basic_ostream& operator<<(unsigned long __n);
  47.                    ^
  48. /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/ostream:213:20: note: candidate function not viable: no known conversion from 'const std::__1::vector<std::__1::basic_string<char>, std::__1::allocator<std::__1::basic_string<char> > >' to 'long long' for 1st argument
  49.     basic_ostream& operator<<(long long __n);
  50.                    ^
  51. /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/ostream:214:20: note: candidate function not viable: no known conversion from 'const std::__1::vector<std::__1::basic_string<char>, std::__1::allocator<std::__1::basic_string<char> > >' to 'unsigned long long' for 1st argument
  52.     basic_ostream& operator<<(unsigned long long __n);
  53.                    ^
  54. /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/ostream:215:20: note: candidate function not viable: no known conversion from 'const std::__1::vector<std::__1::basic_string<char>, std::__1::allocator<std::__1::basic_string<char> > >' to 'float' for 1st argument
  55.     basic_ostream& operator<<(float __f);
  56.                    ^
  57. /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/ostream:216:20: note: candidate function not viable: no known conversion from 'const std::__1::vector<std::__1::basic_string<char>, std::__1::allocator<std::__1::basic_string<char> > >' to 'double' for 1st argument
  58.     basic_ostream& operator<<(double __f);
  59.                    ^
  60. /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/ostream:217:20: note: candidate function not viable: no known conversion from 'const std::__1::vector<std::__1::basic_string<char>, std::__1::allocator<std::__1::basic_string<char> > >' to 'long double' for 1st argument
  61.     basic_ostream& operator<<(long double __f);
  62.                    ^
  63. /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/ostream:219:20: note: candidate function not viable: no known conversion from 'const std::__1::vector<std::__1::basic_string<char>, std::__1::allocator<std::__1::basic_string<char> > >' to 'basic_streambuf<std::__1::basic_ostream<char, std::__1::char_traits<char> >::char_type, std::__1::basic_ostream<char, std::__1::char_traits<char> >::traits_type> *' (aka 'basic_streambuf<char, std::__1::char_traits<char> > *') for 1st argument
  64.     basic_ostream& operator<<(basic_streambuf<char_type, traits_type>* __sb);
  65.                    ^
  66. /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/ostream:755:1: note: candidate function template not viable: no known conversion from 'const std::__1::vector<std::__1::basic_string<char>, std::__1::allocator<std::__1::basic_string<char> > >' to 'char' for 2nd argument
  67. operator<<(basic_ostream<_CharT, _Traits>& __os, char __cn)
  68. ^
  69. /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/ostream:788:1: note: candidate function template not viable: no known conversion from 'const std::__1::vector<std::__1::basic_string<char>, std::__1::allocator<std::__1::basic_string<char> > >' to 'char' for 2nd argument
  70. operator<<(basic_ostream<char, _Traits>& __os, char __c)
  71. ^
  72. /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/ostream:795:1: note: candidate function template not viable: no known conversion from 'const std::__1::vector<std::__1::basic_string<char>, std::__1::allocator<std::__1::basic_string<char> > >' to 'signed char' for 2nd argument
  73. operator<<(basic_ostream<char, _Traits>& __os, signed char __c)
  74. ^
  75. /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/ostream:802:1: note: candidate function template not viable: no known conversion from 'const std::__1::vector<std::__1::basic_string<char>, std::__1::allocator<std::__1::basic_string<char> > >' to 'unsigned char' for 2nd argument
  76. operator<<(basic_ostream<char, _Traits>& __os, unsigned char __c)
  77. ^
  78. /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/ostream:816:1: note: candidate function template not viable: no known conversion from 'const std::__1::vector<std::__1::basic_string<char>, std::__1::allocator<std::__1::basic_string<char> > >' to 'const char *' for 2nd argument
  79. operator<<(basic_ostream<_CharT, _Traits>& __os, const char* __strn)
  80. ^
  81. /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/ostream:862:1: note: candidate function template not viable: no known conversion from 'const std::__1::vector<std::__1::basic_string<char>, std::__1::allocator<std::__1::basic_string<char> > >' to 'const char *' for 2nd argument
  82. operator<<(basic_ostream<char, _Traits>& __os, const char* __str)
  83. ^
  84. /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/ostream:869:1: note: candidate function template not viable: no known conversion from 'const std::__1::vector<std::__1::basic_string<char>, std::__1::allocator<std::__1::basic_string<char> > >' to 'const signed char *' for 2nd argument
  85. operator<<(basic_ostream<char, _Traits>& __os, const signed char* __str)
  86. ^
  87. /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/ostream:877:1: note: candidate function template not viable: no known conversion from 'const std::__1::vector<std::__1::basic_string<char>, std::__1::allocator<std::__1::basic_string<char> > >' to 'const unsigned char *' for 2nd argument
  88. operator<<(basic_ostream<char, _Traits>& __os, const unsigned char* __str)
  89. ^
  90. /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/ostream:1061:1: note: candidate function template not viable: no known conversion from 'const std::__1::vector<std::__1::basic_string<char>, std::__1::allocator<std::__1::basic_string<char> > >' to 'const std::__1::error_code' for 2nd argument
  91. operator<<(basic_ostream<_CharT, _Traits>& __os, const error_code& __ec)
  92. ^
  93. /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/ostream:748:1: note: candidate template ignored: deduced conflicting types for parameter '_CharT' ('char' vs. 'std::__1::vector<std::__1::basic_string<char>, std::__1::allocator<std::__1::basic_string<char> > >')
  94. operator<<(basic_ostream<_CharT, _Traits>& __os, _CharT __c)
  95. ^
  96. /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/ostream:809:1: note: candidate template ignored: could not match 'const _CharT *' against 'std::__1::vector<std::__1::basic_string<char>, std::__1::allocator<std::__1::basic_string<char> > >'
  97. operator<<(basic_ostream<_CharT, _Traits>& __os, const _CharT* __str)
  98. ^
  99. /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/ostream:1044:1: note: candidate template ignored: could not match 'basic_string' against 'vector'
  100. operator<<(basic_ostream<_CharT, _Traits>& __os,
  101. ^
  102. /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/ostream:1069:1: note: candidate template ignored: could not match 'shared_ptr' against 'vector'
  103. operator<<(basic_ostream<_CharT, _Traits>& __os, shared_ptr<_Yp> const& __p)
  104. ^
  105. /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/ostream:1081:1: note: candidate template ignored: could not match 'unique_ptr' against 'vector'
  106. operator<<(basic_ostream<_CharT, _Traits>& __os, unique_ptr<_Yp, _Dp> const& __p)
  107. ^
  108. /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/ostream:1088:1: note: candidate template ignored: could not match 'bitset' against 'vector'
  109. operator<<(basic_ostream<_CharT, _Traits>& __os, const bitset<_Size>& __x)
  110. ^
  111. /Users/chzchz/Documents/CLion Projects/Yellow/week 6/graduation/test_runner.h:11:10: note: candidate template ignored: could not match 'set' against 'vector'
  112. ostream &operator<<(ostream &os, const set<T> &s) {
  113.          ^
  114. /Users/chzchz/Documents/CLion Projects/Yellow/week 6/graduation/test_runner.h:25:10: note: candidate template ignored: could not match 'map' against 'vector'
  115. ostream &operator<<(ostream &os, const map<K, V> &m) {
  116.          ^
  117. /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/ostream:1034:1: note: candidate template ignored: requirement '!is_lvalue_reference<basic_ostream<char> &>::value' was not satisfied [with _Stream = std::__1::basic_ostream<char> &, _Tp = std::__1::vector<std::__1::basic_string<char>, std::__1::allocator<std::__1::basic_string<char> > >]
  118. operator<<(_Stream&& __os, const _Tp& __x)
  119. ^
  120. /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/ostream:1052:1: note: candidate template ignored: could not match 'basic_string_view' against 'vector'
  121. operator<<(basic_ostream<_CharT, _Traits>& __os,
  122. ^
  123. 1 error generated.
  124. make[3]: *** [CMakeFiles/graduation.dir/main.cpp.o] Error 1
  125. make[2]: *** [CMakeFiles/graduation.dir/all] Error 2
  126. make[1]: *** [CMakeFiles/graduation.dir/rule] Error 2
  127. make: *** [graduation] Error 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement