0_0_36751950_14360.cpp: In function 'void add(int, int, int)':
0_0_36751950_14360.cpp:19:46: error: no matching function for call to 'std::vector<edge>::emplace_back(<brace-enclosed initializer list>)'
mp[from].emplace_back({to,cap,mp[to].size()});
^
0_0_36751950_14360.cpp:19:46: note: candidate is:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:69:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/random.h:34,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:49,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:64,
from 0_0_36751950_14360.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/vector.tcc:91:7: note: void std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {}; _Tp = edge; _Alloc = std::allocator<edge>]
vector<_Tp, _Alloc>::
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/vector.tcc:91:7: note: candidate expects 0 arguments, 1 provided
0_0_36751950_14360.cpp:20:48: error: no matching function for call to 'std::vector<edge>::emplace_back(<brace-enclosed initializer list>)'
mp[to].emplace_back({from,0,mp[from].size()-1});
^
0_0_36751950_14360.cpp:20:48: note: candidate is:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:69:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/random.h:34,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:49,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:64,
from 0_0_36751950_14360.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/vector.tcc:91:7: note: void std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {}; _Tp = edge; _Alloc = std::allocator<edge>]
vector<_Tp, _Alloc>::
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/vector.tcc:91:7: note: candidate expects 0 arguments, 1 provided
0_0_36751950_14360.cpp: In function 'int main()':
0_0_36751950_14360.cpp:77:27: error: no matching function for call to 'std::vector<node>::emplace_back(<brace-enclosed initializer list>)'
v[a].emplace_back({b,c});
^
0_0_36751950_14360.cpp:77:27: note: candidate is:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:69:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/random.h:34,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:49,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:64,
from 0_0_36751950_14360.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/vector.tcc:91:7: note: void std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {}; _Tp = node; _Alloc = std::allocator<node>]
vector<_Tp, _Alloc>::
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/vector.tcc:91:7: note: candidate expects 0 arguments, 1 provided
0_0_36751950_14360.cpp:78:27: error: no matching function for call to 'std::vector<node>::emplace_back(<brace-enclosed initializer list>)'
v[b].emplace_back({a,c});
^
0_0_36751950_14360.cpp:78:27: note: candidate is:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:69:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/random.h:34,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:49,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:64,
from 0_0_36751950_14360.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/vector.tcc:91:7: note: void std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {}; _Tp = node; _Alloc = std::allocator<node>]
vector<_Tp, _Alloc>::
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/vector.tcc:91:7: note: candidate expects 0 arguments, 1 provided
0_0_36751950_14360.cpp:94:3: error: 'siz' was not declared in this scope
siz++;
^
|