0_0_39332092_6229.cpp:3:8: error: 'vector' was not declared in this scope
3 | vector<vector<int>> e(N), dp(N, vector<int>(2));
| ^~~~~~
0_0_39332092_6229.cpp:3:8: note: suggested alternatives:
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/vector:66,
from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/functional:64,
from .\stdc++.h:53:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_vector.h:423:11: note: 'std::vector'
423 | class vector : protected _Vector_base<_Tp, _Alloc>
| ^~~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/vector:86:13: note: 'std::pmr::vector'
86 | using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>;
| ^~~~~~
0_0_39332092_6229.cpp:3:8: error: 'vector' was not declared in this scope
3 | vector<vector<int>> e(N), dp(N, vector<int>(2));
| ^~~~~~
0_0_39332092_6229.cpp:3:8: note: suggested alternatives:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_vector.h:423:11: note: 'std::vector'
423 | class vector : protected _Vector_base<_Tp, _Alloc>
| ^~~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/vector:86:13: note: 'std::pmr::vector'
86 | using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>;
| ^~~~~~
0_0_39332092_6229.cpp:3:8: error: 'vector' was not declared in this scope
3 | vector<vector<int>> e(N), dp(N, vector<int>(2));
| ^~~~~~
0_0_39332092_6229.cpp:3:8: note: suggested alternatives:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_vector.h:423:11: note: 'std::vector'
423 | class vector : protected _Vector_base<_Tp, _Alloc>
| ^~~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/vector:86:13: note: 'std::pmr::vector'
86 | using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>;
| ^~~~~~
0_0_39332092_6229.cpp:3:8: error: 'vector' was not declared in this scope
3 | vector<vector<int>> e(N), dp(N, vector<int>(2));
| ^~~~~~
0_0_39332092_6229.cpp:3:8: note: suggested alternatives:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_vector.h:423:11: note: 'std::vector'
423 | class vector : protected _Vector_base<_Tp, _Alloc>
| ^~~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/vector:86:13: note: 'std::pmr::vector'
86 | using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>;
| ^~~~~~
0_0_39332092_6229.cpp:3:8: error: 'vector' was not declared in this scope
3 | vector<vector<int>> e(N), dp(N, vector<int>(2));
| ^~~~~~
0_0_39332092_6229.cpp:3:8: note: suggested alternatives:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_vector.h:423:11: note: 'std::vector'
423 | class vector : protected _Vector_base<_Tp, _Alloc>
| ^~~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/vector:86:13: note: 'std::pmr::vector'
86 | using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>;
| ^~~~~~
0_0_39332092_6229.cpp:3:8: error: 'vector' was not declared in this scope
3 | vector<vector<int>> e(N), dp(N, vector<int>(2));
| ^~~~~~
0_0_39332092_6229.cpp:3:8: note: suggested alternatives:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_vector.h:423:11: note: 'std::vector'
423 | class vector : protected _Vector_base<_Tp, _Alloc>
| ^~~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/vector:86:13: note: 'std::pmr::vector'
86 | using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>;
| ^~~~~~
0_0_39332092_6229.cpp:3:8: error: 'vector' was not declared in this scope
3 | vector<vector<int>> e(N), dp(N, vector<int>(2));
| ^~~~~~
0_0_39332092_6229.cpp:3:8: note: suggested alternatives:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_vector.h:423:11: note: 'std::vector'
423 | class vector : protected _Vector_base<_Tp, _Alloc>
| ^~~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/vector:86:13: note: 'std::pmr::vector'
86 | using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>;
| ^~~~~~
0_0_39332092_6229.cpp:3:8: error: 'vector' was not declared in this scope
3 | vector<vector<int>> e(N), dp(N, vector<int>(2));
| ^~~~~~
0_0_39332092_6229.cpp:3:8: note: suggested alternatives:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_vector.h:423:11: note: 'std::vector'
423 | class vector : protected _Vector_base<_Tp, _Alloc>
| ^~~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/vector:86:13: note: 'std::pmr::vector'
86 | using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>;
| ^~~~~~
0_0_39332092_6229.cpp:3:8: error: 'vector' was not declared in this scope
3 | vector<vector<int>> e(N), dp(N, vector<int>(2));
| ^~~~~~
0_0_39332092_6229.cpp:3:8: note: suggested alternatives:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_vector.h:423:11: note: 'std::vector'
423 | class vector : protected _Vector_base<_Tp, _Alloc>
| ^~~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/vector:86:13: note: 'std::pmr::vector'
86 | using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>;
| ^~~~~~
0_0_39332092_6229.cpp:3:1: error: 'vector' does not name a type
3 | vector<vector<int>> e(N), dp(N, vector<int>(2));
| ^~~~~~
0_0_39332092_6229.cpp: In function 'void dfs(int)':
0_0_39332092_6229.cpp:6:21: error: 'e' was not declared in this scope; did you mean 'std::numbers::e'?
6 | for (int next : e[cur])
| ^
| std::numbers::e
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/max_size_type.h:37,
from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/ranges_base.h:39,
from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/ranges_algobase.h:38,
from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/ranges_algo.h:38,
from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/algorithm:63,
from .\stdc++.h:51:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/numbers:122:27: note: 'std::numbers::e' declared here
122 | inline constexpr double e = e_v<double>;
| ^
0_0_39332092_6229.cpp:9:9: error: 'dp' was not declared in this scope
9 | dp[cur][0] += dp[next][1];
| ^~
0_0_39332092_6229.cpp:10:23: error: 'min' was not declared in this scope
10 | dp[cur][1] += min(dp[next][1], dp[next][0]);
| ^~~
0_0_39332092_6229.cpp:10:23: note: suggested alternatives:
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/algorithm:61:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_algo.h:5785:5: note: 'std::min'
5785 | min(initializer_list<_Tp> __l, _Compare __comp)
| ^~~
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/ranges_algo.h:39:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/ranges_util.h:733:29: note: 'std::ranges::min'
733 | inline constexpr __min_fn min{};
| ^~~
0_0_39332092_6229.cpp: In function 'void solve()':
0_0_39332092_6229.cpp:16:12: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
16 | while (cin >> n)
| ^~~
| std::cin
In file included from .\stdc++.h:146:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/iostream:62:18: note: 'std::cin' declared here
62 | extern istream cin; ///< Linked to standard input
| ^~~
0_0_39332092_6229.cpp:19:13: error: 'e' was not declared in this scope; did you mean 'std::numbers::e'?
19 | e[i].clear();
| ^
| std::numbers::e
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/numbers:122:27: note: 'std::numbers::e' declared here
122 | inline constexpr double e = e_v<double>;
| ^
0_0_39332092_6229.cpp:21:13: error: 'dp' was not declared in this scope
21 | dp[i][0] = 0, dp[i][1] = 1;
| ^~
0_0_39332092_6229.cpp:34:17: error: 'e' was not declared in this scope; did you mean 'std::numbers::e'?
34 | e[u].push_back(v);
| ^
| std::numbers::e
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/numbers:122:27: note: 'std::numbers::e' declared here
122 | inline constexpr double e = e_v<double>;
| ^
0_0_39332092_6229.cpp:38:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
38 | cout << min(dp[root][0], dp[root][1]) << "\n";
| ^~~~
| std::cout
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/iostream:63:18: note:
|