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_31067995_30209.cpp: In function 'void dfs(int&, int&, int&, int&, int&, int&)':
0_0_31067995_30209.cpp:30:21: error: invalid initialization of non-const reference of type 'int&' from an rvalue of type 'int'
     dfs(v,jy,pp,cc,d+1,n);
                     ^
0_0_31067995_30209.cpp:21:6: note: in passing argument 5 of 'void dfs(int&, int&, int&, int&, int&, int&)'
 void dfs(int &v,int &jy,int &pp,int &cc,int &d,int &n)
      ^
0_0_31067995_30209.cpp:31:10: error: invalid initialization of non-const reference of type 'int&' from an rvalue of type 'int'
     dfs(v|(1<<(d-1)),1ll*jy*(a[d].p-1)%mod, 1ll*pp*(a[d].p)%mod,1ll*cc*a[d].t%mod,d+1,n);
          ^
0_0_31067995_30209.cpp:21:6: note: in passing argument 1 of 'void dfs(int&, int&, int&, int&, int&, int&)'
 void dfs(int &v,int &jy,int &pp,int &cc,int &d,int &n)
      ^
0_0_31067995_30209.cpp: In function 'int main()':
0_0_31067995_30209.cpp:52:24: error: invalid initialization of non-const reference of type 'int&' from an rvalue of type 'int'
         dfs(0,1,1,1,1,n);
                        ^
0_0_31067995_30209.cpp:21:6: note: in passing argument 1 of 'void dfs(int&, int&, int&, int&, int&, int&)'
 void dfs(int &v,int &jy,int &pp,int &cc,int &d,int &n)
      ^


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-17 10:41:15, Gzip enabled