0_0_37673143_15723.cpp: In function 'void dfs(int, int, std::vector<std::vector<int> >&, std::vector<std::vector<std::pair<int, int> > >&, std::vector<int>&)':
0_0_37673143_15723.cpp:25:15: error: expected unqualified-id before '[' token
for (auto [v, w]: a[u]) {
^
0_0_37673143_15723.cpp:25:15: error: expected ';' before '[' token
0_0_37673143_15723.cpp:25:16: error: 'v' was not declared in this scope
for (auto [v, w]: a[u]) {
^
0_0_37673143_15723.cpp:25:19: error: 'w' was not declared in this scope
for (auto [v, w]: a[u]) {
^
0_0_37673143_15723.cpp: In lambda function:
0_0_37673143_15723.cpp:25:21: error: expected '{' before ':' token
for (auto [v, w]: a[u]) {
^
0_0_37673143_15723.cpp: In function 'void dfs(int, int, std::vector<std::vector<int> >&, std::vector<std::vector<std::pair<int, int> > >&, std::vector<int>&)':
0_0_37673143_15723.cpp:25:21: error: expected ';' before ':' token
0_0_37673143_15723.cpp:25:21: error: expected primary-expression before ':' token
0_0_37673143_15723.cpp:25:21: error: expected ')' before ':' token
0_0_37673143_15723.cpp:25:21: error: expected primary-expression before ':' token
0_0_37673143_15723.cpp: In function 'int main()':
0_0_37673143_15723.cpp:75:40: error: converting to 'std::vector<std::tuple<int, int, int> >::value_type {aka std::tuple<int, int, int>}' from initializer list would use explicit constructor 'constexpr std::tuple< <template-parameter-1-1> >::tuple(_UElements&& ...) [with _UElements = {int&, int&, int&}; <template-parameter-2-2> = void; _Elements = {int, int, int}]'
ed.push_back({u, v, pw});
^
|