molecules.cpp: In function 'std::vector<int> find_subset(int, int, std::vector<int>)':
molecules.cpp:64:26: error: conflicting declaration 'std::vector<std::pair<int, int> > v'
64 | vector<pair<int,int>>v;
| ^
molecules.cpp:59:18: note: previous declaration as 'std::vector<int> v'
59 | vector<int>res,t,v;
| ^
molecules.cpp:66:13: error: no matching function for call to 'std::vector<int>::push_back(<brace-enclosed initializer list>)'
66 | v.pb({w[i],i});
| ~~~~^~~~~~~~~~
In file included from /usr/include/c++/11/vector:67,
from molecules.h:3,
from molecules.cpp:1:
/usr/include/c++/11/bits/stl_vector.h:1187:7: note: candidate: 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::value_type = int]'
1187 | push_back(const value_type& __x)
| ^~~~~~~~~
/usr/include/c++/11/bits/stl_vector.h:1187:35: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const value_type&' {aka 'const int&'}
1187 | push_back(const value_type& __x)
| ~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/11/bits/stl_vector.h:1203:7: note: candidate: 'void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::value_type = int]'
1203 | push_back(value_type&& __x)
| ^~~~~~~~~
/usr/include/c++/11/bits/stl_vector.h:1203:30: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::vector<int>::value_type&&' {aka 'int&&'}
1203 | push_back(value_type&& __x)
| ~~~~~~~~~~~~~^~~
molecules.cpp:70:17: error: request for member 'first' in 'v.std::vector<int>::operator[](0)', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
70 | ll sum=v[0].first;
| ^~~~~
molecules.cpp:76:25: error: request for member 'first' in 'v.std::vector<int>::operator[](((std::vector<int>::size_type)(j ++)))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
76 | sum+=v[j++].first;
| ^~~~~
molecules.cpp:79:25: error: request for member 'first' in 'v.std::vector<int>::operator[](((std::vector<int>::size_type)(i ++)))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
79 | sum-=v[i++].first;
| ^~~~~
molecules.cpp:87:25: error: request for member 'second' in 'v.std::vector<int>::operator[](((std::vector<int>::size_type)k))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
87 | res.pb(v[k].second);
| ^~~~~~
molecules.h:1:9: warning: #pragma once in main file
1 | #pragma once
| ^~~~
molecules_c.h:1:9: warning: #pragma once in main file
1 | #pragma once
| ^~~~