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_39194260_5064.cpp: In function 'void dfs(int, int)':
0_0_39194260_5064.cpp:33:29: error: 'val' was not declared in this scope
   33 |         insert(rt[u],rt[fa],val[u]);
      |                             ^~~
0_0_39194260_5064.cpp: In function 'void query(int, int, int, int)':
0_0_39194260_5064.cpp:69:17: error: 'val' was not declared in this scope
   69 |         int res=val[f]^a;
      |                 ^~~
0_0_39194260_5064.cpp:69:24: error: 'a' was not declared in this scope
   69 |         int res=val[f]^a;
      |                        ^
0_0_39194260_5064.cpp:72:21: error: 'd' was not declared in this scope
   72 |         int b=(val>>d)&1;
      |                     ^
0_0_39194260_5064.cpp:86:19: error: return-statement with a value, in function returning 'void' [-fpermissive]
   86 |         return max(ans,res);
      |                ~~~^~~~~~~~~
0_0_39194260_5064.cpp: In function 'int main()':
0_0_39194260_5064.cpp:93:50: error: 'val' was not declared in this scope
   93 |                 for(int i=1;i<=n;i++)scanf("%d",&val[i]);
      |                                                  ^~~
0_0_39194260_5064.cpp:98:25: error: 'add' was not declared in this scope; did you mean 'std::filesystem::perm_options::add'?
   98 |                         add(x,y);
      |                         ^~~
      |                         std::filesystem::perm_options::add
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/filesystem:46,
                 from .\stdc++.h:200:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/fs_fwd.h:211:7: note: 'std::filesystem::perm_options::add' declared here
  211 |       add       = 0x2,
      |       ^~~
0_0_39194260_5064.cpp:106:32: error: 'lac' was not declared in this scope; did you mean 'lca'?
  106 |                         int fa=lac(x,y);
      |                                ^~~
      |                                lca
0_0_39194260_5064.cpp:107:44: error: invalid use of void expression
  107 |                         printf("%d\n",query(x,y,fa,z));
      |                                       ~~~~~^~~~~~~~~~


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-22 23:59:41, Gzip enabled