/in/foo.cc: In function 'int main()':
/in/foo.cc:32:20: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17' [-Wc++17-extensions]
32 | for (auto &[s, t]: paths) {
| ^
/in/foo.cc:43:28: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17' [-Wc++17-extensions]
43 | for (auto &[s, t]: paths) {
| ^
In lambda function,
inlined from 'constexpr _Res std::__invoke_impl(__invoke_other, _Fn&&, _Args&& ...) [with _Res = void; _Fn = main()::<lambda(int, int)>&; _Args = {int, int}]' at /usr/include/c++/12/bits/invoke.h:61:36,
inlined from 'std::__can_invoke_as_void<_Res, _Callable, _Args ...> std::__invoke_r(_Callable&&, _Args&& ...) [with _Res = void; _Callable = main()::<lambda(int, int)>&; _Args = {int, int}]' at /usr/include/c++/12/bits/invoke.h:154:33,
inlined from 'static _Res std::_Function_handler<_Res(_ArgTypes ...), _Functor>::_M_invoke(const std::_Any_data&, _ArgTypes&& ...) [with _Res = void; _Functor = main()::<lambda(int, int)>; _ArgTypes = {int, int}]' at /usr/include/c++/12/bits/std_function.h:290:30:
/in/foo.cc:96:65: warning: 'before' may be used uninitialized [-Wmaybe-uninitialized]
96 | subtree_cnt[cur] = depth_cnt[d] - before;
/in/foo.cc: In static member function 'static _Res std::_Function_handler<_Res(_ArgTypes ...), _Functor>::_M_invoke(const std::_Any_data&, _ArgTypes&& ...) [with _Res = void; _Functor = main()::<lambda(int, int)>; _ArgTypes = {int, int}]':
/in/foo.cc:82:29: note: 'before' was declared here
82 | int before;
| ^~~~~~