Main.cpp:155:2: error: stray '#' in program
155 | }#include <bits/stdc++.h>
| ^
Main.cpp:155:3: error: 'include' does not name a type
155 | }#include <bits/stdc++.h>
| ^~~~~~~
Main.cpp:169:11: error: redefinition of 'const int maxn'
169 | const int maxn = 1e6 + 10;
| ^~~~
Main.cpp:15:11: note: 'const int maxn' previously defined here
15 | const int maxn = 1e6 + 10;
| ^~~~
Main.cpp:170:11: error: redefinition of 'const int maxm'
170 | const int maxm = 30;
| ^~~~
Main.cpp:16:11: note: 'const int maxm' previously defined here
16 | const int maxm = 30;
| ^~~~
Main.cpp:171:11: error: redefinition of 'const int maxlg'
171 | const int maxlg = 20;
| ^~~~~
Main.cpp:17:11: note: 'const int maxlg' previously defined here
17 | const int maxlg = 20;
| ^~~~~
Main.cpp:172:11: error: redefinition of 'const int mod'
172 | const int mod = 1e9 + 7;
| ^~~
Main.cpp:18:11: note: 'const int mod' previously defined here
18 | const int mod = 1e9 + 7;
| ^~~
Main.cpp:173:10: error: redefinition of 'const ll inf'
173 | const ll inf = 1e17 + 10;
| ^~~
Main.cpp:19:10: note: 'const ll inf' previously defined here
19 | const ll inf = 1e17 + 10;
| ^~~
Main.cpp:175:5: error: redefinition of 'int e [1000010]'
175 | int e[maxn], h[maxn], par[maxn][maxlg], lck[maxn][maxlg], V[maxm], ind[maxn];
| ^
Main.cpp:21:5: note: 'int e [1000010]' previously declared here
21 | int e[maxn], h[maxn], par[maxn][maxlg], lck[maxn][maxlg], V[maxm], ind[maxn];
| ^
Main.cpp:175:14: error: redefinition of 'int h [1000010]'
175 | int e[maxn], h[maxn], par[maxn][maxlg], lck[maxn][maxlg], V[maxm], ind[maxn];
| ^
Main.cpp:21:14: note: 'int h [1000010]' previously declared here
21 | int e[maxn], h[maxn], par[maxn][maxlg], lck[maxn][maxlg], V[maxm], ind[maxn];
| ^
Main.cpp:175:23: error: redefinition of 'int par [1000010][20]'
175 | int e[maxn], h[maxn], par[maxn][maxlg], lck[maxn][maxlg], V[maxm], ind[maxn];
| ^~~
Main.cpp:21:23: note: 'int par [1000010][20]' previously declared here
21 | int e[maxn], h[maxn], par[maxn][maxlg], lck[maxn][maxlg], V[maxm], ind[maxn];
| ^~~
Main.cpp:175:41: error: redefinition of 'int lck [1000010][20]'
175 | int e[maxn], h[maxn], par[maxn][maxlg], lck[maxn][maxlg], V[maxm], ind[maxn];
| ^~~
Main.cpp:21:41: note: 'int lck [1000010][20]' previously declared here
21 | int e[maxn], h[maxn], par[maxn][maxlg], lck[maxn][maxlg], V[maxm], ind[maxn];
| ^~~
Main.cpp:175:59: error: redefinition of 'int V [30]'
175 | int e[maxn], h[maxn], par[maxn][maxlg], lck[maxn][maxlg], V[maxm], ind[maxn];
| ^
Main.cpp:21:59: note: 'int V [30]' previously declared here
21 | int e[maxn], h[maxn], par[maxn][maxlg], lck[maxn][maxlg], V[maxm], ind[maxn];
| ^
Main.cpp:175:68: error: redefinition of 'int ind [1000010]'
175 | int e[maxn], h[maxn], par[maxn][maxlg], lck[maxn][maxlg], V[maxm], ind[maxn];
| ^~~
Main.cpp:21:68: note: 'int ind [1000010]' previously declared here
21 | int e[maxn], h[maxn], par[maxn][maxlg], lck[maxn][maxlg], V[maxm], ind[maxn];
| ^~~
Main.cpp:176:5: error: redefinition of 'int dt [30]'
176 | int dt[maxm], dl[maxm];
| ^~
Main.cpp:22:5: note: 'int dt [30]' previously declared here
22 | int dt[maxm], dl[maxm];
| ^~
Main.cpp:176:15: error: redefinition of 'int dl [30]'
176 | int dt[maxm], dl[maxm];
| ^~
Main.cpp:22:15: note: 'int dl [30]' previously declared here
22 | int dt[maxm], dl[maxm];
| ^~
Main.cpp:177:5: error: redefinition of 'int d [30][30]'
177 | int d[maxm][maxm], l[maxm][maxm];
| ^
Main.cpp:23:5: note: 'int d [30][30]' previously declared here
23 | int d[maxm][maxm], l[maxm][maxm];
| ^
Main.cpp:177:20: error: redefinition of 'int l [30][30]'
177 | int d[maxm][maxm], l[maxm][maxm];
| ^
Main.cpp:23:20: note: 'int l [30][30]' previously declared here
23 | int d[maxm][maxm], l[maxm][maxm];
| ^
Main.cpp:178:4: error: redefinition of 'll dp [1048576][30]'
178 | ll dp[1 << maxlg][maxm];
| ^~
Main.cpp:24:4: note: 'll dp [1048576][30]' previously declared here
24 | ll dp[1 << maxlg][maxm];
| ^~
Main.cpp:179:13: error: redefinition of 'std::vector<std::pair<int, int> > E'
179 | vector<pii> E;
| ^
Main.cpp:25:13: note: 'std::vector<std::pair<int, int> > E' previously declared here
25 | vector<pii> E;
| ^
Main.cpp:180:13: error: redefinition of 'std::vector<std::pair<int, int> > edge'
180 | vector<pii> edge;
| ^~~~
Main.cpp:26:13: note: 'std::vector<std::pair<int, int> > edge' previously declared here
26 | vector<pii> edge;
| ^~~~
Main.cpp:181:13: error: redefinition of 'std::vector<int> G [1000010]'
181 | vector<int> G[maxn], S;
| ^
Main.cpp:27:13: note: 'std::vector<int> G [1000010]' previously declared here
27 | vector<int> G[maxn], S;
| ^
Main.cpp:181:22: error: redefinition of 'std::vector<int> S'
181 | vector<int> G[maxn], S;
| ^
Main.cpp:27:22: note: 'std::vector<int> S' previously declared here
27 | vector<int> G[maxn], S;
| ^
Main.cpp:183:6: error: redefinition of 'void dfs(int, int, int)'
183 | void dfs(int v, int p = 0, int pe = -1){
| ^~~
Main.cpp:29:6: note: 'void dfs(int, int, int)' previously defined here
29 | void dfs(int v, int p = 0, int pe = -1){
| ^~~
Main.cpp:200:5: error: redefinition of 'int get_par(int, int)'
200 | int get_par(int v, int h){
| ^~~~~~~
Main.cpp:46:5: note: 'int get_par(int, int)' previously defined here
46 | int get_par(int v, int h){
| ^~~~~~~
Main.cpp:207:5: error: redefinition of 'int get_lock(int, int)'
207 | int get_lock(int v, int h){
| ^~~~~~~~
Main.cpp:53:5: note: 'int get_lock(int, int)' previously defined here
53 | int get_lock(int v, int h){
| ^~~~~~~~
Main.cpp:218:5: error: redefinition of 'int lca(int, int)'
218 | int lca(int v, int u){
| ^~~
Main.cpp:64:5: note: 'int lca(int, int)' previously defined here
64 | int lca(int v, int u){
| ^~~
Main.cpp:233:5: error: redefinition of 'int dist(int, int)'
233 | int dist(int u, int v){
| ^~~~
Main.cpp:79:5: note: 'int dist(int, int)' previously defined here
79 | int dist(int u, int v){
| ^~~~
Main.cpp:238:5: error: redefinition of 'int lock_path(int, int)'
238 | int lock_path(int u, int v){
| ^~~~~~~~~
Main.cpp:84:5: note: 'int lock_path(int, int)' previously defined here
84 | int lock_path(int u, int v){
| ^~~~~~~~~
Main.cpp:243:5: error: redefinition of 'int main()'
243 | int main(){
| ^~~~
Main.cpp:89:5: note: 'int main()' previously defined here
89 | int main(){
| ^~~~