Posekio suma
- [1] 2022-12-10 11:28 (0)
- [2] 2022-12-10 11:29 (5.3)
- [3] 2022-12-10 11:32 (15.8)
- [4] 2022-12-10 11:34 (52.6)
- [5] 2022-12-10 11:43 (100)
- [6] 2022-12-17 11:21 (100)
- [7] 2022-12-17 11:21 (0)
- [8] 2022-12-17 11:22 (100)
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. | result | time | message |
---|