Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ====================[ Build | graduation | Debug ]==============================
- /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
- Scanning dependencies of target graduation
- [ 33%] Building CXX object CMakeFiles/graduation.dir/test_runner.cpp.o
- [ 33%] Building CXX object CMakeFiles/graduation.dir/main.cpp.o
- In file included from /Users/chzchz/Documents/CLion Projects/Yellow/week 6/graduation/main.cpp:5:
- /Users/chzchz/Documents/CLion Projects/Yellow/week 6/graduation/test_runner.h:66: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> > >')
- os << "Assertion failed: " << t << " != " << u
- ~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~
- /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
- AssertEqual(events,
- ^
- /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 &
- basic_ostream& operator<<(const void* __p);
- ^
- /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
- operator<< (byte __lhs, _Integer __shift) noexcept
- ^
- /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
- basic_ostream& operator<<(basic_ostream& (*__pf)(basic_ostream&))
- ^
- /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
- basic_ostream& operator<<(basic_ios<char_type, traits_type>&
- ^
- /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
- basic_ostream& operator<<(ios_base& (*__pf)(ios_base&))
- ^
- /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
- basic_ostream& operator<<(bool __n);
- ^
- /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
- basic_ostream& operator<<(short __n);
- ^
- /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
- basic_ostream& operator<<(unsigned short __n);
- ^
- /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
- basic_ostream& operator<<(int __n);
- ^
- /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
- basic_ostream& operator<<(unsigned int __n);
- ^
- /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
- basic_ostream& operator<<(long __n);
- ^
- /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
- basic_ostream& operator<<(unsigned long __n);
- ^
- /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
- basic_ostream& operator<<(long long __n);
- ^
- /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
- basic_ostream& operator<<(unsigned long long __n);
- ^
- /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
- basic_ostream& operator<<(float __f);
- ^
- /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
- basic_ostream& operator<<(double __f);
- ^
- /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
- basic_ostream& operator<<(long double __f);
- ^
- /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
- basic_ostream& operator<<(basic_streambuf<char_type, traits_type>* __sb);
- ^
- /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
- operator<<(basic_ostream<_CharT, _Traits>& __os, char __cn)
- ^
- /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
- operator<<(basic_ostream<char, _Traits>& __os, char __c)
- ^
- /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
- operator<<(basic_ostream<char, _Traits>& __os, signed char __c)
- ^
- /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
- operator<<(basic_ostream<char, _Traits>& __os, unsigned char __c)
- ^
- /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
- operator<<(basic_ostream<_CharT, _Traits>& __os, const char* __strn)
- ^
- /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
- operator<<(basic_ostream<char, _Traits>& __os, const char* __str)
- ^
- /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
- operator<<(basic_ostream<char, _Traits>& __os, const signed char* __str)
- ^
- /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
- operator<<(basic_ostream<char, _Traits>& __os, const unsigned char* __str)
- ^
- /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
- operator<<(basic_ostream<_CharT, _Traits>& __os, const error_code& __ec)
- ^
- /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> > >')
- operator<<(basic_ostream<_CharT, _Traits>& __os, _CharT __c)
- ^
- /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> > >'
- operator<<(basic_ostream<_CharT, _Traits>& __os, const _CharT* __str)
- ^
- /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'
- operator<<(basic_ostream<_CharT, _Traits>& __os,
- ^
- /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'
- operator<<(basic_ostream<_CharT, _Traits>& __os, shared_ptr<_Yp> const& __p)
- ^
- /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'
- operator<<(basic_ostream<_CharT, _Traits>& __os, unique_ptr<_Yp, _Dp> const& __p)
- ^
- /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'
- operator<<(basic_ostream<_CharT, _Traits>& __os, const bitset<_Size>& __x)
- ^
- /Users/chzchz/Documents/CLion Projects/Yellow/week 6/graduation/test_runner.h:35:10: note: candidate template ignored: could not match 'set' against 'vector'
- ostream &operator<<(ostream &os, const set<T> &s) {
- ^
- /Users/chzchz/Documents/CLion Projects/Yellow/week 6/graduation/test_runner.h:49:10: note: candidate template ignored: could not match 'map' against 'vector'
- ostream &operator<<(ostream &os, const map<K, V> &m) {
- ^
- /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> > >]
- operator<<(_Stream&& __os, const _Tp& __x)
- ^
- /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'
- operator<<(basic_ostream<_CharT, _Traits>& __os,
- ^
- 1 error generated.
- make[3]: *** [CMakeFiles/graduation.dir/main.cpp.o] Error 1
- make[2]: *** [CMakeFiles/graduation.dir/all] Error 2
- make[1]: *** [CMakeFiles/graduation.dir/rule] Error 2
- make: *** [graduation] Error 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement