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_29741877_30145.cpp: In function 'int main()':
0_0_29741877_30145.cpp:63:48: error: invalid initialization of reference of type 'int&' from expression of type 'll {aka long long int}'
             ans=add(ans,(1LL)*(dis[q[i]]*i)%mod);
                                                ^
0_0_29741877_30145.cpp:15:13: note: in passing argument 1 of 'void add(int&, int)'
 inline 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-12-02 13:22:59, Gzip enabled