0_0_33639061_10597.cpp: In function 'int dinic()':
0_0_33639061_10597.cpp:64:18: error: 'cnt' was not declared in this scope
for(int i=s;i<=cnt;i++) cur[i]=h[i];
^
0_0_33639061_10597.cpp: In function 'int main()':
0_0_33639061_10597.cpp:79:9: error: 'cnt' was not declared in this scope
idx=0;cnt=1;
^
0_0_33639061_10597.cpp:87:25: error: no matching function for call to 'std::unordered_map<long long int, int>::insert(<brace-enclosed initializer list>)'
mp1.insert({x,++cnt});
^
0_0_33639061_10597.cpp:87:25: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/unordered_map:48:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:115,
from 0_0_33639061_10597.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/unordered_map.h:392:7: note: std::pair<typename std::_Hashtable<_Key, std::pair<const _Key, _Tp>, _Alloc, std::__detail::_Select1st, _Pred, _Hash, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<std::__not_<std::__and_<std::__is_fast_hash<_Hash>, std::__detail::__is_noexcept_hash<_Key, _Hash> > >::value, false, true> >::iterator, bool> std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::insert(const value_type&) [with _Key = long long int; _Tp = int; _Hash = std::hash<long long int>; _Pred = std::equal_to<long long int>; _Alloc = std::allocator<std::pair<const long long int, int> >; typename std::_Hashtable<_Key, std::pair<const _Key, _Tp>, _Alloc, std::__detail::_Select1st, _Pred, _Hash, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<std::__not_<std::__and_<std::__is_fast_hash<_Hash>, std::__detail::__is_noexcept_hash<_Key, _Hash> > >::value, false, true> >::iterator = std::__detail::_Node_iterator<std::pair<const long long int, int>, false, false>; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::value_type = std::pair<const long long int, int>]
insert(const value_type& __x)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/unordered_map.h:392:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const value_type& {aka const std::pair<const long long int, int>&}'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/unordered_map.h:399:2: note: template<class _Pair, class> std::pair<typename std::_Hashtable<_Key, std::pair<const _Key, _Tp>, _Alloc, std::__detail::_Select1st, _Pred, _Hash, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<std::__not_<std::__and_<std::__is_fast_hash<_Hash>, std::__detail::__is_noexcept_hash<_Key, _Hash> > >::value, false, true> >::iterator, bool> std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::insert(_Pair&&) [with _Pair = _Pair; <template-parameter-2-2> = <template-parameter-1-2>; _Key = long long int; _Tp = int; _Hash = std::hash<long long int>; _Pred = std::equal_to<long long int>; _Alloc = std::allocator<std::pair<const long long int, int> >]
insert(_Pair&& __x)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/unordered_map.h:399:2: note: template argument deduction/substitution failed:
0_0_33639061_10597.cpp:87:25: note: couldn't deduce template parameter '_Pair'
mp1.insert({x,++cnt});
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/unordered_map:48:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:115,
from 0_0_33639061_10597.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/unordered_map.h:426:7: note: std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::iterator std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::insert(std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::const_iterator, const value_type&) [with _Key = long long int; _Tp = int; _Hash = std::hash<long long int>; _Pred = std::equal_to<long long int>; _Alloc = std::allocator<std::pair<const long long int, int> >; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::iterator = std::__detail::_Node_iterator<std::pair<const long long int, int>, false, false>; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::const_iterator = std::__detail::_Node_const_iterator<std::pair<const long long int, int>, false, false>; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::value_type = std::pair<const long long int, int>]
insert(const_iterator __hint, const value_type& __x)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/unordered_map.h:426:7: note: candidate expects 2 arguments, 1 provided
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/unordered_map.h:433:2: note: template<class _Pair, class> std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::iterator std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::insert(std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::const_iterator, _Pair&&) [with _Pair = _Pair; <template-parameter-2-2> = <template-parameter-1-2>; _Key = long long int; _Tp = int; _Hash = std::hash<long long int>; _Pred = std::equal_to<long long int>; _Alloc = std::allocator<std::pair<const long long int, int> >]
insert(const_iterator __hint, _Pair&& __x)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/unordered_map.h:433:2: note: template argument deduction/substitution failed:
0_0_33639061_10597.cpp:87:25: note: cannot convert '{x, <expression error>}' (type '<brace-enclosed initializer list>') to type 'std::unordered_map<long long int, int>::const_iterator {aka std::__detail::_Node_const_iterator<std::pair<const long long int, int>, false, false>}'
mp1.insert({x,++cnt});
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/unordered_map:48:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:115,
from 0_0_33639061_10597.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/unordered_map.h:448:2: note: template<class _InputIterator> void std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::insert(_InputIterator, _InputIterator) [with _InputIterator = _InputIterator; _Key = long long int; _Tp = int; _Hash = std::hash<long long int>; _Pred = std::equal_to<long long int>; _Alloc = std::allocator<std::pair<const long long int, int> >]
insert(_InputIterator __first, _InputIterator __last)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/unordered_map.h:448:2: note: template argument deduction/substitution failed:
0_0_33639061_10597.cpp:87:25: note: candidate expects 2 arguments, 1 provided
mp1.insert({x,++cnt});
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/unordered_map:48:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:115,
from 0_0_33639061_10597.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/unordered_map.h:459:7: note: void std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::insert(std::initializer_list<typename std::_Hashtable<_Key, std::pair<const _Key, _Tp>, _Alloc, std::__detail::_Select1st, _Pred, _Hash, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<std::__not_<std::__and_<std::__is_fast_hash<_Hash>, std::__detail::__is_noexcept_hash<_Key, _Hash> > >::value, false, true> >::value_type>) [with _Key = long long int; _Tp = int; _Hash = std::hash<long long int>; _Pred = std::equal_to<long long int>; _Alloc = std::allocator<std::pair<const long long int, int> >; typename std::_Hashtable<_Key, std::pair<const _Key, _Tp>, _Alloc, std::__detail::_Select1st, _Pred, _Hash, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<std::__not_<std::__and_<std::__is_fast_hash<_Hash>, std::__detail::__is_noexcept_hash<_Key, _Hash> > >::value, false, true> >::value_type = std::pair<const long long int, int>]
insert(initializer_list<value_type> __l)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/unordered_map.h:459:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::initializer_list<std::pair<const long long int, int> >'
0_0_33639061_10597.cpp:92:26: error: no matching function for call to 'std::unordered_map<long long int, int>::insert(<brace-enclosed initializer list>)'
mp2.insert({y,++cnt});
^
0_0_33639061_10597.cpp:92:26: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/unordered_map:48:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:115,
from 0_0_33639061_10597.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/unordered_map.h:392:7: note: std::pair<typename std::_Hashtable<_Key, std::pair<const _Key, _Tp>, _Alloc, std::__detail::_Select1st, _Pred, _Hash, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<std::__not_<std::__and_<std::__is_fast_hash<_Hash>, std::__detail::__is_noexcept_hash<_Key, _Hash> > >::value, false, true> >::iterator, bool> std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::insert(const value_type&) [with _Key = long long int; _Tp = int; _Hash = std::hash<long long int>; _Pred = std::equal_to<long long int>; _Alloc = std::allocator<std::pair<const lon
|