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_34246597_14378.cpp: In function 'int main()':
0_0_34246597_14378.cpp:129:23: error: invalid initialization of non-const reference of type 'll& {aka long long int&}' from an rvalue of type 'll {aka long long int}'
             ans=md(ans*quick_pow(p,q));
                       ^
0_0_34246597_14378.cpp:109:6: note: in passing argument 1 of 'void md(ll&)'
 void md(int &x){
      ^
0_0_34246597_14378.cpp:131:27: error: invalid initialization of non-const reference of type 'll& {aka long long int&}' from an rvalue of type 'long long int'
             inv=md(1LL*inv*(p-1));
                           ^
0_0_34246597_14378.cpp:109:6: note: in passing argument 1 of 'void md(ll&)'
 void md(int &x){
      ^
0_0_34246597_14378.cpp:134:44: error: invalid initialization of non-const reference of type 'll& {aka long long int&}' from an rvalue of type 'll {aka long long int}'
                 vec[++tot]=1LL*md(md(vec[j]*inv)*q);
                                            ^
0_0_34246597_14378.cpp:109:6: note: in passing argument 1 of 'void md(ll&)'
 void md(int &x){
      ^
0_0_34246597_14378.cpp:135:34: error: invalid initialization of non-const reference of type 'll& {aka long long int&}' from an rvalue of type 'long long int'
             vec[++tot]=md(1LL*inv*q);
                                  ^
0_0_34246597_14378.cpp:109:6: note: in passing argument 1 of 'void md(ll&)'
 void md(int &x){
      ^
0_0_34246597_14378.cpp:139:31: error: invalid initialization of non-const reference of type 'll& {aka long long int&}' from an rvalue of type 'll {aka long long int}'
             ans=md(ans+md(temp*vec[i]));
                               ^
0_0_34246597_14378.cpp:109:6: note: in passing argument 1 of 'void md(ll&)'
 void md(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-11-17 04:39:19, Gzip enabled