Problem | molecules |
---|---|
User | shoryu386 |
Submission Time | 2023-05-07 01:06:27 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
molecules.cpp: In function ‘std::vector<int> find_subset(int, int, std::vector<int>)’:
molecules.cpp:10:5: error: declaration of ‘long long int l’ shadows a parameter
10 | ll l = 0, r = -1;
| ^
molecules.cpp:11:97: error: no matching function for call to ‘std::vector<std::pair<int, int> >::push_back(__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type&, int&)’
11 | ll sum = 0; vector<pair<int, int>> cringe; for (int x = 0; x < n; x++) cringe.push_back(w[x], x);
| ^
In file included from /usr/include/c++/9/vector:67,
from molecules.h:3,
from molecules.cpp:1:
/usr/include/c++/9/bits/stl_vector.h:1184:7: note: candidate: ‘void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::pair<int, int>; _Alloc = std::allocato