F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_32436968_15538.cpp:167:2: error: stray '#' in program
 }#include <bits/stdc++.h>
  ^
0_0_32436968_15538.cpp:167:3: error: 'include' does not name a type
 }#include <bits/stdc++.h>
   ^
0_0_32436968_15538.cpp:170:11: error: redefinition of 'const int N'
 const int N=1e5+10;
           ^
0_0_32436968_15538.cpp:4:11: note: 'const int N' previously defined here
 const int N=1e5+10;
           ^
0_0_32436968_15538.cpp:171:15: error: redefinition of 'std::vector<int> g [100010]'
 vector<int>g[N];
               ^
0_0_32436968_15538.cpp:5:12: note: 'std::vector<int> g [100010]' previously declared here
 vector<int>g[N];
            ^
0_0_32436968_15538.cpp:172:5: error: redefinition of 'int n'
 int n,m,k;
     ^
0_0_32436968_15538.cpp:6:5: note: 'int n' previously declared here
 int n,m,k;
     ^
0_0_32436968_15538.cpp:172:7: error: redefinition of 'int m'
 int n,m,k;
       ^
0_0_32436968_15538.cpp:6:7: note: 'int m' previously declared here
 int n,m,k;
       ^
0_0_32436968_15538.cpp:172:9: error: redefinition of 'int k'
 int n,m,k;
         ^
0_0_32436968_15538.cpp:6:9: note: 'int k' previously declared here
 int n,m,k;
         ^
0_0_32436968_15538.cpp:174:9: error: redefinition of 'int fa [100010]'
 int fa[N];
         ^
0_0_32436968_15538.cpp:8:5: note: 'int fa [100010]' previously declared here
 int fa[N];
     ^
0_0_32436968_15538.cpp:175:12: error: redefinition of 'int f [100010][20]'
 int f[N][20];//lca
            ^
0_0_32436968_15538.cpp:9:5: note: 'int f [100010][20]' previously declared here
 int f[N][20];//lca
     ^
0_0_32436968_15538.cpp:176:8: error: redefinition of 'int d [100010]'
 int d[N];//depth
        ^
0_0_32436968_15538.cpp:10:5: note: 'int d [100010]' previously declared here
 int d[N];//depth
     ^
0_0_32436968_15538.cpp:178:11: error: redefinition of 'int flag [100010]'
 int flag[N],tot=0;
           ^
0_0_32436968_15538.cpp:12:5: note: 'int flag [100010]' previously declared here
 int flag[N],tot=0;
     ^
0_0_32436968_15538.cpp:178:13: error: redefinition of 'int tot'
 int flag[N],tot=0;
             ^
0_0_32436968_15538.cpp:12:13: note: 'int tot' previously defined here
 int flag[N],tot=0;
             ^
0_0_32436968_15538.cpp:179:12: error: redefinition of 'int rt [4000400]'
 int rt[N*40],ls[N*40],rs[N*40],sum[N*40];
            ^
0_0_32436968_15538.cpp:13:5: note: 'int rt [4000400]' previously declared here
 int rt[N*40],ls[N*40],rs[N*40],sum[N*40];
     ^
0_0_32436968_15538.cpp:179:21: error: redefinition of 'int ls [4000400]'
 int rt[N*40],ls[N*40],rs[N*40],sum[N*40];
                     ^
0_0_32436968_15538.cpp:13:14: note: 'int ls [4000400]' previously declared here
 int rt[N*40],ls[N*40],rs[N*40],sum[N*40];
              ^
0_0_32436968_15538.cpp:179:30: error: redefinition of 'int rs [4000400]'
 int rt[N*40],ls[N*40],rs[N*40],sum[N*40];
                              ^
0_0_32436968_15538.cpp:13:23: note: 'int rs [4000400]' previously declared here
 int rt[N*40],ls[N*40],rs[N*40],sum[N*40];
                       ^
0_0_32436968_15538.cpp:179:40: error: redefinition of 'int sum [4000400]'
 int rt[N*40],ls[N*40],rs[N*40],sum[N*40];
                                        ^
0_0_32436968_15538.cpp:13:32: note: 'int sum [4000400]' previously declared here
 int rt[N*40],ls[N*40],rs[N*40],sum[N*40];
                                ^
0_0_32436968_15538.cpp: In function 'int newNode()':
0_0_32436968_15538.cpp:181:5: error: redefinition of 'int newNode()'
 int newNode(){
     ^
0_0_32436968_15538.cpp:15:5: note: 'int newNode()' previously defined here
 int newNode(){
     ^
0_0_32436968_15538.cpp: In function 'void build(int&, int, int, int)':
0_0_32436968_15538.cpp:187:6: error: redefinition of 'void build(int&, int, int, int)'
 void build(int& p,int l,int r,int pos){
      ^
0_0_32436968_15538.cpp:21:6: note: 'void build(int&, int, int, int)' previously defined here
 void build(int& p,int l,int r,int pos){
      ^
0_0_32436968_15538.cpp: In function 'void dfs(int, int)':
0_0_32436968_15538.cpp:198:6: error: redefinition of 'void dfs(int, int)'
 void dfs(int u,int father){
      ^
0_0_32436968_15538.cpp:32:6: note: 'void dfs(int, int)' previously defined here
 void dfs(int u,int father){
      ^
0_0_32436968_15538.cpp: In function 'int Union(int, int, int, int)':
0_0_32436968_15538.cpp:217:5: error: redefinition of 'int Union(int, int, int, int)'
 int Union(int u,int v,int l,int r){
     ^
0_0_32436968_15538.cpp:51:5: note: 'int Union(int, int, int, int)' previously defined here
 int Union(int u,int v,int l,int r){
     ^
0_0_32436968_15538.cpp: In function 'void dfs1(int, int)':
0_0_32436968_15538.cpp:229:6: error: redefinition of 'void dfs1(int, int)'
 void dfs1(int u,int fg){// 当前节点 并查集的代表
      ^
0_0_32436968_15538.cpp:63:6: note: 'void dfs1(int, int)' previously defined here
 void dfs1(int u,int fg){// 当前节点 并查集的代表
      ^
0_0_32436968_15538.cpp: In function 'int query(int, int, int, int, int)':
0_0_32436968_15538.cpp:247:5: error: redefinition of 'int query(int, int, int, int, int)'
 int query(int o,int l,int r,int x,int y){
     ^
0_0_32436968_15538.cpp:81:5: note: 'int query(int, int, int, int, int)' previously defined here
 int query(int o,int l,int r,int x,int y){
     ^
0_0_32436968_15538.cpp: In function 'int find(int)':
0_0_32436968_15538.cpp:262:5: error: redefinition of 'int find(int)'
 int find(int x){
     ^
0_0_32436968_15538.cpp:96:5: note: 'int find(int)' previously defined here
 int find(int x){
     ^
0_0_32436968_15538.cpp: In function 'int getlca(int, int)':
0_0_32436968_15538.cpp:266:5: error: redefinition of 'int getlca(int, int)'
 int getlca(int x,int y){
     ^
0_0_32436968_15538.cpp:100:5: note: 'int getlca(int, int)' previously defined here
 int getlca(int x,int y){
     ^
0_0_32436968_15538.cpp: In function 'int main()':
0_0_32436968_15538.cpp:284:5: error: redefinition of 'int main()'
 int main(){
     ^
0_0_32436968_15538.cpp:118:5: note: 'int main()' previously defined here
 int main(){
     ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2025-02-17 08:21:47, Gzip enabled