Posekio suma

Taškai: 0

Compile: FAIL

subset_sum.cpp: In function ‘void solve()’: subset_sum.cpp:44:31: error: invalid initialization of non-const reference of type ‘std::vector<int>&’ from an rvalue of type ‘std::vector<int>’ rec(arr, K, N-1, found, {}); ^ In file included from /usr/include/c++/5/vector:64:0, from /usr/include/c++/5/bits/random.h:34, from /usr/include/c++/5/random:49, from /usr/include/c++/5/bits/stl_algo.h:66, from /usr/include/c++/5/algorithm:62, from /usr/include/x86_64-linux-gnu/c++/5/bits/stdc++.h:64, from subset_sum.cpp:1: /usr/include/c++/5/bits/stl_vector.h:253:7: note: after user-defined conversion: std::vector<_Tp, _Alloc>::vector() [with _Tp = int; _Alloc = std::allocator<int>] vector() ^ subset_sum.cpp:16:6: note: initializing argument 5 of ‘void rec(std::vector<long long int>&, long long int, long long int, bool&, std::vector<int>&)’ void rec(vector <long long> &arr, long long K, long long N, bool &found, vector<int> &ind){ ^

nr.resulttimemessage