0_0_31056039_14701.cpp:39:2: error: stray '#' in program
}#include <iostream>
^
0_0_31056039_14701.cpp:39:3: error: 'include' does not name a type
}#include <iostream>
^
0_0_31056039_14701.cpp: In function 'void smax(int&, const int&)':
0_0_31056039_14701.cpp:43:13: error: redefinition of 'void smax(int&, const int&)'
inline void smax(int& s, const int& a) { if (s < a) s = a; }
^
0_0_31056039_14701.cpp:5:13: note: 'void smax(int&, const int&)' previously defined here
inline void smax(int& s, const int& a) { if (s < a) s = a; }
^
0_0_31056039_14701.cpp: At global scope:
0_0_31056039_14701.cpp:44:11: error: redefinition of 'int h [1000010]'
int h[maxn], to[maxn], nxt[maxn], dep[maxn], deg[maxn], fa[maxn], cnt;
^
0_0_31056039_14701.cpp:6:5: note: 'int h [1000010]' previously declared here
int h[maxn], to[maxn], nxt[maxn], dep[maxn], deg[maxn], fa[maxn], cnt;
^
0_0_31056039_14701.cpp:44:21: error: redefinition of 'int to [1000010]'
int h[maxn], to[maxn], nxt[maxn], dep[maxn], deg[maxn], fa[maxn], cnt;
^
0_0_31056039_14701.cpp:6:14: note: 'int to [1000010]' previously declared here
int h[maxn], to[maxn], nxt[maxn], dep[maxn], deg[maxn], fa[maxn], cnt;
^
0_0_31056039_14701.cpp:44:32: error: redefinition of 'int nxt [1000010]'
int h[maxn], to[maxn], nxt[maxn], dep[maxn], deg[maxn], fa[maxn], cnt;
^
0_0_31056039_14701.cpp:6:24: note: 'int nxt [1000010]' previously declared here
int h[maxn], to[maxn], nxt[maxn], dep[maxn], deg[maxn], fa[maxn], cnt;
^
0_0_31056039_14701.cpp:44:43: error: redefinition of 'int dep [1000010]'
int h[maxn], to[maxn], nxt[maxn], dep[maxn], deg[maxn], fa[maxn], cnt;
^
0_0_31056039_14701.cpp:6:35: note: 'int dep [1000010]' previously declared here
int h[maxn], to[maxn], nxt[maxn], dep[maxn], deg[maxn], fa[maxn], cnt;
^
0_0_31056039_14701.cpp:44:54: error: redefinition of 'int deg [1000010]'
int h[maxn], to[maxn], nxt[maxn], dep[maxn], deg[maxn], fa[maxn], cnt;
^
0_0_31056039_14701.cpp:6:46: note: 'int deg [1000010]' previously declared here
int h[maxn], to[maxn], nxt[maxn], dep[maxn], deg[maxn], fa[maxn], cnt;
^
0_0_31056039_14701.cpp:44:64: error: redefinition of 'int fa [1000010]'
int h[maxn], to[maxn], nxt[maxn], dep[maxn], deg[maxn], fa[maxn], cnt;
^
0_0_31056039_14701.cpp:6:57: note: 'int fa [1000010]' previously declared here
int h[maxn], to[maxn], nxt[maxn], dep[maxn], deg[maxn], fa[maxn], cnt;
^
0_0_31056039_14701.cpp:44:67: error: redefinition of 'int cnt'
int h[maxn], to[maxn], nxt[maxn], dep[maxn], deg[maxn], fa[maxn], cnt;
^
0_0_31056039_14701.cpp:6:67: note: 'int cnt' previously declared here
int h[maxn], to[maxn], nxt[maxn], dep[maxn], deg[maxn], fa[maxn], cnt;
^
0_0_31056039_14701.cpp:45:14: error: redefinition of 'bool vis [1000010]'
bool vis[maxn];
^
0_0_31056039_14701.cpp:7:6: note: 'bool vis [1000010]' previously declared here
bool vis[maxn];
^
0_0_31056039_14701.cpp: In function 'void add_edge(int, int)':
0_0_31056039_14701.cpp:46:13: error: redefinition of 'void add_edge(int, int)'
inline void add_edge(int u, int v) { to[++cnt] = v, nxt[cnt] = h[u], h[u] = cnt; }
^
0_0_31056039_14701.cpp:8:13: note: 'void add_edge(int, int)' previously defined here
inline void add_edge(int u, int v) { to[++cnt] = v, nxt[cnt] = h[u], h[u] = cnt; }
^
0_0_31056039_14701.cpp: In function 'bool dfs(int)':
0_0_31056039_14701.cpp:47:6: error: redefinition of 'bool dfs(int)'
bool dfs(int u) {
^
0_0_31056039_14701.cpp:9:6: note: 'bool dfs(int)' previously defined here
bool dfs(int u) {
^
0_0_31056039_14701.cpp: In function 'int main()':
0_0_31056039_14701.cpp:61:5: error: redefinition of 'int main()'
int main() {
^
0_0_31056039_14701.cpp:23:5: note: 'int main()' previously defined here
int main() {
^
|