dreaming.cpp: In function 'std::array<int, 2> dfs(int, int, std::vector<int>&)':
dreaming.cpp:16:15: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
16 | for (auto [ne, we] : g[node]) {
| ^
dreaming.cpp: In function 'int get_diam(int, int, std::vector<int>&, std::vector<int>&)':
dreaming.cpp:26:15: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
26 | for (auto [ne, we] : g[node]) {
| ^
dreaming.cpp: In function 'int diameter(int)':
dreaming.cpp:36:10: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
36 | auto [d1, n1] = dfs(node, -1, dis1);
| ^
dreaming.cpp:37:10: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
37 | auto [d2, n2] = dfs(n1, -1, dis2);
| ^
dreaming.cpp:38:10: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
38 | auto [d3, n3] = dfs(n2, -1, dis3);
| ^
dreaming.cpp:38:10: warning: structured binding declaration set but not used [-Wunused-but-set-variable]
38 | auto [d3, n3] = dfs(n2, -1, dis3);
| ^~~~~~~~