0_0_37936745_16413.cpp:95:11: error: redefinition of 'const int maxn'
const int maxn=200000;
^
0_0_37936745_16413.cpp:3:11: note: 'const int maxn' previously defined here
const int maxn=200000;
^
0_0_37936745_16413.cpp:96:5: error: redefinition of 'int n'
int n;
^
0_0_37936745_16413.cpp:4:5: note: 'int n' previously declared here
int n;
^
0_0_37936745_16413.cpp:98:15: error: redefinition of 'short int ans [200000]'
short ans[maxn];
^
0_0_37936745_16413.cpp:6:7: note: 'short int ans [200000]' previously declared here
short ans[maxn];
^
0_0_37936745_16413.cpp:99:11: error: redefinition of 'int D [200000]'
int D[maxn];//每个点的值
^
0_0_37936745_16413.cpp:7:5: note: 'int D [200000]' previously declared here
int D[maxn];//每个点的值
^
0_0_37936745_16413.cpp:100:14: error: redefinition of 'bool vis [200000]'
bool vis[maxn];
^
0_0_37936745_16413.cpp:8:6: note: 'bool vis [200000]' previously declared here
bool vis[maxn];
^
0_0_37936745_16413.cpp:101:13: error: redefinition of 'int sta [200000]'
int sta[maxn];
^
0_0_37936745_16413.cpp:9:5: note: 'int sta [200000]' previously declared here
int sta[maxn];
^
0_0_37936745_16413.cpp:102:5: error: redefinition of 'int top'
int top=0;
^
0_0_37936745_16413.cpp:10:5: note: 'int top' previously defined here
int top=0;
^
0_0_37936745_16413.cpp:104:8: error: redefinition of 'struct node'
struct node{
^
0_0_37936745_16413.cpp:12:8: error: previous definition of 'struct node'
struct node{
^
0_0_37936745_16413.cpp:112:23: error: redefinition of 'std::priority_queue<node> que'
priority_queue <node> que;
^
0_0_37936745_16413.cpp:20:23: note: 'std::priority_queue<node> que' previously declared here
priority_queue <node> que;
^
0_0_37936745_16413.cpp: In function 'bool operator<(node, node)':
0_0_37936745_16413.cpp:114:6: error: redefinition of 'bool operator<(node, node)'
bool operator < (node A,node B){
^
0_0_37936745_16413.cpp:22:6: note: 'bool operator<(node, node)' previously defined here
bool operator < (node A,node B){
^
0_0_37936745_16413.cpp: In function 'void bfs(int)':
0_0_37936745_16413.cpp:123:6: error: redefinition of 'void bfs(int)'
void bfs(int maxx)
^
0_0_37936745_16413.cpp:31:6: note: 'void bfs(int)' previously defined here
void bfs(int maxx)
^
0_0_37936745_16413.cpp: In function 'int main()':
0_0_37936745_16413.cpp:151:5: error: redefinition of 'int main()'
int main()
^
0_0_37936745_16413.cpp:59:5: note: 'int main()' previously defined here
int main()
^
|