0_0_15501501_30003.cpp: In function 'int main()':
0_0_15501501_30003.cpp:140:75: error: no matching function for call to 'std::vector<double>::push_back(<unresolved overloaded function type>)'
for(int i=1;i<n;i++) V[i].push_back(i-1),D[i].push_back((p[i]-p[i-1]).dist);
^
0_0_15501501_30003.cpp:140:75: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:64:0,
from 0_0_15501501_30003.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:913:7: note: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = double; _Alloc = std::allocator<double>; std::vector<_Tp, _Alloc>::value_type = double]
push_back(const value_type& __x)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:913:7: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'const value_type& {aka const double&}'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:931:7: note: void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = double; _Alloc = std::allocator<double>; std::vector<_Tp, _Alloc>::value_type = double]
push_back(value_type&& __x)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:931:7: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::vector<double>::value_type&& {aka double&&}'
|