0_0_29655101_20217.cpp:97:2: error: stray '#' in program
}#include <cstdio>
^
0_0_29655101_20217.cpp:193:2: error: stray '#' in program
}#include <cstdio>
^
0_0_29655101_20217.cpp:97:3: error: 'include' does not name a type
}#include <cstdio>
^
0_0_29655101_20217.cpp:103:11: error: redefinition of 'const int maxn'
const int maxn = 1e5 + 100;
^
0_0_29655101_20217.cpp:7:11: note: 'const int maxn' previously defined here
const int maxn = 1e5 + 100;
^
0_0_29655101_20217.cpp:104:5: error: redefinition of 'int n'
int n, m, sum;
^
0_0_29655101_20217.cpp:8:5: note: 'int n' previously declared here
int n, m, sum;
^
0_0_29655101_20217.cpp:104:8: error: redefinition of 'int m'
int n, m, sum;
^
0_0_29655101_20217.cpp:8:8: note: 'int m' previously declared here
int n, m, sum;
^
0_0_29655101_20217.cpp:104:11: error: redefinition of 'int sum'
int n, m, sum;
^
0_0_29655101_20217.cpp:8:11: note: 'int sum' previously declared here
int n, m, sum;
^
0_0_29655101_20217.cpp:105:8: error: redefinition of 'struct edge'
struct edge {
^
0_0_29655101_20217.cpp:9:8: error: previous definition of 'struct edge'
struct edge {
^
0_0_29655101_20217.cpp:109:14: error: invalid type in declaration before ';' token
} e[maxn * 4];
^
0_0_29655101_20217.cpp:109:14: error: conflicting declaration 'int e [400400]'
0_0_29655101_20217.cpp:13:3: note: previous declaration as 'edge e [400400]'
} e[maxn * 4];
^
0_0_29655101_20217.cpp:110:14: error: redefinition of 'bool vis [100100]'
bool vis[maxn];
^
0_0_29655101_20217.cpp:14:6: note: 'bool vis [100100]' previously declared here
bool vis[maxn];
^
0_0_29655101_20217.cpp:111:14: error: redefinition of 'int head [100100]'
int head[maxn], tot = 0, dis[maxn];
^
0_0_29655101_20217.cpp:15:5: note: 'int head [100100]' previously declared here
int head[maxn], tot = 0, dis[maxn];
^
0_0_29655101_20217.cpp:111:17: error: redefinition of 'int tot'
int head[maxn], tot = 0, dis[maxn];
^
0_0_29655101_20217.cpp:15:17: note: 'int tot' previously defined here
int head[maxn], tot = 0, dis[maxn];
^
0_0_29655101_20217.cpp:111:34: error: redefinition of 'int dis [100100]'
int head[maxn], tot = 0, dis[maxn];
^
0_0_29655101_20217.cpp:15:26: note: 'int dis [100100]' previously declared here
int head[maxn], tot = 0, dis[maxn];
^
0_0_29655101_20217.cpp:112:19: error: redefinition of 'std::vector<int> q [100100]'
vector<int> q[maxn];
^
0_0_29655101_20217.cpp:16:13: note: 'std::vector<int> q [100100]' previously declared here
vector<int> q[maxn];
^
0_0_29655101_20217.cpp: In function 'void add(int, int, int)':
0_0_29655101_20217.cpp:114:6: error: redefinition of 'void add(int, int, int)'
void add(int u, int v, int w)
^
0_0_29655101_20217.cpp:18:6: note: 'void add(int, int, int)' previously defined here
void add(int u, int v, int w)
^
0_0_29655101_20217.cpp: In function 'void dfs(int)':
0_0_29655101_20217.cpp:120:6: error: redefinition of 'void dfs(int)'
void dfs(int x)
^
0_0_29655101_20217.cpp:24:6: note: 'void dfs(int)' previously defined here
void dfs(int x)
^
0_0_29655101_20217.cpp: In function 'void init()':
0_0_29655101_20217.cpp:139:6: error: redefinition of 'void init()'
void init()
^
0_0_29655101_20217.cpp:43:6: note: 'void init()' previously defined here
void init()
^
0_0_29655101_20217.cpp: In function 'int main()':
0_0_29655101_20217.cpp:147:5: error: redefinition of 'int main()'
int main()
^
0_0_29655101_20217.cpp:51:5: note: 'int main()' previously defined here
int main()
^
0_0_29655101_20217.cpp: At global scope:
0_0_29655101_20217.cpp:193:3: error: 'include' does not name a type
}#include <cstdio>
^
0_0_29655101_20217.cpp:199:11: error: redefinition of 'const int maxn'
const int maxn = 1e5 + 100;
^
0_0_29655101_20217.cpp:7:11: note: 'const int maxn' previously defined here
const int maxn = 1e5 + 100;
^
0_0_29655101_20217.cpp:200:5: error: redefinition of 'int n'
int n, m, sum;
^
0_0_29655101_20217.cpp:8:5: note: 'int n' previously declared here
int n, m, sum;
^
0_0_29655101_20217.cpp:200:8: error: redefinition of 'int m'
int n, m, sum;
^
0_0_29655101_20217.cpp:8:8: note: 'int m' previously declared here
int n, m, sum;
^
0_0_29655101_20217.cpp:200:11: error: redefinition of 'int sum'
int n, m, sum;
^
0_0_29655101_20217.cpp:8:11: note: 'int sum' previously declared here
int n, m, sum;
^
0_0_29655101_20217.cpp:201:8: error: redefinition of 'struct edge'
struct edge {
^
0_0_29655101_20217.cpp:9:8: error: previous definition of 'struct edge'
struct edge {
^
0_0_29655101_20217.cpp:205:14: error: invalid type in declaration before ';' token
} e[maxn * 4];
^
0_0_29655101_20217.cpp:205:14: error: conflicting declaration 'int e [400400]'
0_0_29655101_20217.cpp:13:3: note: previous declaration as 'edge e [400400]'
} e[maxn * 4];
^
0_0_29655101_20217.cpp:206:14: error: redefinition of 'bool vis [100100]'
bool vis[maxn];
^
0_0_29655101_20217.cpp:14:6: note: 'bool vis [100100]' previously declared here
bool vis[maxn];
^
0_0_29655101_20217.cpp:207:14: error: redefinition of 'int head [100100]'
int head[maxn], tot = 0, dis[maxn];
^
0_0_29655101_20217.cpp:15:5: note: 'int head [100100]' previously declared here
int head[maxn], tot = 0, dis[maxn];
^
0_0_29655101_20217.cpp:207:17: error: redefinition of 'int tot'
int head[maxn], tot = 0, dis[maxn];
^
0_0_29655101_20217.cpp:15:17: note: 'int tot' previously defined here
int head[maxn], tot = 0, dis[maxn];
^
0_0_29655101_20217.cpp:207:34: error: redefinition of 'int dis [100100]'
int head[maxn], tot = 0, dis[maxn];
^
0_0_29655101_20217.cpp:15:26: note: 'int dis [100100]' previously declared here
int head[maxn], tot = 0, dis[maxn];
^
0_0_29655101_20217.cpp:208:19: error: redefinition of 'std::vector<int> q [100100]'
vector<int> q[maxn];
^
0_0_29655101_20217.cpp:16:13: note: 'std::vector<int> q [100100]' previously declared here
vector<int> q[maxn];
^
0_0_29655101_20217.cpp: In function 'void add(int, int, int)':
0_0_29655101_20217.cpp:210:6: error: redefinition of 'void add(int, int, int)'
void add(int u, int v, int w)
^
0_0_29655101_20217.cpp:18:6: note: 'void add(int, int, int)' previously defined here
void add(int u, int v, int w)
^
0_0_29655101_20217.cpp: In function 'void dfs(int)':
0_0_29655101_20217.cpp:216:6: error: redefinition of 'void dfs(int)'
void dfs(int x)
^
0_0_29655101_20217.cpp:24:6: note: 'void dfs(int)' previously defined here
void dfs(int x)
^
0_0_29655101_20217.cpp: In function 'void init()':
0_0_29655101_20217.cpp:235:6: error: redefinition of 'void init()'
void init()
^
0_0_29655101_20217.cpp:43:6: note: 'void init()' previously defined here
void init()
^
0_0_29655101_20217.cpp: In function 'int main()':
0_0_29655101_20217.cpp:243:5: error: redefinition of 'int main()'
int main()
^
0_0_29655101_20217.cpp:51:5: note: 'int main()' previously defined here
int main()
^
|