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_14497031_9307.cpp: In function 'void task(int)':
0_0_14497031_9307.cpp:61:24: error: invalid initialization of reference of type 'int&' from expression of type 'long long int'
                 add(h[i],p2[prime_num[y]]);
                        ^
0_0_14497031_9307.cpp:50:6: note: in passing argument 1 of 'void add(int&, int)'
 void add(int &x,int y){
      ^
0_0_14497031_9307.cpp:67:16: error: invalid initialization of reference of type 'int&' from expression of type 'long long int'
         add(h[i],h[i-1]);
                ^
0_0_14497031_9307.cpp:50:6: note: in passing argument 1 of 'void add(int&, int)'
 void add(int &x,int y){
      ^
0_0_14497031_9307.cpp:73:18: error: invalid initialization of reference of type 'int&' from expression of type 'long long int'
         add(h[i-1],temp);
                  ^
0_0_14497031_9307.cpp:50:6: note: in passing argument 1 of 'void add(int&, int)'
 void add(int &x,int y){
      ^
0_0_14497031_9307.cpp:74:25: error: invalid initialization of reference of type 'int&' from expression of type 'long long int'
         if(i>1)add(h[i-1],h[i-2]);
                         ^
0_0_14497031_9307.cpp:50:6: note: in passing argument 1 of 'void add(int&, int)'
 void add(int &x,int y){
      ^


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-27 22:20:09, Gzip enabled