QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#590226#4814. Exciting Travel3un_larryfuncCompile Error//C++177.2kb2024-09-25 22:40:062024-09-25 22:40:08

Details

answer.code:245:5: error: redefinition of ‘int n’
  245 | int n,m;
      |     ^
answer.code:48:5: note: ‘int n’ previously declared here
   48 | int n,m;
      |     ^
answer.code:245:7: error: redefinition of ‘int m’
  245 | int n,m;
      |       ^
answer.code:48:7: note: ‘int m’ previously declared here
   48 | int n,m;
      |       ^
answer.code:247:5: error: redefinition of ‘int cnt’
  247 | int cnt;
      |     ^~~
answer.code:50:5: note: ‘int cnt’ previously declared here
   50 | int cnt;
      |     ^~~
answer.code:248:5: error: redefinition of ‘int head [200005]’
  248 | int head[200005];
      |     ^~~~
answer.code:51:5: note: ‘int head [200005]’ previously declared here
   51 | int head[200005];
      |     ^~~~
answer.code:249:8: error: redefinition of ‘struct eg’
  249 | struct eg{
      |        ^~
answer.code:52:8: note: previous definition of ‘struct eg’
   52 | struct eg{
      |        ^~
answer.code:251:2: error: conflicting declaration ‘int edge [400005]’
  251 | }edge[400005];
      |  ^~~~
answer.code:54:2: note: previous declaration as ‘eg edge [400005]’
   54 | }edge[400005];
      |  ^~~~
answer.code:253:6: error: redefinition of ‘void make(int, int)’
  253 | void make(int u,int v){
      |      ^~~~
answer.code:56:6: note: ‘void make(int, int)’ previously defined here
   56 | void make(int u,int v){
      |      ^~~~
answer.code:259:5: error: redefinition of ‘int N’
  259 | int N,fa[200005],siz[200005],dfn[200005],dep[200005],ST[20][200005];
      |     ^
answer.code:62:5: note: ‘int N’ previously declared here
   62 | int N,fa[200005],siz[200005],dfn[200005],dep[200005],ST[20][200005];
      |     ^
answer.code:259:7: error: redefinition of ‘int fa [200005]’
  259 | int N,fa[200005],siz[200005],dfn[200005],dep[200005],ST[20][200005];
      |       ^~
answer.code:62:7: note: ‘int fa [200005]’ previously declared here
   62 | int N,fa[200005],siz[200005],dfn[200005],dep[200005],ST[20][200005];
      |       ^~
answer.code:259:18: error: redefinition of ‘int siz [200005]’
  259 | int N,fa[200005],siz[200005],dfn[200005],dep[200005],ST[20][200005];
      |                  ^~~
answer.code:62:18: note: ‘int siz [200005]’ previously declared here
   62 | int N,fa[200005],siz[200005],dfn[200005],dep[200005],ST[20][200005];
      |                  ^~~
answer.code:259:30: error: redefinition of ‘int dfn [200005]’
  259 | int N,fa[200005],siz[200005],dfn[200005],dep[200005],ST[20][200005];
      |                              ^~~
answer.code:62:30: note: ‘int dfn [200005]’ previously declared here
   62 | int N,fa[200005],siz[200005],dfn[200005],dep[200005],ST[20][200005];
      |                              ^~~
answer.code:259:42: error: redefinition of ‘int dep [200005]’
  259 | int N,fa[200005],siz[200005],dfn[200005],dep[200005],ST[20][200005];
      |                                          ^~~
answer.code:62:42: note: ‘int dep [200005]’ previously declared here
   62 | int N,fa[200005],siz[200005],dfn[200005],dep[200005],ST[20][200005];
      |                                          ^~~
answer.code:259:54: error: redefinition of ‘int ST [20][200005]’
  259 | int N,fa[200005],siz[200005],dfn[200005],dep[200005],ST[20][200005];
      |                                                      ^~
answer.code:62:54: note: ‘int ST [20][200005]’ previously declared here
   62 | int N,fa[200005],siz[200005],dfn[200005],dep[200005],ST[20][200005];
      |                                                      ^~
answer.code:260:12: error: redefinition of ‘int cmp(int, int)’
  260 | inline int cmp(int x,int y){
      |            ^~~
answer.code:63:12: note: ‘int cmp(int, int)’ previously defined here
   63 | inline int cmp(int x,int y){
      |            ^~~
answer.code:264:12: error: redefinition of ‘int qry(int, int)’
  264 | inline int qry(int l,int r){
      |            ^~~
answer.code:67:12: note: ‘int qry(int, int)’ previously defined here
   67 | inline int qry(int l,int r){
      |            ^~~
answer.code:268:12: error: redefinition of ‘int LCA(int, int)’
  268 | inline int LCA(int u,int v){
      |            ^~~
answer.code:71:12: note: ‘int LCA(int, int)’ previously defined here
   71 | inline int LCA(int u,int v){
      |            ^~~
answer.code:274:6: error: redefinition of ‘void dfs(int, int)’
  274 | void dfs(int u,int f){
      |      ^~~
answer.code:77:6: note: ‘void dfs(int, int)’ previously defined here
   77 | void dfs(int u,int f){
      |      ^~~
answer.code:287:5: error: redefinition of ‘int tree [200005]’
  287 | int tree[200005];
      |     ^~~~
answer.code:90:5: note: ‘int tree [200005]’ previously declared here
   90 | int tree[200005];
      |     ^~~~
answer.code:289:6: error: redefinition of ‘void upd(int, int)’
  289 | void upd(int pos,int C){
      |      ^~~
answer.code:92:6: note: ‘void upd(int, int)’ previously defined here
   92 | void upd(int pos,int C){
      |      ^~~
answer.code:296:5: error: redefinition of ‘int qry(int)’
  296 | int qry(in...