Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Language

Compiler

Options

$
prog.cc:40:15: error: no matching function for call to object of type 'const ranges::accumulate_fn'
    auto vV = ranges::accumulate(
              ^~~~~~~~~~~~~~~~~~
/opt/wandbox/range-v3/include/range/v3/numeric/accumulate.hpp:38:14: note: candidate template ignored: substitution failure [with I = std::__1::vector<std::__1::vector<int, std::__1::allocator<int> >, std::__1::allocator<std::__1::vector<int, std::__1::allocator<int> > > >, S = std::__1::vector<int, std::__1::allocator<int> >, T = (lambda at prog.cc:43:9), Op = ranges::plus, P = ranges::identity]: no member named 'apply' in 'ranges::detail::enable_if<false>'
        auto operator()(I first, S last, T init, Op op = Op{},
             ^
/opt/wandbox/range-v3/include/range/v3/numeric/accumulate.hpp:50:14: note: candidate template ignored: constraints not satisfied [with Rng = std::__1::vector<std::__1::vector<int, std::__1::allocator<int> >, std::__1::allocator<std::__1::vector<int, std::__1::allocator<int> > > > &, T = std::__1::vector<int, std::__1::allocator<int> >, Op = (lambda at prog.cc:43:9), P = ranges::identity]
        auto operator()(Rng && rng, T init, Op op = Op{},
             ^
/opt/wandbox/range-v3/include/range/v3/numeric/accumulate.hpp:54:21: note: because 'assignable_from<std::__1::vector<int, std::__1::allocator<int> > &, indirect_result_t<(lambda at prog.cc:43:9) &, std::__1::vector<int, std::__1::allocator<int> > *, projected<iterator_t<std::__1::vector<std::__1::vector<int, std::__1::allocator<int> >, std::__1::allocator<std::__1::vector<int, std::__1::allocator<int> > > > &>, ranges::identity> > >' evaluated to false
                    assignable_from<
                    ^
/opt/wandbox/range-v3/include/concepts/concepts.hpp:455:17: note: expanded from macro 'CPP_ret'
    __VA_ARGS__ CPP_PP_EXPAND                                                   \
                ^
/opt/wandbox/range-v3/include/concepts/concepts.hpp:1016:32: note: because 'defs::assignable_from_<std::__1::vector<int, std::__1::allocator<int> > &, ranges::transform_view<ranges::zip_view<ranges::ref_view<const std::__1::vector<int, std::__1::allocator<int> > >, ranges::ref_view<const std::__1::vector<int, std::__1::allocator<int> > > >, (lambda at prog.cc:18:21)> >' evaluated to false
            CPP_fragment(defs::assignable_from_, T, U);
                               ^
/opt/wandbox/range-v3/include/concepts/concepts.hpp:1010:19: note: because 't = (U &&)u , requires_<same_as<T, decltype(t = (U &&)u)> >' would be invalid: no viable overloaded '='
                t = (U &&) u,
                  ^
1 error generated.
Exit Code:
1