Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Language

Compiler

Options

$
prog.cc:11:23: error: invalid operands to binary expression ('basic_ostream<char, std::__1::char_traits<char> >' and 'const std::__1::vector<int, std::__1::allocator<int> >')
    std::cout << "\t" << r << std::endl;
    ~~~~~~~~~~~~~~~~~ ^  ~
prog.cc:36:5: note: in instantiation of function template specialization 'print<ranges::transform_view<ranges::zip_view<ranges::ref_view<std::__1::vector<std::__1::vector<int, std::__1::allocator<int> >, std::__1::allocator<std::__1::vector<int, std::__1::allocator<int> > > > > >, (lambda at prog.cc:18:21)> >' requested here
    print( "V", V );
    ^
/opt/wandbox/clang-10.0.0/include/c++/v1/type_traits:4050: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
  ^
/opt/wandbox/clang-10.0.0/include/c++/v1/ostream:760:1: note: candidate function template not viable: no known conversion from 'const std::__1::vector<int, std::__1::allocator<int> >' to 'char' for 2nd argument
operator<<(basic_ostream<_CharT, _Traits>& __os, char __cn)
^
/opt/wandbox/clang-10.0.0/include/c++/v1/ostream:793:1: note: candidate function template not viable: no known conversion from 'const std::__1::vector<int, std::__1::allocator<int> >' to 'char' for 2nd argument
operator<<(basic_ostream<char, _Traits>& __os, char __c)
^
/opt/wandbox/clang-10.0.0/include/c++/v1/ostream:800:1: note: candidate function template not viable: no known conversion from 'const std::__1::vector<int, std::__1::allocator<int> >' to 'signed char' for 2nd argument
operator<<(basic_ostream<char, _Traits>& __os, signed char __c)
^
/opt/wandbox/clang-10.0.0/include/c++/v1/ostream:807:1: note: candidate function template not viable: no known conversion from 'const std::__1::vector<int, std::__1::allocator<int> >' to 'unsigned char' for 2nd argument
operator<<(basic_ostream<char, _Traits>& __os, unsigned char __c)
^
/opt/wandbox/clang-10.0.0/include/c++/v1/ostream:821:1: note: candidate function template not viable: no known conversion from 'const std::__1::vector<int, std::__1::allocator<int> >' to 'const char *' for 2nd argument
operator<<(basic_ostream<_CharT, _Traits>& __os, const char* __strn)
^
/opt/wandbox/clang-10.0.0/include/c++/v1/ostream:867:1: note: candidate function template not viable: no known conversion from 'const std::__1::vector<int, std::__1::allocator<int> >' to 'const char *' for 2nd argument
operator<<(basic_ostream<char, _Traits>& __os, const char* __str)
^
/opt/wandbox/clang-10.0.0/include/c++/v1/ostream:874:1: note: candidate function template not viable: no known conversion from 'const std::__1::vector<int, std::__1::allocator<int> >' to 'const signed char *' for 2nd argument
operator<<(basic_ostream<char, _Traits>& __os, const signed char* __str)
^
/opt/wandbox/clang-10.0.0/include/c++/v1/ostream:882:1: note: candidate function template not viable: no known conversion from 'const std::__1::vector<int, std::__1::allocator<int> >' to 'const unsigned char *' for 2nd argument
operator<<(basic_ostream<char, _Traits>& __os, const unsigned char* __str)
^
/opt/wandbox/clang-10.0.0/include/c++/v1/ostream:1066:1: note: candidate function template not viable: no known conversion from 'const std::__1::vector<int, std::__1::allocator<int> >' to 'const std::__1::error_code' for 2nd argument
operator<<(basic_ostream<_CharT, _Traits>& __os, const error_code& __ec)
^
/opt/wandbox/clang-10.0.0/include/c++/v1/random:3895:1: note: candidate function template not viable: no known conversion from 'const std::__1::vector<int, std::__1::allocator<int> >' to 'const std::__1::bernoulli_distribution' for 2nd argument
operator<<(basic_ostream<_CharT, _Traits>& __os, const bernoulli_distribution& __x)
^
/opt/wandbox/clang-10.0.0/include/c++/v1/ostream:753:1: note: candidate template ignored: deduced conflicting types for parameter '_CharT' ('char' vs. 'std::__1::vector<int, std::__1::allocator<int> >')
operator<<(basic_ostream<_CharT, _Traits>& __os, _CharT __c)
^
/opt/wandbox/clang-10.0.0/include/c++/v1/ostream:814:1: note: candidate template ignored: could not match 'const _CharT *' against 'std::__1::vector<int, std::__1::allocator<int> >'
operator<<(basic_ostream<_CharT, _Traits>& __os, const _CharT* __str)
^
/opt/wandbox/clang-10.0.0/include/c++/v1/ostream:1049:1: note: candidate template ignored: could not match 'basic_string' against 'vector'
operator<<(basic_ostream<_CharT, _Traits>& __os,
^
/opt/wandbox/clang-10.0.0/include/c++/v1/ostream:1057:1: note: candidate template ignored: could not match 'basic_string_view' against 'vector'
operator<<(basic_ostream<_CharT, _Traits>& __os,
^
/opt/wandbox/clang-10.0.0/include/c++/v1/ostream:1074:1: note: candidate template ignored: could not match 'shared_ptr' against 'vector'
operator<<(basic_ostream<_CharT, _Traits>& __os, shared_ptr<_Yp> const& __p)
^
/opt/wandbox/clang-10.0.0/include/c++/v1/ostream:1039:1: note: candidate template ignored: requirement '!is_lvalue_reference<std::__1::basic_ostream<char, std::__1::char_traits<char> > &>::value' was not satisfied [with _Stream = std::__1::basic_ostream<char> &, _Tp = std::__1::vector<int, std::__1::allocator<int> >]
operator<<(_Stream&& __os, const _Tp& __x)
^
/opt/wandbox/clang-10.0.0/include/c++/v1/ostream:1086:1: note: candidate template ignored: could not match 'unique_ptr' against 'vector'
operator<<(basic_ostream<_CharT, _Traits>& __os, unique_ptr<_Yp, _Dp> const& __p)
^
/opt/wandbox/clang-10.0.0/include/c++/v1/ostream:1093:1: note: candidate template ignored: could not match 'bitset' against 'vector'
operator<<(basic_ostream<_CharT, _Traits>& __os, const bitset<_Size>& __x)
^
/opt/wandbox/clang-10.0.0/include/c++/v1/random:1981:1: note: candidate template ignored: could not match 'linear_congruential_engine' against 'vector'
operator<<(basic_ostream<_CharT, _Traits>& __os,
^
/opt/wandbox/clang-10.0.0/include/c++/v1/random:2451:1: note: candidate template ignored: could not match 'mersenne_twister_engine' against 'vector'
operator<<(basic_ostream<_CharT, _Traits>& __os,
^
/opt/wandbox/clang-10.0.0/include/c++/v1/random:2772:1: note: candidate template ignored: could not match 'subtract_with_carry_engine' against 'vector'
operator<<(basic_ostream<_CharT, _Traits>& __os,
^
/opt/wandbox/clang-10.0.0/include/c++/v1/random:2954:1: note: candidate template ignored: could not match 'discard_block_engine' against 'vector'
operator<<(basic_ostream<_CharT, _Traits>& __os,
^
/opt/wandbox/clang-10.0.0/include/c++/v1/random:3207:1: note: candidate template ignored: could not match 'independent_bits_engine' against 'vector'
operator<<(basic_ostream<_CharT, _Traits>& __os,
^
/opt/wandbox/clang-10.0.0/include/c++/v1/random:3439:1: note: candidate template ignored: could not match 'shuffle_order_engine' against 'vector'
operator<<(basic_ostream<_CharT, _Traits>& __os,
^
/opt/wandbox/clang-10.0.0/include/c++/v1/random:3662:1: note: candidate template ignored: could not match 'uniform_int_distribution' against 'vector'
operator<<(basic_ostream<_CharT, _Traits>& __os,
^
/opt/wandbox/clang-10.0.0/include/c++/v1/random:3783:1: note: candidate template ignored: could not match 'uniform_real_distribution' against 'vector'
operator<<(basic_ostream<_CharT, _Traits>& __os,
^
/opt/wandbox/clang-10.0.0/include/c++/v1/random:4073:1: note: candidate template ignored: could not match 'binomial_distribution' against 'vector'
operator<<(basic_ostream<_CharT, _Traits>& __os,
^
/opt/wandbox/clang-10.0.0/include/c++/v1/random:4191:1: note: candidate template ignored: could not match 'exponential_distribution' against 'vector'
operator<<(basic_ostream<_CharT, _Traits>& __os,
^
/opt/wandbox/clang-10.0.0/include/c++/v1/random:4345:1: note: candidate template ignored: could not match 'normal_distribution' against 'vector'
operator<<(basic_ostream<_CharT, _Traits>& __os,
^
/opt/wandbox/clang-10.0.0/include/c++/v1/random:4495:1: note: candidate template ignored: could not match 'lognormal_distribution' against 'vector'
operator<<(basic_ostream<_CharT, _Traits>& __os,
^
/opt/wandbox/clang-10.0.0/include/c++/v1/random:4719:1: note: candidate template ignored: could not match 'poisson_distribution' against 'vector'
operator<<(basic_ostream<_CharT, _Traits>& __os,
^
/opt/wandbox/clang-10.0.0/include/c++/v1/random:4830:1: note: candidate template ignored: could not match 'weibull_distribution' against 'vector'
operator<<(basic_ostream<_CharT, _Traits>& __os,
^
/opt/wandbox/clang-10.0.0/include/c++/v1/random:4949:1: note: candidate template ignored: could not match 'extreme_value_distribution' against 'vector'
operator<<(basic_ostream<_CharT, _Traits>& __os,
^
/opt/wandbox/clang-10.0.0/include/c++/v1/random:5121:1: note: candidate template ignored: could not match 'gamma_distribution' against 'vector'
operator<<(basic_ostream<_CharT, _Traits>& __os,
^
/opt/wandbox/clang-10.0.0/include/c++/v1/random:5257:1: note: candidate template ignored: could not match 'negative_binomial_distribution' against 'vector'
operator<<(basic_ostream<_CharT, _Traits>& __os,
^
/opt/wandbox/clang-10.0.0/include/c++/v1/random:5363:1: note: candidate template ignored: could not match 'geometric_distribution' against 'vector'
operator<<(basic_ostream<_CharT, _Traits>& __os,
^
/opt/wandbox/clang-10.0.0/include/c++/v1/random:5467:1: note: candidate template ignored: could not match 'chi_squared_distribution' against 'vector'
operator<<(basic_ostream<_CharT, _Traits>& __os,
^
/opt/wandbox/clang-10.0.0/include/c++/v1/random:5587:1: note: candidate template ignored: could not match 'cauchy_distribution' against 'vector'
operator<<(basic_ostream<_CharT, _Traits>& __os,
^
/opt/wandbox/clang-10.0.0/include/c++/v1/random:5709:1: note: candidate template ignored: could not match 'fisher_f_distribution' against 'vector'
operator<<(basic_ostream<_CharT, _Traits>& __os,
^
/opt/wandbox/clang-10.0.0/include/c++/v1/random:5825:1: note: candidate template ignored: could not match 'student_t_distribution' against 'vector'
operator<<(basic_ostream<_CharT, _Traits>& __os,
^
/opt/wandbox/clang-10.0.0/include/c++/v1/random:6048:1: note: candidate template ignored: could not match 'discrete_distribution' against 'vector'
operator<<(basic_ostream<_CharT, _Traits>& __os,
^
/opt/wandbox/clang-10.0.0/include/c++/v1/random:6350:1: note: candidate template ignored: could not match 'piecewise_constant_distribution' against 'vector'
operator<<(basic_ostream<_CharT, _Traits>& __os,
^
/opt/wandbox/clang-10.0.0/include/c++/v1/random:6690:1: note: candidate template ignored: could not match 'piecewise_linear_distribution' against 'vector'
operator<<(basic_ostream<_CharT, _Traits>& __os,
^
/opt/wandbox/clang-10.0.0/include/c++/v1/regex:5248:1: note: candidate template ignored: could not match 'sub_match' against 'vector'
operator<<(basic_ostream<_CharT, _ST>& __os, const sub_match<_BiIter>& __m)
^
/opt/wandbox/clang-10.0.0/include/c++/v1/ostream:195:20: note: candidate function not viable: no known conversion from 'const std::__1::vector<int, std::__1::allocator<int> >' to 'std::__1::basic_ostream<char> &(*)(std::__1::basic_ostream<char> &)' for 1st argument
    basic_ostream& operator<<(basic_ostream& (*__pf)(basic_ostream&))
                   ^
/opt/wandbox/clang-10.0.0/include/c++/v1/ostream:199:20: note: candidate function not viable: no known conversion from 'const std::__1::vector<int, std::__1::allocator<int> >' 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>&
                   ^
/opt/wandbox/clang-10.0.0/include/c++/v1/ostream:204:20: note: candidate function not viable: no known conversion from 'const std::__1::vector<int, std::__1::allocator<int> >' to 'std::__1::ios_base &(*)(std::__1::ios_base &)' for 1st argument
    basic_ostream& operator<<(ios_base& (*__pf)(ios_base&))
                   ^
/opt/wandbox/clang-10.0.0/include/c++/v1/ostream:207:20: note: candidate function not viable: no known conversion from 'const std::__1::vector<int, std::__1::allocator<int> >' to 'bool' for 1st argument
    basic_ostream& operator<<(bool __n);
                   ^
/opt/wandbox/clang-10.0.0/include/c++/v1/ostream:208:20: note: candidate function not viable: no known conversion from 'const std::__1::vector<int, std::__1::allocator<int> >' to 'short' for 1st argument
    basic_ostream& operator<<(short __n);
                   ^
/opt/wandbox/clang-10.0.0/include/c++/v1/ostream:209:20: note: candidate function not viable: no known conversion from 'const std::__1::vector<int, std::__1::allocator<int> >' to 'unsigned short' for 1st argument
    basic_ostream& operator<<(unsigned short __n);
                   ^
/opt/wandbox/clang-10.0.0/include/c++/v1/ostream:210:20: note: candidate function not viable: no known conversion from 'const std::__1::vector<int, std::__1::allocator<int> >' to 'int' for 1st argument
    basic_ostream& operator<<(int __n);
                   ^
/opt/wandbox/clang-10.0.0/include/c++/v1/ostream:211:20: note: candidate function not viable: no known conversion from 'const std::__1::vector<int, std::__1::allocator<int> >' to 'unsigned int' for 1st argument
    basic_ostream& operator<<(unsigned int __n);
                   ^
/opt/wandbox/clang-10.0.0/include/c++/v1/ostream:212:20: note: candidate function not viable: no known conversion from 'const std::__1::vector<int, std::__1::allocator<int> >' to 'long' for 1st argument
    basic_ostream& operator<<(long __n);
                   ^
/opt/wandbox/clang-10.0.0/include/c++/v1/ostream:213:20: note: candidate function not viable: no known conversion from 'const std::__1::vector<int, std::__1::allocator<int> >' to 'unsigned long' for 1st argument
    basic_ostream& operator<<(unsigned long __n);
                   ^
/opt/wandbox/clang-10.0.0/include/c++/v1/ostream:214:20: note: candidate function not viable: no known conversion from 'const std::__1::vector<int, std::__1::allocator<int> >' to 'long long' for 1st argument
    basic_ostream& operator<<(long long __n);
                   ^
/opt/wandbox/clang-10.0.0/include/c++/v1/ostream:215:20: note: candidate function not viable: no known conversion from 'const std::__1::vector<int, std::__1::allocator<int> >' to 'unsigned long long' for 1st argument
    basic_ostream& operator<<(unsigned long long __n);
                   ^
/opt/wandbox/clang-10.0.0/include/c++/v1/ostream:216:20: note: candidate function not viable: no known conversion from 'const std::__1::vector<int, std::__1::allocator<int> >' to 'float' for 1st argument
    basic_ostream& operator<<(float __f);
                   ^
/opt/wandbox/clang-10.0.0/include/c++/v1/ostream:217:20: note: candidate function not viable: no known conversion from 'const std::__1::vector<int, std::__1::allocator<int> >' to 'double' for 1st argument
    basic_ostream& operator<<(double __f);
                   ^
/opt/wandbox/clang-10.0.0/include/c++/v1/ostream:218:20: note: candidate function not viable: no known conversion from 'const std::__1::vector<int, std::__1::allocator<int> >' to 'long double' for 1st argument
    basic_ostream& operator<<(long double __f);
                   ^
/opt/wandbox/clang-10.0.0/include/c++/v1/ostream:219:20: note: candidate function not viable: no known conversion from 'const std::__1::vector<int, std::__1::allocator<int> >' to 'const void *' for 1st argument; take the address of the argument with &
    basic_ostream& operator<<(const void* __p);
                   ^
/opt/wandbox/clang-10.0.0/include/c++/v1/ostream:220:20: note: candidate function not viable: no known conversion from 'const std::__1::vector<int, std::__1::allocator<int> >' 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);
                   ^
/opt/wandbox/clang-10.0.0/include/c++/v1/ostream:223:20: note: candidate function not viable: no known conversion from 'const std::__1::vector<int, std::__1::allocator<int> >' to 'std::nullptr_t' (aka 'nullptr_t') for 1st argument
    basic_ostream& operator<<(nullptr_t)
                   ^
1 error generated.
Exit Code:
1