0_0_36543889_598.cpp: In function 'int dfs(int, int)':
0_0_36543889_598.cpp:45:61: error: no matching function for call to 'min(__gnu_cxx::__alloc_traits<std::allocator<short int> >::value_type&, int&)'
int temp = dfs(node[p].path[i], min(node[p].flow[i], flow));
^
0_0_36543889_598.cpp:45:61: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
from 0_0_36543889_598.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:194:5: note: template<class _Tp> const _Tp& std::min(const _Tp&, const _Tp&)
min(const _Tp& __a, const _Tp& __b)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:194:5: note: template argument deduction/substitution failed:
0_0_36543889_598.cpp:45:61: note: deduced conflicting types for parameter 'const _Tp' ('short int' and 'int')
int temp = dfs(node[p].path[i], min(node[p].flow[i], flow));
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
from 0_0_36543889_598.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:240:5: note: template<class _Tp, class _Compare> const _Tp& std::min(const _Tp&, const _Tp&, _Compare)
min(const _Tp& __a, const _Tp& __b, _Compare __comp)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:240:5: note: template argument deduction/substitution failed:
0_0_36543889_598.cpp:45:61: note: deduced conflicting types for parameter 'const _Tp' ('short int' and 'int')
int temp = dfs(node[p].path[i], min(node[p].flow[i], flow));
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
from 0_0_36543889_598.cpp:5:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:3439:5: note: template<class _Tp> _Tp std::min(std::initializer_list<_Tp>)
min(initializer_list<_Tp> __l)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:3439:5: note: template argument deduction/substitution failed:
0_0_36543889_598.cpp:45:61: note: mismatched types 'std::initializer_list<_Tp>' and 'short int'
int temp = dfs(node[p].path[i], min(node[p].flow[i], flow));
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
from 0_0_36543889_598.cpp:5:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:3444:5: note: template<class _Tp, class _Compare> _Tp std::min(std::initializer_list<_Tp>, _Compare)
min(initializer_list<_Tp> __l, _Compare __comp)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:3444:5: note: template argument deduction/substitution failed:
0_0_36543889_598.cpp:45:61: note: mismatched types 'std::initializer_list<_Tp>' and 'short int'
int temp = dfs(node[p].path[i], min(node[p].flow[i], flow));
^
0_0_36543889_598.cpp: In function 'int main()':
0_0_36543889_598.cpp:71:35: error: no matching function for call to 'std::vector<int>::swap(std::vector<short int>&)'
vector<int>().swap(node[i].back);
^
0_0_36543889_598.cpp:71:35: note: candidate is:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:64:0,
from 0_0_36543889_598.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:1194:7: note: void std::vector<_Tp, _Alloc>::swap(std::vector<_Tp, _Alloc>&) [with _Tp = int; _Alloc = std::allocator<int>]
swap(vector& __x)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:1194:7: note: no known conversion for argument 1 from 'std::vector<short int>' to 'std::vector<int>&'
0_0_36543889_598.cpp:72:35: error: no matching function for call to 'std::vector<int>::swap(std::vector<short int>&)'
vector<int>().swap(node[i].flow);
^
0_0_36543889_598.cpp:72:35: note: candidate is:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:64:0,
from 0_0_36543889_598.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:1194:7: note: void std::vector<_Tp, _Alloc>::swap(std::vector<_Tp, _Alloc>&) [with _Tp = int; _Alloc = std::allocator<int>]
swap(vector& __x)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:1194:7: note: no known conversion for argument 1 from 'std::vector<short int>' to 'std::vector<int>&'
0_0_36543889_598.cpp:73:35: error: no matching function for call to 'std::vector<int>::swap(std::vector<short int>&)'
vector<int>().swap(node[i].path);
^
0_0_36543889_598.cpp:73:35: note: candidate is:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:64:0,
from 0_0_36543889_598.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:1194:7: note: void std::vector<_Tp, _Alloc>::swap(std::vector<_Tp, _Alloc>&) [with _Tp = int; _Alloc = std::allocator<int>]
swap(vector& __x)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:1194:7: note: no known conversion for argument 1 from 'std::vector<short int>' to 'std::vector<int>&'
0_0_36543889_598.cpp:107:34: error: no matching function for call to 'std::vector<int>::swap(std::vector<short int>&)'
vector<int>().swap(node[i].back);
^
0_0_36543889_598.cpp:107:34: note: candidate is:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:64:0,
from 0_0_36543889_598.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:1194:7: note: void std::vector<_Tp, _Alloc>::swap(std::vector<_Tp, _Alloc>&) [with _Tp = int; _Alloc = std::allocator<int>]
swap(vector& __x)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:1194:7: note: no known conversion for argument 1 from 'std::vector<short int>' to 'std::vector<int>&'
0_0_36543889_598.cpp:108:34: error: no matching function for call to 'std::vector<int>::swap(std::vector<short int>&)'
vector<int>().swap(node[i].flow);
^
0_0_36543889_598.cpp:108:34: note: candidate is:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:64:0,
from 0_0_36543889_598.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:1194:7: note: void std::vector<_Tp, _Alloc>::swap(std::vector<_Tp, _Alloc>&) [with _Tp = int; _Alloc = std::allocator<int>]
swap(vector& __x)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:1194:7: note: no known conversion for argument 1 from 'std::vector<short int>' to 'std::vector<int>&'
0_0_36543889_598.cpp:109:34: error: no matching function for call to 'std::vector<int>::swap(std::vector<short int>&)'
vector<int>().swap(node[i].path);
^
0_0_36543889_598.cpp:109:34: note: candidate is:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:64:0,
from 0_0_36543889_598.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:1194:7: note: void std::vector<_Tp, _Alloc>::swap(std::vector<_Tp, _Alloc>&) [with _Tp = int; _Alloc = std::allocator<int>]
swap(vector& __x)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:1194:7: note: no known conversion for argument 1 from 'std::vector<short int>' to 'std::vector<int>&'
|