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){
^
|