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_33729935_14360.cpp: In function 'void print(int&)':
0_0_33729935_14360.cpp:21:17: error: invalid initialization of non-const reference of type 'int&' from an rvalue of type 'int'
  if(x>9) print(x/10);
                 ^
0_0_33729935_14360.cpp:20:13: note: in passing argument 1 of 'void print(int&)'
 inline void print(int &x) {  
             ^
0_0_33729935_14360.cpp: In function 'int main()':
0_0_33729935_14360.cpp:66:41: error: invalid initialization of non-const reference of type 'int&' from an rvalue of type 'ull {aka long long unsigned int}'
   if(x == 0) print(F.reduce(f0 - 1 + mod));
                                         ^
0_0_33729935_14360.cpp:20:13: note: in passing argument 1 of 'void print(int&)'
 inline void print(int &x) {  
             ^
0_0_33729935_14360.cpp:67:33: error: invalid initialization of non-const reference of type 'int&' from an rvalue of type 'ull {aka long long unsigned int}'
   else print(F.reduce(dp[x] * f0));
                                 ^
0_0_33729935_14360.cpp:20:13: note: in passing argument 1 of 'void print(int&)'
 inline void print(int &x) {  
             ^


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-06-26 21:45:23, Gzip enabled