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_30132973_17769.cpp: In function 'void dfs(int, int, ll)':
0_0_30132973_17769.cpp:68:8: error: 'd' was not declared in this scope
     if(d==0){
        ^
0_0_30132973_17769.cpp:78:72: error: 'd' was not declared in this scope
     if(ch[0][t1][0]&&ch[1][t2][0])dfs(ch[0][t1][0],ch[1][t2][0],sum<<1,d-1);
                                                                        ^
0_0_30132973_17769.cpp:79:72: error: 'd' was not declared in this scope
     if(ch[0][t1][1]&&ch[1][t2][1])dfs(ch[0][t1][1],ch[1][t2][1],sum<<1,d-1);
                                                                        ^
0_0_30132973_17769.cpp:80:76: error: 'd' was not declared in this scope
     if(ch[0][t1][0]&&ch[1][t2][1])dfs(ch[0][t1][0],ch[1][t2][1],(sum<<1)+1,d-1);
                                                                            ^
0_0_30132973_17769.cpp:81:76: error: 'd' was not declared in this scope
     if(ch[0][t1][1]&&ch[1][t2][0])dfs(ch[0][t1][1],ch[1][t2][0],(sum<<1)+1,d-1);
                                                                            ^
0_0_30132973_17769.cpp: In function 'int main()':
0_0_30132973_17769.cpp:91:23: error: too many arguments to function 'void dfs(int, int, ll)'
         dfs(0,0,0ll,31);
                       ^
0_0_30132973_17769.cpp:65:6: note: declared here
 void dfs(int t1,int t2,ll sum){
      ^


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-07-03 17:31:53, Gzip enabled